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

  1. Create workspace
  2. Put attached tasks.json to the .vscode folder
  3. 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

tasks.json.zip log.txt

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

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.

image

Do you know what the path to the shell executable should be on FreeBSD?

cc @code-asher