-
-
Notifications
You must be signed in to change notification settings - Fork 389
hlint fixity issues #2418
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
Thanks for the bug report, i wonder what happens if you set the rule via file pragma f.e. |
AFAICT, the fixity information can only be specified in I did try adding |
I looked into this and it seems to be that the hlint plugin in the end gets the haskell-language-server/plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs Lines 238 to 246 in 4cd1082
I think applying fixities in the flags to |
Your environment
Which OS do you use: Red Hat 7 VM
Which lsp-client do you use: Emacs
Describe your project (alternative: link to the project): Shake + Stack; internal project so can't be shared
Steps to reproduce
Haskell source file:
Load this in $EDITOR, list all suggestions from hls.
Expected behaviour
No warnings related to
foo
.Actual behaviour
Include debug information
Running hlint explicitly does not have any problems.
The
.hlint.yaml
file is indeed being picked up by the hls hlint plugin as other suggestions are appearing based upon the configuration (custom linting rules, etc.). As such, this might be due to ndmitchell/hlint#1232haskell-language-server-wrapper --debug .
output only partially shown as it's quite large:Logs from LSP client:
The text was updated successfully, but these errors were encountered: