-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Unable to init server on WSL #29
Comments
Hey, next week I'm getting a Windows machine to test Magic Racket on WSL. So, hold on a little longer! In the meantime, check over at racket-langserver if this isn't a well-known problem. |
Hey @jdan, I'm experiencing a similar issue when trying to init server inside a devcontainer. Have you managed to work around this issue? Any insight would be highly appreciated. |
Nope no dice yet but haven't tried anything fancy :) |
related #31, jeapostrophe/racket-langserver#18 xvbf is a potential solution here |
This issue is now tracked at jeapostrophe/racket-langserver#45 |
Hello! Great plugin, thank you! I also have this issue when trying to run it when there is no display available; would it be possible to add a configuration option to change the command to launch the server? cheers! |
Could someone provide the exact steps that you're using to run racket-langserver in WSL? I'm using VS Code and couldn't figure how to use xvfb in this context. |
@HugoBarreto @jdan I found a workaround, please see this #51 |
Closing, as there is currently a workaround and the issue itself cannot be fixed on the side of Magic Racket. I will link the workaround from the readme. |
{
"magicRacket.languageServer.command": "xvfb-run",
"magicRacket.languageServer.arguments": [
"--auto-servernum",
"racket",
"--lib",
"racket-langserver"
],
} This is the configuration that works for me. I had to add |
Same problem on vscode ssh to a Debian instance and magic-racket extension crashed. Using xvbf works fine to me.
|
@tim-harding's solution also worked for me on Ubuntu, after installing |
Environment
Error message
Additional context
I am running this in Windows Subsystem Linux 2
Unsure why the langserver needs gtk, maybe that's just racket startup stuff? I'm able to run
racket
from my terminal without issueThe text was updated successfully, but these errors were encountered: