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

Parser serialized diagnostic file instead of scraping diagnostics from the build log #670

Open
ahoppen opened this issue Jan 20, 2024 · 6 comments
Assignees
Labels
needs investigation Issue requires some investigation before it can be worked on

Comments

@ahoppen
Copy link

ahoppen commented Jan 20, 2024

Instead of scraping the build log for errors/warnings/notes using a regex, it would be cleaner if the VS Code extension would read the diagnostic file emitted by -serialize-diagnostics-path. That way VS Code could also show notes that are attached to errors as their children, instead of displaying them as a top level problem.

@adam-fowler
Copy link
Contributor

When did this go in? I know it was being planned but didn't know what state it was in.

@ahoppen
Copy link
Author

ahoppen commented Jan 22, 2024

What do you mean by “this“? AFAIK the Swift compiler has been able to emit serialized diagnostic files for quite a while, possibly forever.

@adam-fowler
Copy link
Contributor

Ok I didn't know about it.
Anyway VSCode expects extensions to be parsing compiler output to produce the output of the problems pane. It doesn't really have an interface for extensions to add problems, well at least not a publicly advertised one. What you are suggesting kinda goes against what VSCode expects of extensions. I'll leave this open , as there might be a way, but can't guarantee anything.

@ahoppen
Copy link
Author

ahoppen commented Jan 22, 2024

Oh, interesting. I would have expected that other languages also used serialized diagnostics to produce structured diagnostics.

@daveyc123
Copy link

This relates to #750 and the coordination between diagnostics that come from parsing the output of a task and the diagnostics that come out of source kit lsp.

@daveyc123 daveyc123 added the needs investigation Issue requires some investigation before it can be worked on label Apr 19, 2024
@award999
Copy link
Contributor

happy to grab this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation Issue requires some investigation before it can be worked on
Projects
None yet
Development

No branches or pull requests

4 participants