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

Support for errors.haskell.org? #887

Open
danwdart opened this issue May 31, 2023 · 5 comments
Open

Support for errors.haskell.org? #887

danwdart opened this issue May 31, 2023 · 5 comments

Comments

@danwdart
Copy link

Describe the solution you'd like

I'm not sure if it's out of scope, but would it be a good idea to have this extension support errors.haskell.org?

I could ctrl-click on an error code and it would show me a little window to explain what the error means, and allow me to go further and open it in a new tab or browser window if I wanted.

Describe alternatives you've considered

It could be a different repo if it's completely out of scope. I've not made these plugins before.

@fendor
Copy link
Collaborator

fendor commented May 31, 2023

Hi!

I think that's a good idea. Do you have any specific errors in mind, or some interaction?

@danwdart
Copy link
Author

danwdart commented May 31, 2023

I mean that if you hover an error code and click, it could look that error code up in a side pane, full tab or as if it's a link by prepending https://errors.haskell.org/messages/ to it. I think they're all doable, with a bit of lookup logic.

I suppose a setting would be used to specify the action of clicking the error, I think a side pane would be a good setting to default to.

So e.g. you get GHC-09009 in a terminal, hover and click and you get a side pane with the information from https://errors.haskell.org/messages/GHC-09009/ inside it.

@July541
Copy link
Collaborator

July541 commented Jun 5, 2023

IMO, this requires:

  1. ghc9.6+
  2. Update lsp to support code description

@fendor
Copy link
Collaborator

fendor commented Jun 5, 2023

Yeah, the suggestions are not necessarily in the scope of vscode-haskell. However, I am confident, there are use-cases for us, too...
Better error communication, one where we have control over the rendering, sounds very promising to me.

@hasufell
Copy link
Member

hasufell commented Jun 6, 2023

VSCode haskell does some of its own shenanigans like downloading and parsing https://github.com/haskell/ghcup-metadata/blob/develop/hls-metadata-0.0.1.json

This isn't done by GHCup, so may be useful to have its own error scope.

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

No branches or pull requests

4 participants