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
Clojure-lsp not starting when offline #1299
Comments
Hello @temochka. Thanks for the issue report! We should definitely be able to use whatever clojure-lsp we have downloaded since before. |
Calva uses the last downloaded clojure-lsp binary if the download fails (at least, it is supposed to). Does it seem like there is an issue with this? If so, we should investigate. If there was no previous download, then there will be no previous binary. One solution/workaround to using clojure-lsp offline is to download the binary when/where you do have a connection, and make Calva use that downloaded binary: https://calva.io/clojure-lsp/#using-a-custom-clojure-lsp-native-binary. |
…r-handling Fixing #1299 - Clojure LSP not starting when offline
When my Mac is offline (or I’m on a corporate VPN) and I open a Clojure project in VS Code with Calva, the Clojure-lsp server doesn’t start and thus all LSP-powered functionality is unavailable.
Calva Diagnostics : Clojure-lsp Server Info
says "There is no clojure-lsp server running." The welcome message from Calva looks as usual, there’s no visible indication of an error.As soon as I re-connect to wi-fi (or disconnect from the corporate VPN) and restart VS Code, Clojure-lsp starts as expected. I was able to reproduce this issue both on my work and personal laptops.
Note: I do realize that by default Calva downloads the latest version of Clojure-lsp, but I always assumed it would re-use the latest available download if offline.
The text was updated successfully, but these errors were encountered: