-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transient RULE_ERROR #1351
Comments
@chriskuech I have also been getting this for a while. It's is flaky. I have I've noticed the issue from v1.18.0 and still getting the issue on v1.18.3 as well. The issue mostly happens on a MacOS build, however it also happens on Windows with PowerShell Core. Both running 6.2.3. Although I have noticed the issue on previous 6.2.x versions. I've been holding off logging an issue until I had a little more information. Previously I though it was specific rules. But I managed to get a stack trace. When running locally.
|
I notice this has only happened to us when importing *.psm1 files that contain @BernieWhite , can you say the same? |
I found that you can repro this issue locally after a long time. I ran it in a loop in a new powershell session and finally reproed it after 25 tries. 1..100 | % {pwsh .\my-psscriptanalyzer-runner.ps1} I found that after removing all calls to |
@chriskuech interesting, I did bulk testing in the same PowerShell process and the issue doesn't predictably reoccur. Can't say on what happens without |
@chriskuech When it happens, can you please also report |
Here's my
I made a minimal repro. When I run the repro, I always eventually get the same error, but not always the same stack trace. # repro.ps1
for ($i = 1; $true; $i++) {
Write-Host "`rAttempt $i" -NoNewLine
pwsh -c 'Invoke-ScriptAnalyzer . -Recurse | Out-Null; if (-not $?) {$Error[0].Exception.StackTrace}'
}
# module.psm1
function f() { }
Export-Module -Function * These are the two main stack traces I saw:
|
What's the status of this? Still occurring for us.
|
Have this bug. Running PSScriptAnalyzer 1.22 directly on my AzDO build agent server in PS 5.1 on Windows 10. |
I wish I could provide more information, but the error is transient and therefore cannot be deterministically reproed.
PowerShell version: 6.2.1
PSScriptAnalyzer version: 1.18.3
OS Version: Ubuntu 1604
PSScriptAnalyzer is failing occasionally with the following error:
Contents of powershell-helpers.psm1:
The text was updated successfully, but these errors were encountered: