-
Notifications
You must be signed in to change notification settings - Fork 500
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
Current directory is included in PowerShell "launch" option; breaking launch configurations that run a command #3537
Current directory is included in PowerShell "launch" option; breaking launch configurations that run a command #3537
Comments
Versions with problem: Versions without problem: |
Oh, crap, sorry about that. |
I guess I'm not totally sure why this is happening. I mean, I'm certain it's because of 8ebbb55, but that implies that your custom configuration was taking a default value for vscode-powershell/package.json Lines 522 to 526 in 4a46590
Then this would have been broken all along as that remained unchanged. It was last touched in #1397 Instead of reverting that commit, I'd like to figure out the best way to fix this. @rkeithhill do you have any idea? |
Also in case you haven't already figured this out, the work around should be to add |
I don't think this has anything to do with the BTW this only seems to happen when you specify
Yeah, that's yer problem right there. |
Interesting...I will dig into PSES changes and see how we broke it. Thanks Keith! |
Ah, it was PowerShell/PowerShellEditorServices@da43937 🙃 |
All right. Fixed this and covered it with a test. Will get it into the next preview. |
Thanks for the issue! Keep them coming. |
Awesome work, thanks for the quick fix. |
This fix is available in the preview that went out yesterday! |
Prerequisites
Summary
I like to run PowerShell scripts into external windows. I have been using the same launch configs for years now without problem, but suddenly none of them now work. Here is an example launch.json:
What should happen when running launching a .PS1 file with the debug option, is this:
However it actually runs:
Which of course leads to the error message:
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell-preview@2021.8.2
Steps to Reproduce
Use the Launch config from above, and select it as the debug option. Then attempt to run any SAVED script.
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: