Closed IOU4 closed 1 year ago
lsp.log
[WARN][2022-12-20 11:14:46] .../lua/vim/lsp.lua:1072 "server_request: no handler found for" "workspace/inlayHint/refresh"
[WARN][2022-12-20 11:14:46] ...lsp/handlers.lua:113 "The language server jdtls triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[ERROR][2022-12-20 11:14:46] ...lsp/handlers.lua:485 "Dec 20, 2022, 11:14:46 AM class com.google.gson.internal.LinkedTreeMap cannot be cast to class java.util.ArrayList (com.google.gson.internal.LinkedTreeMap is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3e821657; java.util.ArrayList is in module java.base of loader 'bootstrap')\nclass com.google.gson.internal.LinkedTreeMap cannot be cast to class java.util.ArrayList (com.google.gson.internal.LinkedTreeMap is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3e821657; java.util.ArrayList is in module java.base of loader 'bootstrap')\njava.lang.ClassCastException: class com.google.gson.internal.LinkedTreeMap cannot be cast to class java.util.ArrayList (com.google.gson.internal.LinkedTreeMap is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3e821657; java.util.ArrayList is in module java.base of loader 'bootstrap')\n\tat org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.synchronizeBundles(JDTLanguageServer.java:387)\n\tat org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer$2.run(JDTLanguageServer.java:285)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)\n"
jdtls.log everything looks fine except for this at the end
!ENTRY org.eclipse.jdt.ls.core 4 0 2022-12-20 11:33:09.113
!MESSAGE class com.google.gson.internal.LinkedTreeMap cannot be cast to class java.util.ArrayList (com.google.gson.internal.LinkedTreeMap is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3e821657; java.util.ArrayList is in module java.base of loader 'bootstrap')
!STACK 0
java.lang.ClassCastException: class com.google.gson.internal.LinkedTreeMap cannot be cast to class java.util.ArrayList (com.google.gson.internal.LinkedTreeMap is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3e821657; java.util.ArrayList is in module java.base of loader 'bootstrap')
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.synchronizeBundles(JDTLanguageServer.java:387)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer$2.run(JDTLanguageServer.java:285)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Those commands are currently not added by default. You can add them by calling require('jdtls.setup').add_commands()
in your on_attach
hook or LspAttach
autocmd.
thank you
LSP client configuration
Eclipse.jdt.ls version
1.18.0
Steps to Reproduce
In a project using Gradle 7.5.1 open a .java file
Expected Result
Editor Commands:
JdtUpadteConfig
,JdtJshell
,JdtSetRuntime
,JdtRestart
to be availableActual Result
Only
JdtShowLogs
andJdtWipeDataAndRestart
that are available.