-
Notifications
You must be signed in to change notification settings - Fork 513
Interactive variable replacment also supported for string commands #1315
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
Thanks for the heads up. I'll make this change. |
Great, thanks |
@isidorn @rkeithhill Thank you. |
@isidorn @weinand Small problem. We allow the user to delete all the text in the "specify args" dialog box: The problem is that if the user leaves the input box empty (intending to pass no args), then the debugger never bothers to launch this config. AFAICT, I have no control over this behavior. By this point, our |
@rkeithhill in that case your |
But if the input box is left blank, an empty string is what I see in the debugger and is what is returned to vscode?? I'll double check that tonight. I suspect that is why I had the |
@rkeithhill ok please double check and let us know what is unexpected exactly. |
Not trying to be that guy but, I downloaded and installed the latest "stable" build of Visual Studio Code, loaded the PowerShell extension, and tried to execute a PowerShell script with args and it's broken... Not exactly a "stable" build so I'm wondering if any changes should be made to the deployment pipeline so obvious bugs like this don't find their way into "production". I'm happy to help as I've always wanted to assist in the open source world. |
@avelis26 VS Code did not change any specified and documented functionality here. We just closed some undocumented loophole and broke the Powershell extension. |
@avelis26 Given that this is a UI feature (inputbox) that is used as part of starting up the debugger, it might be difficult to test. But if you can find a way to automate such a test, that would be great! Hopefully, we'll have this fixed and can get out a 1.7.1 maintenance release shortly. We have a few other issues that cropped up in 1.7.0 that need to be fixed as well. |
I actually do a lot of automated UI testing and would love the challenge. I
don't suppose you have a hand list of use cases for me to get started on :)
|
@weinand I also understand that dream may never come true but like I said, I'm happy help in whatever way I can. |
@avelis26 we expect extension authors to verify their extensions against the daily Insiders release (in fact that's exactly the main purpose of the Insiders release). |
@rkeithhill thanks, there was an issue on the vscode side which I tackled via microsoft/vscode@11a1ce9 Please try tomorrows insiders and let me know if this fixes the issue for you. Since this is a corner case (returning empty string) I choose not to include this fix in the recovery release. It will be present in the next stable build. @rkeithhill For the future it would be great if you self hosted on vscode insiders so we find issues like this before the release. Thanks a lot |
Fix PowerShell#1315 but folks won't see this fix until they are on VSCode 1.24 or insiders build >= 5/11. This is because a corresponding fix is required in VSCode.
This bug has been fixed but you will need VSCode 1.24 or an insiders daily build of 1.24 >= 5/11. |
@rkeithhill Is this fix in VSCode 1.24 included or does the extension need a new release as well? |
Fix is on master but we haven't released since I committed the fix. We really need to push a release but there is one major fix for finding the correct version of PSScriptAnalyzer that needs to go in before we release. That PR is done, just waiting for a final approval by @tylerl0706 ... nudge, nudge. |
Almost to a new release! Just a few internal processes that need to be taken care of this one time. Thank you for you patience 😊 |
Yes, please. This bug is killing us at work :) |
Any ETA on this please? |
As of vsCode v1.25.0 this is still misbehaving. |
@mpearon Some component of this fix was on VS Code, it was shipped in 1.24. The remaining fix has to come with vscode-powershell 1.7.1. I am not sure what the hold up is, it has been 2.5 months since 1.7.0, and very little movement is showing in the issues for the 1.7.1 milestone (EDIT: wording) |
My understanding is the change to use named pipes instead of TCP ports, introduced a delay due to both effort to implement and subsequent internal review. There's also been ongoing work to improve the whole release process to make it simpler/quicker to roll releases in the future. If you were to take a look at merged PR's, you'd see there's been a lot of work done since 1.7.0. I'm as anxious as everyone else to see an update released but that has to be done by @tylerl0706 (or @rjmholt). @tylerl0706 is out this week on a cruise (lucky dog). |
The PowerShell extension has been updated (now at 1.8.1). Can you give this a try now? |
I received notice of an update to the extension and after installation - I can confirm that I am once again able to run powershell with args in debugging. Thanks for sorting this out. |
Working fine in 1.8.1. Thanks |
I'm still having issues with this - but only when the vsLiveShare extension is enabled. I mentioned this thread when reporting the issue there. |
Hello friends, I am from the vscode team and some users are reporting an issue with debugging powershell. More datils can be found here microsoft/vscode#49390
After investigating I noticed that your command
SpecifyScriptArgs
which is used to substitue values before debugging is returning an array of strings instead of a string. This was never officialy supported, and with the refactoring on the vscode side we are more strict and only allow strings.Bottom line you should change a cast to array to simply return a string and not an array here
vscode-powershell/src/features/DebugSession.ts
Line 232 in 6c1e30e
Make sure that all your commands which are used for launch.json configs are returning strings and not array.
The text was updated successfully, but these errors were encountered: