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

Return null in textDocument/diagnostic handler #812

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

anderseknert
Copy link
Member

While the specification isn't clear here, Neovim apparently had issues dealing with the empty object response. And since all the other editors seem to handle a null response too, let's just go with that instead.

Fixes #810

While the specification isn't clear here, Neovim apparently had issues
dealing with the empty object response. And since all the other editors
seem to handle a null response too, let's just go with that instead.

Fixes #810

Signed-off-by: Anders Eknert <anders@styra.com>
@anderseknert anderseknert linked an issue Jun 8, 2024 that may be closed by this pull request
@folliehiyuki
Copy link

I've tried this branch and can confirm that Neovim could handle the response gracefully. The reported error message doesn't pop up anymore.

@anderseknert
Copy link
Member Author

@folliehiyuki thanks!

@charlieegan3 charlieegan3 merged commit b5da485 into aggregate-ignore-directives Jun 10, 2024
3 checks passed
@charlieegan3 charlieegan3 deleted the fix-empty-diagnostic branch June 10, 2024 08:31
anderseknert added a commit that referenced this pull request Jun 10, 2024
* Support ignore directives in aggregate rules

Also some light refactoring, but should hopefully not
be too distracting.

Fixes #803

Signed-off-by: Anders Eknert <anders@styra.com>

* Return `null` in textDocument/diagnostic handler (#812)

While the specification isn't clear here, Neovim apparently had issues
dealing with the empty object response. And since all the other editors
seem to handle a null response too, let's just go with that instead.

Fixes #810

Signed-off-by: Anders Eknert <anders@styra.com>

---------

Signed-off-by: Anders Eknert <anders@styra.com>
srenatus pushed a commit to srenatus/regal that referenced this pull request Oct 1, 2024
* Support ignore directives in aggregate rules

Also some light refactoring, but should hopefully not
be too distracting.

Fixes StyraInc#803

Signed-off-by: Anders Eknert <anders@styra.com>

* Return `null` in textDocument/diagnostic handler (StyraInc#812)

While the specification isn't clear here, Neovim apparently had issues
dealing with the empty object response. And since all the other editors
seem to handle a null response too, let's just go with that instead.

Fixes StyraInc#810

Signed-off-by: Anders Eknert <anders@styra.com>

---------

Signed-off-by: Anders Eknert <anders@styra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in latest Neovim handling textDocument/diagnostic response
3 participants