-
-
Couldn't load subscription status.
- Fork 33
Closed
Labels
Description
Environment
- OS: Windows 10 + Docker-Desktop
- VS Code Version [1.59.1]
- Racket version [8.2]
- Magic Racket version [0.5.7]
Error message
I use xvfb-run racket in a devcontainer, but racket-langserver doesn't work. I only get error message like that:
[Error - 下午2:22:06] Starting client failed
Launching server using command xvfb-run racket failed.
Workaround
I tried many times, and finally found if I change the serverOptions in extension.js from
const executable = {
command: racket,
args: ["--lib", "racket-langserver"],
};to
const executable = {
command: racket,
args: ["--lib", "racket-langserver"],
options: { shell: true }
};then racket-langserver can work correctly. I guess vscode can communicate with the xvfb-run racket process by stdin/out, only when wrapping in a shell.
By the way, I put my devcontainer.json at here.