Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Quote arguments containing spaces when launching OmniSharp. #5154

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

JoeRobich
Copy link
Member

@JoeRobich JoeRobich commented Apr 4, 2022

Resolves #5150

Tested locally with a Folder name containing a space. Failed to launch prior to this change and opens as expected with the change.

@JoeRobich JoeRobich requested a review from 333fred April 4, 2022 22:33
src/omnisharp/launcher.ts Outdated Show resolved Hide resolved
@nohwnd
Copy link
Member

nohwnd commented Apr 4, 2022

nodejs/node#7367 (comment) Recommends using cross-spawn package which implements this correctly without the need to manually escape, or at least that is what they say. Might be worth a try.

@nohwnd
Copy link
Member

nohwnd commented Apr 4, 2022

@JoeRobich JoeRobich force-pushed the quote-workspace-path branch from c21c4d1 to 114ca49 Compare April 5, 2022 00:02
@JoeRobich
Copy link
Member Author

Updated to use cross-spawn package. Need to verify Windows launch behavior.

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as long as we test the behavior.

@JoeRobich
Copy link
Member Author

JoeRobich commented Apr 5, 2022

Confirmed works with spaces in workspace path on windows with both "omnisharp.useModernNet": "true" & "false"
Confirmed works with spaces in workspace path on macos with both "omnisharp.useModernNet": "true" & "false" and "omnisharp.useGlobalMono": "always" & "never"

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OmniSharp fails to load when the path provided contains spaces.
3 participants