Helix ingnores language-server.jdtls.args
#12449
-
SummaryI am using the Lombok library to generate methods, but JDTLS reports errors such as Versions
I am not an experienced Java developer, but after some research, I found that JDTLS requires the Lombok JAR file path to be specified. Source. I downloaded the latest Lombok JAR and configured it as follows: [language-servers.jdtls]
command = "jdtls"
args = ["--jvm-arg=-javaagent:/home/hash/.cache/lsp/java/lombok.jar"] However, this does not work. The Lombok JAR path is correct, but the argument is not applied when Helix starts JDTLS. `ps aux | rg java` output
Reproduction Steps
[language-servers.jdtls]
command = "jdtls"
args = ["--jvm-arg=-javaagent:/home/hash/.cache/lsp/java/lombok.jar"]
Step-by-step instructions
Alternatively, you can clone the test repository: https://github.com/h4-h/jdtls_lombok_helix_test
Helix log~/.cache/helix/helix.log
PlatformLinux (Artix/dinit) Terminal Emulatorfoot 1.20.1 Installation MethodRelease page - app image Helix Versionhelix 25.1 (dabfb6c) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Just in case, are you sure the |
Beta Was this translation helpful? Give feedback.
-
I'm sure because I have other language configurations that work ❯ ls ~/.config/helix
config.toml languages.toml themes |
Beta Was this translation helpful? Give feedback.
-
UPDAfter reading my own post, I realized that I had used I think it would be nice to have some type of warning for situations like this. I’m not sure if this will help, but the Extension Pack for Java in VS Code supports Lombok without requiring any additional configuration. This extension also uses JDTLS. They ship their own Lombok I think either something is wrong with my `cat ~/.config/helix/languages.toml`
|
Beta Was this translation helpful? Give feedback.
UPD
After reading my own post, I realized that I had used
language-servers.jdtls
instead oflanguage-server.jdtls
. By removing the extra s, I fixed the error. Sorry! It's funny how @kirawi was almost right.I think it would be nice to have some type of warning for situations like this.
I’m not sure if this will help, but the Extension Pack for Java in VS Code supports Lombok without requiring any additional configuration.
This extension also uses JDTLS. They ship their own Lombok
-javaagent:/home/hash/.vscode-oss/extensions/redhat.java-1.38.0-linux-x64/lombok/lombok-1.18.34.jar
.I think either something is wrong with my
languages.toml
, or Helix does not processargs
for JDTLS or any oth…