redhat-developer / eclipseide-jdtls

A language server client for Eclipse using JDT-LS
MIT License
11 stars 5 forks source link

Debug with DAP fails #111

Closed akurtakov closed 10 months ago

akurtakov commented 10 months ago

Let's make sure issue is not already fixed in snapshots first.

Steps to reproduce

From a fresh installation and clean workspace:

I expected: Debugging starts

But got: Error dialog with:

Error executing 'com.redhat.eclipseide.jdtlsclient.debugwithvscode': java.lang.NullPointerException: Cannot invoke "java.util.Map.putAll(java.util.Map)" because "builder.dspParameters" is null
Error executing 'com.redhat.eclipseide.jdtlsclient.debugwithvscode': java.lang.NullPointerException: Cannot invoke "java.util.Map.putAll(java.util.Map)" because "builder.dspParameters" is null

Community

akurtakov commented 10 months ago

Seems like https://github.com/eclipse/lsp4e/issues/756 broke it . It removed DSPLaunchDelegate.jsonToMap which made sure that dspParameters is initialized while the new code doesn't do so.