Skip to content

bug: Java remote debug : lspFrame.source.path is null #479

@organix7

Description

@organix7

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.11.5

Operating system/version

wsl 2

Describe the bug

A bug exists in version 0.58.3 of java_debug_adapter, which is the default version used.
The bug is fixed in version 0.58.5: microsoft/java-debug#618

However, it doesn’t seem to be available yet:
https://openvsxorg.blob.core.windows.net/resources/vscjava/vscode-java-debug/0.58.5/vscjava.vscode-java-debug-0.58.5.vsix
→ nothing there.

Maybe it is available there if we can trust them : https://open-vsx.org/api/vscjava/vscode-java-debug/0.58.5/file/vscjava.vscode-java-debug-0.58.5.vsix

The workaround I have used for now is to add this to the setup:

java_debug_adapter = {
enable = true,
version = "0.58.2",
}

And it works :)

Unfortunately, version 0.58.3 is buggy for some projects.

Steps To Reproduce

With the default installation, I get an error when performing a remote debug :

DAP Error retrieving stack traces: Cannot read field "path" because "lspFrame.source" is null

default intallation :
['1.54.0'] = {
lombok = '1.18.42',
java_test = '0.43.2',
java_debug_adapter = '0.58.3',
spring_boot_tools = '1.55.1',
jdk = '25',
},

Expected Behavior

No error and the debugger stops at the breakpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions