-
-
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
Launching server using command "racket" failed. #131
Comments
It seems like you skipped a few of the environment questions above...? Please fill them in so we have the full context on your situation. |
Same for me. Environment
Error message
Additional contextFirst intstallation. DrRacket works fine, tried to move to vscode, found magic racket, everything executes in the terminal, but lsp does not work. |
devconsole
|
Hmm, so far I am not able to reproduce this issue. I am testing on a similar system configuration:
These errors strongly suggest that the Have you tried restarting VS Code just for good measure...? (Perhaps it's caching old binary paths...) |
Restarting did not help me. In my case racket is installed via homebrew if that matters |
Is there some diagnostic command we can try? In devtools or otherwise? |
I also used Homebrew to install Racket via the cask. One possible difference is that I am using an Intel Mac, while you may have Apple Silicon... though so far, I can't think of why that would matter here. It's hard to know quite what to debug... The extension retrieves the LSP command and arguments from settings: Lines 32 to 37 in 8cf9d9a
and then passes them to the LSP client, which tries to run the command: Lines 65 to 70 in 8cf9d9a
The actual process launch is handled by the LSP client code. What do you have |
tl;dr
fixes the problem in my case. I think previously I tried setting To debug I created a python script on my machine and pointed the setting above to it and somehow homebrew bin is not in the I guess homebrew sets PATH in some rc file that is not being sourced in the vscode plugins or whatnot. So most certainly not an issue with magicRacket. I was able to format my files! Yay! 🎉 Thanks for the plugin, btw, using it to read SICP, much more fun than any other env. |
Ah okay, glad you got it working! @johnthompson-ybor, maybe your issue is similar? I will look into a better error message for this case, or perhaps displaying these values in context. |
Filed #132 to improve the error message in the future. No reply from the OP, so let's assume this is resolved for now. |
Environment
OS: MacOs
OS Version [e.g. Catalina]
VS Code Version [e.g. 1.46.1]
Racket version [e.g. 7.7]
racket -v
Welcome to Racket v8.15 [cs].
Racket Langserver checksum [e.g. 64c1827548089c97c56a53a90ef3d569deb0e6c2]
raco pkg show --full-checksum racket-langserver
raco pkg show --full-checksum racket-langserver
Installation-wide:
[none]
User-specific for installation "8.15":
Package Checksum Source
racket-langserver 7481d2f98f175a545a0714ead3ec20ae327afec4 catalog...erver.git
v0.6.7
Magic Racket version [e.g. 0.5.6]
Error message
[Error - 4:20:59 PM] Starting client failed
Launching server using command "racket" failed.
I've tried hardcoding the path, it doesn't make any difference. I can run racket and langserver and racket --lib racket-langserver just fine from the terminal. There's no more useful debug information beyond that in anything I can find.
The text was updated successfully, but these errors were encountered: