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

CLI to retrieve errors from the current build #4715

Merged
merged 4 commits into from
Jun 9, 2021

Conversation

cwong-ocaml
Copy link
Collaborator

This introduces dune diagnostics, which can be used as a lightweight alternative to spinning up a separate RPC client

Copy link
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see where this command can be useful, but the implementation looks right.

@cwong-ocaml
Copy link
Collaborator Author

There are two use cases I have in mind:

  • It's a bit more lightweight than writing an entire separate application using the client library. For example, in vim, I'd rather shell out to dune diagnostics easily to populate the error list than set up a persistent client connection
  • When debugging strange editor issues, it can be useful to see if the client's state matches the server's internal state, and this is a relatively direct way of doing so

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.

2 participants