-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
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
result of textDocument/declaration
is []
#3166
Comments
textDocument/declaration
is []
I tried a similar thing as well and initially |
I'm able to reproduce and I found the problem. Is the declaration reference in library code ? You don't need
For example, I sent :
and the response I got was : formatted for legibility Content-Length: 689
{
"jsonrpc": "2.0",
"id": 3,
"result": [
{
"uri": "jdt://contents/org.eclipse.lsp4j-0.20.1.jar/org.eclipse.lsp4j.services/LanguageServer.class?=org.eclipse.lemminx/%5C/home%5C/rgrunber%5C/.m2%5C/repository%5C/org%5C/eclipse%5C/lsp4j%5C/org.eclipse.lsp4j%5C/0.20.1%5C/org.eclipse.lsp4j-0.20.1.jar=/maven.pomderived=/true=/=/maven.groupId=/org.eclipse.lsp4j=/=/maven.artifactId=/org.eclipse.lsp4j=/=/maven.version=/0.20.1=/=/maven.scope=/compile=/=/maven.pomderived=/true=/%3Corg.eclipse.lsp4j.services(LanguageServer.class",
"range": {
"start": {
"line": 49,
"character": 37
},
"end": {
"line": 49,
"character": 47
}
}
}
]
} Additional Note: You might not face this at all, but I did because I was sending data over the gnome-terminal (and because I tried getting |
Going to close this because I was able to reproduceth exact issue and was able to fix by supplying |
I want to use eclipse.jdt.ls in my java automation program to help me analyze the code, mainly using the 'textDocument/declaration' function, but no matter how I try it will only return [], Although I have implemented the 'textDocument/definition' function, my ls seems to be limited to the current file at the moment, hope you can help me, I really need help, appreciate it.
The text was updated successfully, but these errors were encountered: