Skip to content
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

Fix VS profile command generation #15439

Merged
merged 1 commit into from
May 25, 2023

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented May 25, 2023

This regressed in f06cd17. It seems like the change went untested,
because it appends an extra " after -startdir=none.
This changeset also avoids calling append() twice.

Closes #15436

Validation Steps Performed

  • VS Developer Command Prompt works ✅

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Settings Issues related to settings and customizability, for console or terminal Priority-2 A description (P2) Product-Terminal The new Windows Terminal. labels May 25, 2023
@DHowett
Copy link
Member

DHowett commented May 25, 2023

Wait, why doesn't it work the way it is?

@DHowett
Copy link
Member

DHowett commented May 25, 2023

OH, IT'S THE QUOTE. FRICK. SORRY.

@lhecker
Copy link
Member Author

lhecker commented May 25, 2023

Yep, the resulting path makes it more obvious:

cmd.exe /k "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat" -startdir=none" -arch=x64 -host_arch=x64

I'll edit the PR description.

@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label May 25, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot deleted the dev/lhecker/15436-vs-cmd branch May 25, 2023 18:21
DHowett pushed a commit that referenced this pull request May 25, 2023
This regressed in f06cd17. It seems like the change went untested,
because it appends an extra " after -startdir=none.
This changeset also avoids calling `append()` twice.

Closes #15436

## Validation Steps Performed
* VS Developer Command Prompt works ✅

(cherry picked from commit 0073e36)
Service-Card-Id: 89324745
Service-Version: 1.18
DHowett pushed a commit that referenced this pull request May 25, 2023
This regressed in f06cd17. It seems like the change went untested,
because it appends an extra " after -startdir=none.
This changeset also avoids calling `append()` twice.

Closes #15436

## Validation Steps Performed
* VS Developer Command Prompt works ✅

(cherry picked from commit 0073e36)
Service-Card-Id: 89324784
Service-Version: 1.17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) Product-Terminal The new Windows Terminal.
Projects
Development

Successfully merging this pull request may close these issues.

'C:\Program' is not recognized as an internal or external command when open VS Developer Command Prompt
3 participants