neoclide / coc-java

Java extension for coc.nvim
Eclipse Public License 1.0
449 stars 40 forks source link

Publish 1.22.4 to npmjs #282

Open thiagochaves opened 5 months ago

thiagochaves commented 5 months ago

The version of coc-java that coc installs is 1.15.2, that is the latest in the npm registry. This version does not support Java 21. Could someone publish a newer version (1.22.4, for example)?

sainnhe commented 4 months ago

The problem is that this extension is a fork of vscode-java and is frozen in a version that is bundled with jdt.ls 1.14.0, which is a very old version that doesn’t support java 21.

Publishing this extension means the language server also needs to be updated, otherwise java 21 is still unusable. This requires a heavy refactoring.

However the maintainer seems not having time to deal with this.

A temporary solution might be installing from the master branch and manually set the jdt.ls directory to use a higher version.

sainnhe commented 4 months ago

For anyone who wants to get java 21/22 support, you can try my branch https://github.com/neoclide/coc-java/pull/286