java-language-server: Mason unable to install Java Language Server
New to vimming.
Have installed Mason, usually it installs LSPs without a hitch.
Get the following error when it tries to install the Java LSP:
Failed (1)
◍ java-language-server
▼ Displaying full log
Cloning into '.'...
From https://github.com/georgewfraser/java-language-server
* tag v0.2.39 -> FETCH_HEAD
+ ./scripts/link_mac.sh
+ mvn package -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.javacs:javac-services >----------------------
[INFO] Building javac-services 0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.0:resources (default-resources) @ javac-services ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/varungawande/.local/share/nvim/mason/.packages/java-language-server/src/main/resources
[INFO]
[INFO] --- compiler:3.8.0:compile (default-compile) @ javac-services ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 357 source files to /Users/varungawande/.local/share/nvim/mason/.packages/java-language-server/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.560 s
[INFO] Finished at: 2023-05-07T12:47:39+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project javac-services: Fatal error compili
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
spawn: bash failed with exit code 1 and signal 0.
Here is my java and maven versions.
❯ java -version
openjdk version "11.0.19" 2023-04-18 LTS
OpenJDK Runtime Environment Microsoft-7621296 (build 11.0.19+7-LTS)
OpenJDK 64-Bit Server VM Microsoft-7621296 (build 11.0.19+7-LTS, mixed mode)
❯ mvn -v
Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Maven home: /Users/varungawande/.sdkman/candidates/maven/current
Java version: 11.0.19, vendor: Microsoft, runtime: /Users/varungawande/.sdkman/candidates/java/11.0.19-ms
Default locale: en_IN, platform encoding: UTF-8
OS name: "mac os x", version: "13.3.1", arch: "aarch64", family: "mac"
In case we don’t know what the error is, where can I find the logs to figure out what went wrong?
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 8
- Comments: 15
I installed other version, its worked, the command is :MasonInstall java-language-server@v0.2.32