-
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
After saving a file, Javadoc not shown on hover #375
Comments
So this is tricky: the buffer is put out of sync because a document change event is fired AFTER the workspace operation finishes to save the file :
Not sure how to handle that. @gorkem, @aeschli, @snjeza, @tsmaeder ideas? |
I guess the question is, how does the resource change event get triggered. It seems to happen while saving, or even be a side effect of saving. |
This fixes eclipse-jdtls#375 somehow Signed-off-by: Fred Bricon <[email protected]>
This fixes #375 somehow Signed-off-by: Fred Bricon <[email protected]>
When hovering over a class or method or module you just opened, the Javadoc shows up as expected. If the javadoc is modified, javadoc on hover is updated.
As soon as the file is saved, javadoc is not shown anymore.
Turns out, this returns null:
In Member.java, we have
The problem is compilationUnit.isConsistent() returns false. If we dig deeper, we see that, in CompilationUnit:
So, for some reason, the compilation unit, after saving the file, ends up in JavaModelManager.elementsOutOfSynchWithBuffers
The text was updated successfully, but these errors were encountered: