You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same goes for jdtls on neovim. If the project was initialized with gradle and kotlin as build script DSL. The jdtls doesn't work. However, if the project is created with gradle and groovy jdtls will work, and it will work with mvn. Also if the file is a non-project file, the jdtls will work and tell us.
Versions
neovim: NVIM v0.9.5
jdtls: v1.33.0 (installed using mason, from the eclipse website)
gradle 8.7
Kernel: linux-lts 6.6.25-1
Jdtls log
[ERROR][2024-04-09 17:08:08] ...lsp/handlers.lua:535 "Apr 9, 2024, 5:08:08 PM file:///home/user/project/app/src/main/java/org/example/App.java does not resolve to a ICompilationUnit"
Note: I am new to java, gradle... However, for some unknown reasons, after trying groovy. The jdtls worked with build script kotlin. However, I was stuck like 2 hours trying to figure out, why jdtls is not working when I am using gradle.
lescx
changed the title
LSP not working on Helix with Gradle Kotlin build script DSL
LSP not working with Gradle Kotlin build script DSL
Apr 9, 2024
Currently, when setting up a new Gradle project with Kotlin as the build script DSL (which is the default), the jdt.ls does not work.
Steps to reproduce
.java
file in the project in Helix and hover with the cursor over e.g. a class:Expected behaviour
When choosing Groovy instead of Kotlin, the LSP does its job and auto-completions etc. work:
Versions
LSP/Helix Logs
hx app/src/main/java/org/example/App.java
System
class:q
~/.cache/helix/helix.log
The text was updated successfully, but these errors were encountered: