Title: PSUseToExportFieldsInManifest throw System.InvalidOperationException: Collection was modified; enumeration operation may not execute. · Issue #902 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: PSUseToExportFieldsInManifest throw System.InvalidOperationException: Collection was modified; enumeration operation may not execute. · Issue #902 · PowerShell/PSScriptAnalyzer
X Title: PSUseToExportFieldsInManifest throw System.InvalidOperationException: Collection was modified; enumeration operation may not execute. · Issue #902 · PowerShell/PSScriptAnalyzer
Description: Steps to reproduce 1..30|% {$res=Invoke-ScriptAnalyzer -path 'C:\Program Files\WindowsPowerShell\Modules\PSScriptAnalyzer\1.16.1\PSScriptAnalyzer.psd1' -ExcludeRule PSMissingModuleManifestField } Expected behavior No error. Actual behavi...
Open Graph Description: Steps to reproduce 1..30|% {$res=Invoke-ScriptAnalyzer -path 'C:\Program Files\WindowsPowerShell\Modules\PSScriptAnalyzer\1.16.1\PSScriptAnalyzer.psd1' -ExcludeRule PSMissingModuleManifestField } E...
X Description: Steps to reproduce 1..30|% {$res=Invoke-ScriptAnalyzer -path 'C:\Program Files\WindowsPowerShell\Modules\PSScriptAnalyzer\1.16.1\PSScriptAnalyzer.psd1' -ExcludeRule PSMissingModuleManifestF...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/902
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PSUseToExportFieldsInManifest throw System.InvalidOperationException: Collection was modified; enumeration operation may not execute.","articleBody":"Steps to reproduce\r\n------------------\r\n\r\n```powershell\r\n1..30|% {$res=Invoke-ScriptAnalyzer -path 'C:\\Program Files\\WindowsPowerShell\\Modules\\PSScriptAnalyzer\\1.16.1\\PSScriptAnalyzer.psd1' -ExcludeRule PSMissingModuleManifestField }\r\n\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nNo error.\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nInvoke-ScriptAnalyzer : La collection a été modifiée ; l'opération d'énumération peut ne pas s'exécuter.\r\nAt line:1 char:15\r\n+ ... .30|% {$res=Invoke-ScriptAnalyzer -path 'C:\\Program Files\\WindowsPowe ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : InvalidOperation: (C:\\Program File...ptAnalyzer.psd1:String) [Invoke-ScriptAnalyzer], Cm\r\n dletInvocationException\r\n + FullyQualifiedErrorId : RULE_ERROR,Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands.InvokeScriptAnalyzerComm\r\n and\r\n\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- Provide the output of the following 2 commands -->\r\n```powershell\r\n$psversiontable\r\nName Value\r\n---- -----\r\nPSVersion 5.1.14409.1012\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14409.1012}\r\nBuildVersion 10.0.14409.1012\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n\r\n\r\n (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }\r\n1.16.1\r\n1.16.0\r\n1.15.0\r\n1.12.0\r\n1.11.1\r\n```\r\nSee also the issue #900 ","author":{"url":"https://github.com/LaurentDardenne","@type":"Person","name":"LaurentDardenne"},"datePublished":"2018-02-20T13:53:11Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/902"}
| 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:a11ab995-0ad9-89d8-9086-26031ce37439 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC76:3B38CF:1389CC5:1B93BAB:6AFCDEFA |
| html-safe-nonce | 3d2be1f1ac2abd4300122dd78e87817ac6d135a284ee556528a9114f64f596f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzc2OjNCMzhDRjoxMzg5Q0M1OjFCOTNCQUI6NkFGQ0RFRkEiLCJ2aXNpdG9yX2lkIjoiNjY3MTM0MDAzNTE1MDUwMzY3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 31501208dcbec2d0be9d1f39cb497c27e26677b4952a85a1859be3669cb58689 |
| hovercard-subject-tag | issue:298601501 |
| 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/902/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b99801be83cfb2301ea60750e624b5fe30939c99f0399b36ef48c084c73dc3fb/PowerShell/PSScriptAnalyzer/issues/902 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b99801be83cfb2301ea60750e624b5fe30939c99f0399b36ef48c084c73dc3fb/PowerShell/PSScriptAnalyzer/issues/902 |
| og:image:alt | Steps to reproduce 1..30|% {$res=Invoke-ScriptAnalyzer -path 'C:\Program Files\WindowsPowerShell\Modules\PSScriptAnalyzer\1.16.1\PSScriptAnalyzer.psd1' -ExcludeRule PSMissingModuleManifestField } E... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LaurentDardenne |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0c05b7eb5b95e29725d01bb1f560a020e3fafd0f033c6b9ed3918fa3161254dd |
| 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 | 79d9154e55368884c8c93766ba4fee076343d37f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width