Title: Function 'GetCommandInfo' does not add CommandInfo to cache · Issue #1030 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Function 'GetCommandInfo' does not add CommandInfo to cache · Issue #1030 · PowerShell/PSScriptAnalyzer
X Title: Function 'GetCommandInfo' does not add CommandInfo to cache · Issue #1030 · PowerShell/PSScriptAnalyzer
Description: In Helper.cs, the function GetCommandInfo checks the commandInfoCache for a given command, and - if it does not exist in the cache - retrieves the info from a powershell session. Unlike in the deprecated function GetCommandInfoLegacy, ho...
Open Graph Description: In Helper.cs, the function GetCommandInfo checks the commandInfoCache for a given command, and - if it does not exist in the cache - retrieves the info from a powershell session. Unlike in the depr...
X Description: In Helper.cs, the function GetCommandInfo checks the commandInfoCache for a given command, and - if it does not exist in the cache - retrieves the info from a powershell session. Unlike in the depr...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1030
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Function 'GetCommandInfo' does not add CommandInfo to cache","articleBody":"In `Helper.cs`, the function `GetCommandInfo` checks the commandInfoCache for a given command, and - if it does not exist in the cache - retrieves the info from a powershell session. Unlike in the deprecated function `GetCommandInfoLegacy`, however the command info is never added to the commandInfoCache dictionary. (Compare lines [750](https://github.com/PowerShell/PSScriptAnalyzer/blob/development/Engine/Helper.cs#L750) and [776](https://github.com/PowerShell/PSScriptAnalyzer/blob/development/Engine/Helper.cs#L776))\r\n\r\nI'd like to open a PR to correct this, assuming this is indeed a bug.\r\n\r\nThis should help marginally with performance issues due to contentions from the locks in the `GetCommandInfo` and `GetCommandInfoLegacy` functions.\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/Blackbaud-ShaydeNofziger","@type":"Person","name":"Blackbaud-ShaydeNofziger"},"datePublished":"2018-06-28T22:21:34Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1030"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0be277ea-aa0c-061e-a928-d4bc61550628 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC26:177CAA:2CE47:3E14F:6AFCE6CB |
| html-safe-nonce | 410fd82952f759889738a1383c2168cee81feb526155cc06f2f65aac5e0230b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzI2OjE3N0NBQToyQ0U0NzozRTE0Rjo2QUZDRTZDQiIsInZpc2l0b3JfaWQiOiIxNjYzNDk0MDgwMjQ1MzI3NTYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ad5cc45669fa0839ed257f75165af3e44ebbf1bc8c2ea5aadcddb4510c09ca59 |
| hovercard-subject-tag | issue:336800047 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/1030/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bdb32e4e6048b213d1635c5cad7f762284918214a39896686f882155ee31b3db/PowerShell/PSScriptAnalyzer/issues/1030 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bdb32e4e6048b213d1635c5cad7f762284918214a39896686f882155ee31b3db/PowerShell/PSScriptAnalyzer/issues/1030 |
| og:image:alt | In Helper.cs, the function GetCommandInfo checks the commandInfoCache for a given command, and - if it does not exist in the cache - retrieves the info from a powershell session. Unlike in the depr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Blackbaud-ShaydeNofziger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width