-
Notifications
You must be signed in to change notification settings - Fork 64
Warnings in Cabal files #196
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
Comments
I just had a brief look at the LSP, and I think HLS is doing the correct hting here. It advertises a maximum set of capabilities across all file types to the client, but then informs the client that it can not handle speicific requests for specific file types. So we should handle this on the client side. The question is, does I also saw that there was a release for VSCode which includes Cabal file support. |
Hmm, I think this is probably a HLS bug? We have had various issues in HLS of this form, where we support a particular feature in some but not all situations, so we end up returning errors unhelpfully. Here we do support symbol highlighting, just not in cabal files. AFAIK there is no way for us to express the true situation in the LSP capability model, so I think we just need HLS to return an empty result in this case or something. |
OK, that makes sense but differs from what I got when reading the specs. I guess what I did not see is that the correct responses would be empty-like objects, and not Errors/Warnings, as you said. |
When activating
lsp-mode
in Haskell Cabal files, I receive numerous warnings (I tried GHC 9.10.1, HLS 2.9.0.0 and HLS 2.10.0.0):A temporary fix is
There are still some warnings about code lenses, but they are less prominent, and do not disturb the workflow.
EDIT:
For Cabal project files, we get more warnings:
I guess this is to be expected. Do you think it is worth adding support for cabal and cabal.project files? Where do we need to start? What do you think?
The text was updated successfully, but these errors were encountered: