-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
start clojure-lsp client failed #1590
Comments
Sometimes the client download fails. Check if you see a |
emm.i found
by the way my jdk is zulu8,maybe it have some trouble about It is no redownload |
What are your settings for |
zulu8 should be fine, btw. |
Also check the the developer console (Help menu -> Toggle Developer Tools) for any clojure-lsp related messages and paste here. Maybe I can figure out where it goes wrong if I have those. |
i found some error,but seem to useless.
|
Can you try also deleting |
where is
and i delete
|
Hmmm, it should be there. But only if a download succeeds. Maybe it is that zip-file you need to move away, come to think of it. See if that triggers a re-download. |
I move
|
What does It is clear that the download does not happen. Do you see any attempt to downloading it. There should flash a statusbar item about this when the window is reloaded. |
Can you try this Calva VSIX: https://19430-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.254-1592-stop-start-clojure-lsp-5fcf9853.vsix (Download and from the VS Code Extension pane, in the meatballs (the three dots) menu, select Install from VSIX.) It's a development version: It should give you a statusbar icon for clojure-lsp which can be clicked and give you a download option. This should force a new download. (It could also be that things never reach a state where the statusbar button is activated, but we will see.) |
sorry for the late reply.I'm busy these days.
after I delete Now I'm downloadi Calv VSIX which you provider. |
I don't know much about js.So I'm not very clear on what this pr does. |
Thanks for testing that VSIX. Now what to do.... Hmmm. Can you check if you have a file |
Can you try running clojure-lsp from the command line and see what that gives you? /Users/paomian/.vscode/extensions/betterthantomorrow.calva-2.0.253/clojure-lsp --version |
BTW, @paomian . I hope you are aware that Calva is still perfectly useable without the clojure-lsp client? The error messages can be a bit alarming and maybe give the impression that all is lost. |
file
I think
yes i can still use repl in calva. |
Are you running VS Code in a docker container, maybe? I'm running into very similar issues here: |
No i running vs code in host.but I'm not install Rosetta. |
Can you try installing Rosetta and see if that helps? Clojure-lsp runs on my my company M1 Macbook. |
To fix this issue either install rosetta (not sure if this will work but am pretty sure) or install clojure-lsp via brew and link the absolute path in the extension settings. The version of clojure-lsp shipped with calva won't run natively on M1 processors. |
We should fix this. FYI Calva doesn't ship with a clojure-lsp version. Calva downloads it. So if we just figure out how to properly figure out the right version to download this should be sorted. |
The issue seems to be here: Lines 21 to 27 in d12ea27
From looking at the clojure-lsp github though there doesn't seem to be a release for arm64 on darwin. The brew package seems to just use the generic version. |
Yeah, I don't think there is a binary version for Apple Silicon yet. CC @ericdallo. Installing Rosetta is the way to go for now. |
If GraalVM supports it, we could support on clojure-lsp, but AFAIK there are already M1 users using clojure-lsp, not sure if the binary is the same for other macos. @borkdude what binary M1 babashka users download? Do you know what binary a M1 user should use? |
Indeed. I am one of them. The key might be Rosetta. Which probably most devs use. We can consider making that requirement explicit/documented. Like @rileysu is suggesting. The choice for the user would be to use rosetta or handle the download themselves. |
So far I haven't distributed any M1 binaries, just home-compiled them. Should just work with the GraalVM dev build. |
I'm no macos user and not sure what Rosetta is, but LMK if there is anything to improve on clojure-lsp side |
clojure-lsp should run just fine when people have installed rosetta2. |
At least on macOS Monterey 12.3 - not sure about older macOS versions. |
Rosetta is a backwards compatibility layer that let's M1 Macs run x86 binaries, @ericdallo. Some people are holding out, refusing to install it, waiting for native stuff. |
can start Clojure language client
my pc version
vscode version
when I open Clojure project I got an error
The text was updated successfully, but these errors were encountered: