-
Notifications
You must be signed in to change notification settings - Fork 510
Running any pester tests shows Cannot read property '0' of undefined #3713
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
Comments
@majkinetor thanks! We are unable to reproduce this issue, can you try updating to the latest vscode preview version and see if this is still an issue? |
@majkinetor Please try the latest Preview extension. It's called "PowerShell Preview" on the marketplace. You'll need to disable or uninstall the "PowerShell" extension. It's current version is v2021.11.1. |
This line is suspicious to me: vscode-powershell/src/features/PesterTests.ts Line 147 in f0fddeb
Do you have any workspaces open? |
No I don't. I just tried it now and it works normally when I run it within a workspace. |
That makes sense! Ok, this is a bug. When no workspaces are open, the indexing there on |
Prerequisites
Summary
Since recently (don't know when) when I run/debug pester tests (even empty ones), I get this error.
I had this working for years without problem.
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Pester Version
Steps to Reproduce
I created a file
foo.tests.ps1
When I click any, I got that error.
I removed
AppData\Roaming\Code
and.vscode
and it still happens.Visuals
No response
Logs
Extension log
exthost.log
The text was updated successfully, but these errors were encountered: