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

I can not launch cpp target in my console using cmake-tools with version 1.12.13 #2650

Closed
CSQ223 opened this issue Jul 20, 2022 · 6 comments · Fixed by #2671
Closed

I can not launch cpp target in my console using cmake-tools with version 1.12.13 #2650

CSQ223 opened this issue Jul 20, 2022 · 6 comments · Fixed by #2671
Labels
bug a bug in the product Feature: debug/launch
Milestone

Comments

@CSQ223
Copy link

CSQ223 commented Jul 20, 2022

Brief Issue Summary

When I launched my cpp target using the triangular button, the powershell only echoes the name of cpp target as follows, but Nothing runs.

PS D:\dev\cpp_template\build> "D:/dev/cpp_template/build/cpp_template.exe"
D:/dev/cpp_template/build/cpp_template.exe
PS D:\dev\cpp_template\build>

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

@elahehrashedi elahehrashedi added the more info needed More info is needed from the community for us to properly triage and investigate. label Jul 20, 2022
@elahehrashedi
Copy link
Contributor

Can you run "CMake: log diagnostics" and share the result here with us?

@elahehrashedi elahehrashedi added duplicate a duplicate of an already present issue more info needed More info is needed from the community for us to properly triage and investigate. and removed more info needed More info is needed from the community for us to properly triage and investigate. duplicate a duplicate of an already present issue labels Jul 20, 2022
@bobbrow
Copy link
Member

bobbrow commented Jul 20, 2022

The . is missing before the quoted path for some reason. We should be adding the dot before the quote when "PowerShell" is in the path of your shell program. Is your PowerShell installed in some other folder? Normally it's in one of these two places:

  • C:/Windows/System32/WindowsPowerShell
  • C:/Program Files/PowerShell/7

@LucasOe
Copy link

LucasOe commented Jul 24, 2022

I'm using PowerShell 7 installed via Scoop (this means the path is not the default installation location) and the dot before the quoted path is also missing for me.
Edit: This seem to be a duplicate of #2621. To me it doesn't look like the install location has anything to do with the problem.

@bobbrow
Copy link
Member

bobbrow commented Aug 1, 2022

@LucasOe what path is your version installed to? Sorry, I'm not familiar with Scoop. We could potentially fix this by checking the name of the terminal process pwsh.exe in addition to looking at the path.

@LucasOe
Copy link

LucasOe commented Aug 1, 2022

@bobbrow By default scoop installs to C:\Users\<Username>\scoop\apps\pwsh\current\pwsh.exe. According to the docs system-wide installations install to %SYSTEMDRIVE%\ProgramData\scoop, but I haven't tried that.

@bobbrow
Copy link
Member

bobbrow commented Aug 1, 2022

Thanks for confirming. That explains why our fix for other PowerShell installations is not working in your case.

@bobbrow bobbrow added bug a bug in the product and removed more info needed More info is needed from the community for us to properly triage and investigate. labels Aug 1, 2022
@bobbrow bobbrow added this to the 1.12 milestone Aug 1, 2022
@bobbrow bobbrow linked a pull request Aug 3, 2022 that will close this issue
@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug a bug in the product Feature: debug/launch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants