autozimu / LanguageClient-neovim

Language Server Protocol (LSP) support for vim and neovim.
MIT License
3.55k stars 272 forks source link

Release 0.1.137 breaks LanguageClient#textDocument_definition() in Java #730

Open GordianDziwis opened 5 years ago

GordianDziwis commented 5 years ago

I did a git bisect: with commit https://github.com/autozimu/LanguageClient-neovim/commit/73da84ac04887cd00bd79320dcb80aceb19248f6 definition look up works, with commit https://github.com/autozimu/LanguageClient-neovim/commit/0325b78584f36c001c93a1465855de5e1deba3fe it breaks and only an empty buffer is shown.

Status line is in both cases identical:

[LC] jdt://contents/jena-core-3.10.0.jar/org.apache.jena.graph/Triple.class?=nifi-sparql-integrate-processors/%5C/home%5C/XXXX%5C/.m2%5C/repository%5C/org%5C/apache%5C/jena%5C/jena-core%5C/3.10.0%5C/jena-core-3.
10.0.jar%3Corg.apache.jena.graph(Triple.class 37:14
wsdjeg commented 5 years ago

I got same error when I want to jump to definition of a jdk built-in class:

[LC] Project root: F:/Chatting-server
"src\main\java\com\wsdjeg\chat\server\Group.java" [unix] 58L, 1186C written
[LC] Starting Init...
[LC] Starting 0% Starting Java Language Server 
[LC] Starting 0% Starting Java Language Server 
[LC] Starting 0% Starting Java Language Server 
[LC] Starting 20% Starting Java Language Server 
[LC] Starting 35% Starting Java Language Server 
[LC] Starting 100% Starting Java Language Server - Importing Maven project(s)
[LC] Starting 100% Starting Java Language Server - Importing Maven project(s)
[LC] Starting 100% Starting Java Language Server - Importing Maven project(s)
[LC] Started Ready
[LC] Starting 100% Starting Java Language Server - Importing Maven project(s)
[LC] src\main\java\com\wsdjeg\chat\server\GroupManager.java 14:14
[LC] 'Vim(edit):E480: No match: jdt://contents/java.base/java.util/List.class\?=jdt.ls-java-project/D:%5C/scoop%5C/apps%5C/openjdk11%5C/current%5C/lib%5C/jrt-fs.jar%60java.base%3Cjava.util(List.class'
[LC] src\main\java\com\wsdjeg\chat\server\GroupManager.java 138:18

I use scoop to install jdk, and it create a link D:\scoop\apps\openjdk11\current to D:\scoop\apps\openjdk11\11.0.2-9. and in cmd, echo %JAVA_HOME% show me:

D:\scoop\apps\openjdk11\current