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

Add basic pull diagnostics support #4280

Merged
merged 3 commits into from
Jul 7, 2024

Conversation

Ruin0x11
Copy link
Contributor

Only basic support for now; no extra features like related documents. It's just enough to get diagnostics showing with the Roslyn server.

Closes #4276.

@jcs090218
Copy link
Member

Can you resolve conflicts and rebase this? Thank you!

@catssay
Copy link

catssay commented Jun 27, 2024

The newest version of eslint plugin also uses the feature. My project using latest eslint version 9.5.0, it doesn't work with eslint plugin version 2.2.2 which is lastest version lsp-eslint provided. So I downloaded the latest eslint plugin from vscode market and replaced it, but it not work. Then I applied the patch, it worked. It would be great if some can review and merge the code.

@Ruin0x11
Copy link
Contributor Author

@jcs090218 Could you please take a look at this when you have some time? Thank you.

@sin-ack
Copy link

sin-ack commented Jul 2, 2024

I just tested this patch and it doesn't seem to work with Roslyn language server version 4.11.0-3.24320.2. Weirdly enough, I don't see a textDocument/diagnostic message sent, neither by opening a file or changing it.

@jcs090218
Copy link
Member

@jcs090218 Could you please take a look at this when you have some time? Thank you.

I'm sorry for not getting back to you sooner! I was a little busy recently.

Others have helped test this patch, but it doesn't work. 🤔 Can you confirm this?

@jcs090218
Copy link
Member

There are compile errors:

In lsp-diagnostics--apply-pull-diagnostics:
lsp-mode.el:2340:2: Warning: docstring has wrong usage of unescaped single quotes (use \= or different quoting)

In lsp--after-change:
lsp-mode.el:4929:9: Warning: ‘mapcar’ called for effect; use ‘mapc’ or ‘dolist’ instead

lsp-mode.el Show resolved Hide resolved
@Ruin0x11
Copy link
Contributor Author

Ruin0x11 commented Jul 4, 2024

For me at least, I do get diagnostics with csharp-roslyn server:

ss

I'm using version 4.9.0-3.23604.10 of that server on Windows.

@jcs090218 jcs090218 merged commit 7e342a5 into emacs-lsp:master Jul 7, 2024
10 of 13 checks passed
@jcs090218
Copy link
Member

Thank you!

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

Successfully merging this pull request may close these issues.

Support pull diagnostics (textDocument/diagnostic)
4 participants