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
[Windows] Server initialization failed error #2251
Comments
Hi! What happens if you run the downloaded clojure-lsp from the command line? (It's not a solution, but we might see some output that could hint at what is going wrong.) |
Ok so I did It's not frozen in the usual sense, there is still a curser and I can write letters, but other than a new line there is no intelligible output, and the command doesn't terminate... |
I think that means that the command works. 😄 You can try But it leaves us with few clues as to what is going wrong... I'll think a bit and see if I can come up with anything to test. |
Hey, I just found the Guide for first starting Calva and actually the Still, when I restart VS code I get the same three error messages. Also, it may be worth noting that when I first installed Calva I did not have Java installed yet, but after re-installation (including deleting the folders in |
No, shouldn't be problematic. |
Thanks for updating about the getting started REPL working. I don't know why clojure-lsp doesn't work. But you can use Calva anyway. There are some features you won't have, but generally things should work. So don't let those error messages get in the way for exploring Clojure. 😄 There is a similar question to yours asked in the |
Hello, I faced more or less the same issue. I am sending this archive that reproduces the error. Check if you like. |
I'm afraid that in my case it will be very difficult to "just rename the path" as I would have to migrate my whole system (correct me if I'm wrong but atm this is the only way I know...) Is there a quick fix I have missed or will I have to live with this? |
You could place your Clojure project somewhere else than under the your user home directory? |
Hey, sorry for getting back to you late.
None of them worked, and I begin to wonder why, because this strange dependency on the file path should lie somewhere in (Extention Folder, Project Folder, VS Code Installation, ...), shouldn't it? |
That's super strange! I could reproduce the problem by putting a project in a path with an As for fixing the problem. I've spent a lot of time investigating, and I really don't know how to fix this. It goes wrong deep inside VS Code somewhere. I find no relevant issues on VS Code (at least not when I checked, maybe there's one there now). It might take that we can create a minimal reproduction with a minimal LSP server, so that the VS Code team can have a look. But that will take some time to create. |
Have you tried using VS Code Insiders @AndreasADL? It probably won't "fix" your issue, but it's worth a try, I suppose. |
Thanks, @uhlikosaurus! Let's hope they understand the error over at clojure-lsp/clojure-lsp#1679 |
This happens for me as well on windows 10 with clean installation of Visual Studio Code, Calva extension, and Clojure-lsp. It does not happen for colleagues on the same projects. Path of the projects does not contain any non-latin characters though |
Yes, I have tried it on a work PC with windows 10 and also unsuccessfully. LSP with Kate editor worked without any problem, so it really seems to be a calva/VSC bug. |
I'll check this behavior on my work PC on Monday. |
Thanks!!! I'm updating the documentation here: https://deploy-preview-2323--calva-docs.netlify.app/ |
I noticed that this ticket has been closed, but the solution provided doesn't seem to resolve my issue. I've double-checked my PATH variable and it appears to be set up correctly. Additionally, I've cleared all temporary files. Despite these steps, the problem continues. |
Upon further review, it turns out that the problem was indeed related to the PATH variable, just in a different way than initially thought. Specifically, I encountered this issue from the installation of Nim using Scoop. My apologies for the confusion. |
Thanks for both updates, @hkjels! If you see room for improvement in the docs here: https://calva.io/clojure-lsp/#server-initialization-failed please suggest (or PR the improvement). |
Looks good |
I am new to this running Calva for the first time on Windows 11.
I got the following vs-code errors
[Error - 00:45:45] Server initialization failed. Message: Internal error Code: -32603 [object Object] [Error - 00:45:45] Clojure Language Client client: couldn't create connection to server. Message: Internal error Code: -32603 [object Object] [Error - 00:45:47] Connection to server got closed. Server will not be restarted.
Apparently the closure-lsp was successfully downloaded ("Downloaded clojure-lsp to: c:\Users\Andreas Kolb.vscode\extensions\betterthantomorrow.calva-2.0.378\clojure-lsp")
I haven't found a solution through googling it... tried deleting the "extensions/betterthantomorrow.calva-2.0.378" folder and reinstalling the extention, but without success...
The text was updated successfully, but these errors were encountered: