Description
1、opencode.json
"lsp": { "java": { "command": [ "jdtls", "--java-executable=/Users/xx/.local/share/mise/installs/java/openjdk-21/bin/java", "--jvm-arg=-javaagent:/Users/xx/code/app/lombok-1.18.42.jar" ], "extensions": [ ".java" ] },
⚙ lsp_diagnostics [filePath=./src/test/java/com/interview/controller/employer/CandidateControllerTest.java]
Error: Error: LSP request timeout (method: initialize)
recent stderr: Traceback (most recent call last):
File "/opt/homebrew/Cellar/jdtls/1.56.0/libexec/bin/jdtls", line 26, in
jdtls.main(sys.argv[1:])
~~~~~~~~~~^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/jdtls/1.56.0/libexec/bin/jdtls.py", line 105, in main
java_executable = get_java_executable(known_args)
File "/opt/homebrew/Cellar/jdtls/1.56.0/libexec/bin/jdtls.py", line 40, in get_java_executable
raise Exception("jdtls requires at least Java 21")
Exception: jdtls requires at least Java 21
2、lombok config is also not valid
3、jdtls installed by brew
Plugins
oh-my-opencode
OpenCode version
1.1.53
Steps to reproduce
1、set java lsp in opencode.json
2、run opencode
3、tell ai try java lsp in any java test faile
Screenshot and/or share link
No response
Operating System
macos 26
Terminal
item2
Description
1、opencode.json
"lsp": { "java": { "command": [ "jdtls", "--java-executable=/Users/xx/.local/share/mise/installs/java/openjdk-21/bin/java", "--jvm-arg=-javaagent:/Users/xx/code/app/lombok-1.18.42.jar" ], "extensions": [ ".java" ] },⚙ lsp_diagnostics [filePath=./src/test/java/com/interview/controller/employer/CandidateControllerTest.java]
Error: Error: LSP request timeout (method: initialize)
recent stderr: Traceback (most recent call last):
File "/opt/homebrew/Cellar/jdtls/1.56.0/libexec/bin/jdtls", line 26, in
jdtls.main(sys.argv[1:])
~~~~~~~~~~^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/jdtls/1.56.0/libexec/bin/jdtls.py", line 105, in main
java_executable = get_java_executable(known_args)
File "/opt/homebrew/Cellar/jdtls/1.56.0/libexec/bin/jdtls.py", line 40, in get_java_executable
raise Exception("jdtls requires at least Java 21")
Exception: jdtls requires at least Java 21
2、lombok config is also not valid
3、jdtls installed by brew
Plugins
oh-my-opencode
OpenCode version
1.1.53
Steps to reproduce
1、set java lsp in opencode.json
2、run opencode
3、tell ai try java lsp in any java test faile
Screenshot and/or share link
No response
Operating System
macos 26
Terminal
item2