-
-
Notifications
You must be signed in to change notification settings - Fork 391
Hlint restriction (and some other) settings not working #2592
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
HLS actually is using It seems like the issue is that the This wouldn't be a problem if we called the I don't really know a way to work around this, there might be some way of running hlint on specific files and obviating the |
Just in case I have time to dig in further, where is HLS referring to |
HLS itself doesn't actually look for the |
Thanks, that clears it up. It looks like the upstream changes are non-trivial. I'll ask about it in the HLint issue tracker. |
This differs from #1260 because even the
.hlint.yaml
file in the root of the workspace is not being used.Your environment
Which OS do you use:
ArchLinux, MacOS
Which LSP client (editor/plugin) do you use:
emacs+lsp-mode
Describe your project (alternative: link to the project):
GHC 8.10.7, cabal 3.6.2.0, hls 1.5.1, all installed with ghcup. hlint 3.3.4 installed with cabal.
A freshly initialized cabal project in a freshly initialized git repository with
.hlint.yaml
at the root of the repository:Steps to reproduce
Import and use
nub
insrc/MyLib.hs
. Runninghlint .
in the root of the repository emits a warning about the use ofnub
.Expected behaviour
The language server should also have a warning about the use of
nub
, as specified by the HLint configuration.Actual behaviour
No matter what is included in HLint configuration, the language server reports HLint warnings from the default HLint config and nothing else.
Include debug information
Overwriting the
Hint
returned byargsSettings
here withmempty
does remove all hints, so it seems thatargsSettings
isn't behaving as expected, which aligns with this HLint issue.The text was updated successfully, but these errors were encountered: