We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
## versions vim version: NVIM v0.5.0-828-g0a95549d6 node version: v10.16.1 coc.nvim version: 0.0.80-7642d233d6 coc.nvim directory: C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim term: undefined platform: win32
bf94769 does not fix the jump-to-definition errors on Windows for coc-java (coc-java issue).
Create file mini.vim with:
mini.vim
set nocompatible set runtimepath^=/path/to/coc.nvim filetype plugin indent on syntax on set hidden
Start (neo)vim with command: vim -u mini.vim
vim -u mini.vim
Create a java project file (pom.xml)
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany.app</groupId> <artifactId>my-app</artifactId> <version>1.0-SNAPSHOT</version>
src/main
// src/main/example.java public class Example { private String myString; }
Install coc-java :CocInstall coc-java
:CocInstall coc-java
Use jump-to-definition on a non-local type (such as String)
String
you will get an error:
2020-12-21T11:21:20.195 ERROR (pid:9372) [node-client] - request error on "nvim_call_function" [ 'coc#util#jump', [ 'edit', '?jdt://contents/java.base/java.lang/String.class?=selenium/C:%5C/Program%20Files%5C/ojdkbuild%5C/java-11-openjdk-11.0.6-1%5C/lib%5C/jrt-fs.jar%60java.base=/maven.pomderived=/true=/=/javadoc_location=/https:%5C/%5C/docs.oracle.com%5C/en%5C/java%5C/javase%5C/11%5C/docs%5C/api%5C/=/%3Cjava.lang(String.class', [ 124, 19 ] ] ] Vim(edit):E480: No match: \?jdt://contents/java.base/java.lang/String.class\?=selenium/C:%5C/Program%20Files%5C/ojdkbuild%5C/java-11-openjdk-11.0.6-1%5C/lib%5C/jrt-fs.jar%60java.base=/maven.pomderived=/true=/=/javadoc_location=/https:%5C/%5C/docs.oracle.com%5C/en%5C/java%5C/javase%5C/11%5C/docs%5C/api%5C/=/%3Cjava.lang(String.class Error at NeovimClient.request (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:15401:21) at NeovimClient.call (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:16294:21) at Workspace.jumpTo (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:32546:33) at Handler.handleLocations (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:95213:39) at Handler.gotoDefinition (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:94674:20) 2020-12-21T11:21:20.196 ERROR (pid:9372) [attach] - Notification error: jumpDefinition [] Error at NeovimClient.request (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:15401:21) at NeovimClient.call (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:16294:21) at Workspace.jumpTo (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:32546:33) at Handler.handleLocations (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:95213:39) at Handler.gotoDefinition (C:\Users\Adam Cutler\AppData\Local\nvim\bundle\coc.nvim\build\index.js:94674:20)
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Result from CocInfo
Describe the bug
bf94769 does not fix the jump-to-definition errors on Windows for coc-java (coc-java issue).
Reproduce the bug
Create file
mini.vim
with:Start (neo)vim with command:
vim -u mini.vim
Create a java project file (pom.xml)
src/main
Install coc-java
:CocInstall coc-java
Use jump-to-definition on a non-local type (such as
String
)you will get an error:
Screenshots (optional)
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: