Hi,
I installed roc and roc_language_server from roc_nightly-linux_x86_64-2025-03-22-c47a8e9 into /home/ion/.local/bin in WSL. I have a VSCode 1.102.3 remote connection open. I installed the Roc (Unofficial) extension (version 1.2.0) and added this to the remote settings:
{
"roc-lang.language-server.exe": "/home/ion/.local/bin/roc_language_server"
}
I added the first main.roc from the tutorial. VSCode gives me this error:
LS executable path: Some(/home/ion/.local/bin/roc_language_server)
LS debug executable path: None
You are ready to Roc!Roc language server started
[Info - 3:06:24 PM] Roc language server initialized.
[0.6 / 13.3 MB][Error - 3:06:26 PM] Client roc-lang: connection to server is erroring.
Header must provide a Content-Length property.
{"downloading \u001b[36mhttps":"//github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br\u001b[0m\n into /home/ion/.cache/roc/packages\n\nContent-Length: 38"}
Shutting down server.
[1.4 / [Error - 3:06:26 PM] Client roc-lang: connection to server is erroring.
Header must provide a Content-Length property.
{"{\"jsonrpc\"":"\"2.0\",\"result\":null,\"id\":1}Content-Length: 38"}
Shutting down server.
[13.3 / 13.3 MB]
[Error - 3:06:28 PM] Client roc-lang: connection to server is erroring.
Header must provide a Content-Length property.
{"{\"jsonrpc\"":"\"2.0\",\"result\":null,\"id\":2}Content-Length: 450"}
Shutting down server.
[Error - 3:06:28 PM] Stopping server timed out
[Error - 3:06:28 PM] Stopping server failed
Error: Stopping the server timed out
at /home/ion/.vscode-server/extensions/ivandemchenko.roc-lang-unofficial-1.2.0/dist/extension.js:1:95430
[Error - 3:06:28 PM] Stopping server failed
Error: Stopping the server timed out
at /home/ion/.vscode-server/extensions/ivandemchenko.roc-lang-unofficial-1.2.0/dist/extension.js:1:95430
[Error - 3:06:28 PM] Stopping server failed
Error: Stopping the server timed out
at /home/ion/.vscode-server/extensions/ivandemchenko.roc-lang-unofficial-1.2.0/dist/extension.js:1:95430
What should I do? Thanks!
I found https://github.com/roc-lang/roc/issues/6744
Hi @ion,
Can you try this:
Oh, just quitting and restarting VSCode fixed it. I should have remembered the ancient wisdom, "have you tried turning it off and on again?"
Thanks!
Last updated: Aug 17 2025 at 12:14 UTC