Let's make sure issue is not already fixed in snapshots first.
[x] I verified I can reproduce this issue against latest snapshots build
Steps to reproduce
From a fresh installation and clean workspace:
Open a basic external Java file with File > Open File
Verify hover works (so LS is connected)
I tried
modify the file (eg change a method reference)
retry usual features (eg hover)
I expected: fresh results according to the change
But got: no change in returned results, the LS is not sync'd with the editor
Here is some relevant log output form (<workspace>/.metadata/.log)
I've debugged it and see that the document used by the editor is not the same as the one used internally by JDT-LS.
The expectation is that both share the same document. We'll need to investigate why a new document is created (by the editor apparently, JDT-LS's one seems created earlier) instead of the existing one being reused.
[x] I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.
Let's make sure issue is not already fixed in snapshots first.
Steps to reproduce
From a fresh installation and clean workspace:
I tried
I expected: fresh results according to the change
But got: no change in returned results, the LS is not sync'd with the editor
Here is some relevant log output form (
<workspace>/.metadata/.log
)I've debugged it and see that the document used by the editor is not the same as the one used internally by JDT-LS. The expectation is that both share the same document. We'll need to investigate why a new document is created (by the editor apparently, JDT-LS's one seems created earlier) instead of the existing one being reused.
Tested under this environment:
Community