-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
can not using the xmake command in window vscode #194
Comments
Same here, I tried Nu and MSYS 2 Fish Shell on Windows both got the same error Error messages:
|
BTW it will work properly in Powershell in my environment |
This bug seems to belong to vscode. I am also waiting for a fix. |
该问题与vscode的API--ShellExecution有关 当我们使用xmake的相关命令时,扩展会生成对应的command,然后尝试在shell中执行。参考terminal.ts 问题在于ShellExecution会尝试将command作为参数,传递给非交互模式的shell执行。对于 bash ,会在vscode集成终端中生成任务 bash -c "xmake command",对于cmd ,则是 cmd /d /c "xmake command" 要解决这一问题,可以使用ProcessExecution或者CustomExecution以代替ShellExecution。cmake-tools的实现方法 也许能提供一些参考 |
Xmake Version
v2.7.8+HEAD.87dff1ef4
Operating System Version and Architecture
win11
Describe Bug
using the xmake command to creat project or run the project, this error will show:
my vscode revlant setting:
i using nushell in vscode. the the running command would have something
\d \c
which casuse the error.Expected Behavior
Project Configuration
No response
Additional Information and Error Logs
No response
The text was updated successfully, but these errors were encountered: