- Notifications
You must be signed in to change notification settings - Fork220
Diagnostics for the full project?#280
-
Hi there, Is there any chance that E.g. for static type checkers like Thanks for the great work! |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 11 comments 4 replies
-
Thanks for the suggestion. This idea is interesting but an implementation for it will have to come from the community because we don't have time for it right now, sorry. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks for the answer,@ccordoba12! After taking a look at the code, I am tempted to give it a try. I will probably ask you a few things here until I feel confident enough to submit a PR, if you don't mind. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Sure, no problem with that. And thanks a lot for your interest in adding this feature. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I have been taking a look at this and I think there is some ambiguity about where to solve this:
Not sure what is the right way to proceed, to be honest. The first one looks simpler, but maybe more memory-expensive, since more files need to be open? (or maybe the signal is sent but the file is not actually loaded in memory by the editor) Since I am usingeglot as a client, maybe@joaotavora has an opinion regarding this, or knows at what level this is addressed for other language servers? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Have you tried, |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thanks,@joaotavora! For the We'll go the sever-route then. The question now would be whether to @ccordoba12@joaotavora Do you have any idea whose responsibility in LSP (whether the server or the client) is to gather the names and paths of these files? I am sure Otherwise, if@ccordoba12 thinks that would be a good idea, we could scan the project root for |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
@JesusTorrado : From LSP spec there is a specific hook for this on server side:workspaceDiagnostic But i think the better solution will be to enable the textDocument/diagnostic capability on server sidetextDocumentDiagnostic so that any LSP client can gather the diagnostic for each file. So Option 1 is fine but instead of sending didOpen for all files at startup the client can request at any time the diagnostics for a set of files with textDocument/diagnostic |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
In order for any client to easily take advantage of this functionality, I'd be in favor of implementing the |
BetaWas this translation helpful?Give feedback.
All reactions
-
Carlos Cordoba that could make sense, but eglot doesn't issue these newkinds ofrequests. It could.Suggest you submit a feature report to Emacs's bug tracker, link to theLSP spec page,and CC: me in the report email.https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_pullDiagnosticsAlso please list one of two servers you know that support this. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks,@albilu! I'll try to get to this in 1-2 weeks. @joaotavora I will take care of the emacs side when this is done. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
OK, see also relatedhttps://debbugs.gnu.org/cgi/bugreport.cgi?bug=59824This bug report, which will soon be fixed (already have a fix) concerns aserver that already supplies workspace-wide diagnostics withoutmaking use of the new workspaceDiagnostics "pull" request.So, with some servers, this functionality is already available inEglot. Doesn't mean workspaceDiagnostics shouldn't alsobe added to Eglot, of course, but it's not essential to getthis functionality to the end user.João …On Wed, Dec 7, 2022 at 8:20 AM Jesús Torrado ***@***.***> wrote: Thanks,@albilu <https://github.com/albilu>! I'll try to get to this in 1-2 weeks.@joaotavora <https://github.com/joaotavora> I will take care of the emacs side when this is done. — Reply to this email directly, view it on GitHub <#280 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAC6PQ2S3UKXIYQAPYX7USDWMBCEVANCNFSM6AAAAAARHDZJIA> . You are receiving this because you were mentioned.Message ID: ***@***.*** .com> -- João Távora |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
@JesusTorrado any progress on this feature? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I am afraid not, and I don't expect to make any for the next few months. I hope to come back to this soon, but on my side feel free to close if you prefer. |
BetaWas this translation helpful?Give feedback.
All reactions
-
i will rather convert this into a feature request if no one is against as this is a needed feature. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 4
-
hey guys any news on the workspace diagnostics feature? |
BetaWas this translation helpful?Give feedback.