code-server: Tasks doesn't work: tries to run cmd.exe under freebsd
OS/Web Information
- Web Browser: Firefox 95.0.2
- Local OS: Windows 10
- Remote OS: FreeBSD 13
- Remote Architecture: x86_64
code-server --version: 4.0.1 735c6da829535969ff7193c79379299e4a1cb9bc
Steps to Reproduce
- Create workspace
- Put attached tasks.json to the .vscode folder
- Try to run the task (e.g. with Ctrl-Shift-B)
Expected
Task is run. 123 message is printed
Actual
> Executing task in folder src: echo 123 <
The terminal process failed to launch: Path to shell executable "cmd.exe" does not exist.
Terminal will be reused by tasks, press any key to close it.
Logs
Debug logs are attached. It does detect bash (it doesn’t detect csh - that’s another issue), but still tries to run cmd.exe
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 18 (9 by maintainers)
Yes, exactly.
It seems to be somewhere here: https://github.com/microsoft/vscode/blob/e8838f10628a63ca0c9d73fbedabfd35d6abf2cb/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts#L1040 but I’m not a NodeJS developer.
An interesting moment: everything is OK if I run firefox on the same FreeBSD box the code-server is running. Error arises only if I’m using remote windows PC. It seems that it somehow detects the client OS and misuses this knowledge.
Hmm…I’m on macOS and it worked.
Do you know what the path to the shell executable should be on FreeBSD?
cc @code-asher