-
Notifications
You must be signed in to change notification settings - Fork 90
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
lsp-java doesn't detect core libraries on Apple M3 macbook air #478
Comments
Hi! I'm facing similar issue. @JoshTRN Ware you able to resolve this? Describe the bugThe workspace fails to detect java core libraries and dependencies. Note
To Reproduce
(after! lsp-java
(setq lsp-java-java-path (concat (getenv "JAVA_HOME") "/bin/java"))
(setq lsp-java-configuration-runtimes `[
(:name "JavaSE-21"
:path ,(getenv "JAVA_HOME")
:default t)]))
PATH_add ~/.jabba/jdk/[email protected]
JAVA_HOME=~/.jabba/jdk/[email protected] Logs
|
I've managed to fix it! Setting The default '(lsp-java-jdt-download-url
"https://www.eclipse.org/downloads/download.php?file=/jdtls/milestones/1.37.0/jdt-language-server-1.37.0-202406271335.tar.gz") |
@AnonymusBadger worked for me, thanks for this! |
I've just spent a million years trying to fix the error related to java version, just to find out it was an old JDT-ls version 🤦 for the fellow noobs who might be struggling:
|
Describe the bug
The workspace fails to detect java core libraries and doesn't work on Apple M3 air.
Note
java
layer which installslsp-java
java -version
output:To Reproduce
On Apple M3 macbook air:
brew install java
(this should install 21.0.3)DemoApplication.java
lsp-java-configuration-runtimes
Expected behavior
All the standard library and dependencies should be detected and all the standard lsp-java apis should function normally.
Screenshots
Logs
The text was updated successfully, but these errors were encountered: