-
Notifications
You must be signed in to change notification settings - Fork 513
Pester code lens broken in latest preview #3652
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
@fflaten I saw the same issue in my Pester Tests extension, something about the double quoting of the first arg got "fixed" whereas before it was being removed. |
Updated the console output in first post to match the image to show that it affects multiple string arguments, ex Output. I'm not very familiar with VSCode debugger and PSES, but I bet the launch debugger-command provided by PSES now auto-quotes string-arguments, something the caller used to do until now as seen below vscode-powershell/src/features/PesterTests.ts Lines 80 to 126 in 4d4911a
I'm not sure if this issue belongs here, in PSES or both. Code lens, launch command and InvokePesterStub.ps1 are in PSES iirc, however the problem also occurs with the "Run/Debug Pester Tests" commands in this extension due to the same underlying change. |
I'm seeing the same, was trying to dig into where that might ahve changed. |
I thought that might cause an issue. I'd hoped tests covered it. They apparently did not! |
Track on this issue in PSES: |
Which means hopefully also fixed by PowerShell/PowerShellEditorServices#1609 |
Here's a build of #1609 that fixes it until it gets merged if anyone needs this right away: pester/vscode-adapter#88 (comment) |
This issue has been marked as fixed. It has been automatically closed for housekeeping purposes. |
Thanks @JustinGrote and @andschwa for the quick fix (once released) 🎉 |
@fflaten Should be out now! Still far from bug-free, but one by one we squash them! |
Prerequisites
Summary
"Run/Debug Tests" Pester code lense no longer work in latest extension preview. Caused by
InvokePesterStub.ps1
being called with parameters with embedded single quotes.Fails with
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
"powershell.pester.useLegacyCodeLens": false
Run Tests
orDebug Tests
code lens on any level in the file above.Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: