Skip to content
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

Annotations disappear shortly after adding #302

Open
ctron opened this issue Feb 9, 2023 · 1 comment
Open

Annotations disappear shortly after adding #302

ctron opened this issue Feb 9, 2023 · 1 comment
Labels

Comments

@ctron
Copy link

ctron commented Feb 9, 2023

Description:

I have a language server, which provides problem diagnostics. It works in VScode. But with this project, I can see the annotations for a brief moment, before they disappear again. However, this doesn't happen all the time, but in like 95% of the cases.

The file on which this happens (Maven POM file) does have another annotations too. I created a "test annotator", just to verify that this isn't a problem. Those annotations do survive, so I expect the issue is with lsp4intellij.

Steps to reproduce:

Hard to tell. I don't have an easy reproducer.

Affected Versions:

0.95.0 and 0.95.1

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

@ctron ctron added the Type/Bug label Feb 9, 2023
@ctron
Copy link
Author

ctron commented Feb 9, 2023

I dug a bit deeper and what happens is that the code ends up here:

// If the diagnostics list is locked, we need to skip annotating the file.
if (!(eventManager.isDiagnosticSyncRequired() || eventManager.isCodeActionSyncRequired())) {
return null;
}

I am not sure I do understand the whole processing, but it looks like there is some weird state issue going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant