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

Better error messages for ide-backend / ide-backend-server mismatches #292

Open
mgsloan opened this issue Jul 20, 2015 · 3 comments
Open
Assignees
Milestone

Comments

@mgsloan
Copy link
Contributor

mgsloan commented Jul 20, 2015

See commercialhaskell/stack-ide#33 (comment)

It'd be better to have the handshake swap things like:

  • ide-backend version number
  • Git hash
  • Possibly things like the version of the binary package?

It'd then emit a noisy warning on mismatch. Ideally it'd also emit such info when there's a serialization error such as described in the issue above.

@urbanslug
Copy link
Contributor

hmmm within wai-devel I have a small function for making errors look better. If you like it I can submit a pull request. Here is my prettyPrintErrors function: https://github.com/urbanslug/wai-devel/blob/master/src/Devel/Compile.hs#L93

It works for all SourceError https://hackage.haskell.org/package/ide-backend-0.10.0/docs/IdeSession.html#t:SourceError

@mgsloan
Copy link
Contributor Author

mgsloan commented Aug 14, 2015

This issue is about exceptions / errors in ide-backend, not about source errors.

I'd consider adding a function like `prettyPrintErrors that formatted them the same as GHC, which should be quite feasible.

@urbanslug
Copy link
Contributor

Oh, sorry.

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

No branches or pull requests

2 participants