-
Notifications
You must be signed in to change notification settings - Fork 679
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
Quote launch paths when necessary #5101
Conversation
-- Update: cc: @333fred ^^ |
yes, especially this looks very suspicious
|
Hmm. I'm not sure where that |
dotnet --info:
I didn't try to debug the omnisharp's vscode extension before. I can send any debug info that you need and maybe I will try to debug this by myself at the weekend. |
@@ -408,7 +408,7 @@ function launchNix(launchPath: string, cwd: string, args: string[]): LaunchResul | |||
|
|||
function launchNixMono(launchPath: string, cwd: string, args: string[], environment: NodeJS.ProcessEnv, useDebugger: boolean): LaunchResult { | |||
let argsCopy = args.slice(0); // create copy of details args | |||
argsCopy.unshift(launchPath); | |||
argsCopy.unshift(`$"{launchPath}"`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a typo
argsCopy.unshift(`$"{launchPath}"`); | |
argsCopy.unshift(`"${launchPath}"`); |
@333fred check this pls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@333fred ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vchirikov no need to ping me so many times, I'm watching this issue :).
Yes, that does indeed look suspicious. However, this is launching mono on Linux or Unix, not anything to do with Windows.
It is like System.CommandLine is parsing the omnisharp assembly path as a command name instead of a file argument. I cannot reproduce this behavior when trying to invoke with the same launch arguments from a command line. That being said I am seeing this with the 1.24.2-beta2 build, so at the very least we should roll back quoting the launch path when starting the net6 build. Need to validate other launch types. |
Even better. Passing |
Also, validated launching .NET Framework O# on Windows and system install of Mono work with the added quotes. |
Confirmed, beta 3 with #5125 works fine. |
Fixes #5099.