Skip to content

Commit

Permalink
fix: coc-java doesn't work
Browse files Browse the repository at this point in the history
* The error message TypeError: Cannot read properties of null (reading '0')

Adding the version number of lombok to the actual lombok jar filename. For
example changing "lombok.jar" to "lombok-1.18.30.jar". Make sure to follow
to format precisely.

* The running environment doesn't satisfy accordingly

The tooling JDK will be used to launch the Language Server for Java. And by
default, will also be used to compile your projects. Java 17 is the minimum
required version.
  • Loading branch information
jeffreytse committed Mar 14, 2024
1 parent 8b5aca8 commit 1ae8bf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nvim/coc-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
"java.format.enabled": true,
"java.import.maven.enabled": true,
"java.maven.downloadSources": true,
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:/usr/local/share/lombok/lombok.jar"
"java.jdt.ls.java.home": "~/.asdf/installs/java/openjdk-17.0.2",
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:/usr/local/share/lombok/lombok-1.18.30.jar",
"snippets.ultisnips.pythonPrompt": false
}

0 comments on commit 1ae8bf9

Please sign in to comment.