Skip to content

bug: Wrong data directory #65

@adelarsq

Description

@adelarsq

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)

NVIM v0.10.0-dev-3036+gab1c2220f

Operating system/version

Windows 11

Describe the bug

LSP gives this message:

Client jdtls quit with exit code 13 and signal 0. Check log for errors: C:\Users\user\AppData\Local\nvim-data/lsp.log

The reason is that on the -data argument is passed the whole project directory:

C:\dev\javas\jdk-17.0.5+8\bin\java.EXE -Declipse.application=org.eclipse.jdt.ls.core.id1 
-Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product 
-Dosgi.checkConfiguration=true -Dosgi.sharedConfiguration.area=C:\Users\user\App
Data\Local\nvim-data\mason\share\jdtls/config -Dosgi.sharedConfiguration.area.read
Only=true -Dosgi.configuration.cascaded=true -Xms1G --add-modules=ALL-SYSTEM
 --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=
ALL-UNNAMED -javaagent:C:\Users\user\AppData\Local\nvim-data\mason\share\
lombok-nightly/lombok.jar -jar C:\Users\user\AppData\Local\nvim-data\mason\share\jdtls/plugins/org.eclipse.equinox.launcher.jar -configuration 
C:\Users\user\AppData\Local\Temp\nvim/jdtls/config
-data C:\Users\user\AppData\Local\Temp\nvim/jdtls/workspaces/C:\w\myprojects\myproject\backend

The error occurs after the commit ff5413f

Steps To Reproduce

Open a Java project on Windows

Expected Behavior

To able to start LSP on the project

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions