haskell / haskell/haskell-language-server
`hls-hlint-plugin` test failure in Gentoo Linux
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 11
Description
I'm getting a test failure for `hls-hlint-plugin-1.1.0.0`:
```
.hlint.yaml fixity rules are applied: FAIL (8.52s)
src/Test/Hls/Util.hs:308:
Got unexpected diagnostics for Uri {getUri = "file:///var/tmp/portage/dev-haskell/hls-hlint-plugin-1.1.0.0/work/hls-hlint-plugin-1.1.0.0/test/testdata/fixity/FixityUse.hs"} got [Diagnostic {_range = Range {_start = Position {_line = 5, _character = 13}, _end = Position {_line = 5, _character = 46}}, _severity = Just DsInfo, _code = Just (InR "refact:Functor law"), _source = Just "hlint", _message = "Functor law\nFound:\n show <$> mInt pure <$> Just c\nWhy not:\n show . (mInt pure) <$> Just c\n", _tags = Nothing, _relatedInformation = Nothing}]
Use -p '/.hlint.yaml fixity rules are applied/' to rerun this test only.
```
---
Here is the diagnostic message pretty-printed:
```haskell
[ Diagnostic
{ _range = Range
{ _start = Position
{ _line = 5
, _character = 13
}
, _end = Position
{ _line = 5
, _character = 46
}
}
, _severity = Just DsInfo
, _code = Just
( InR "refact:Functor law" )
, _source = Just "hlint"
, _message = "Functor law
Found:
show <$> mInt pure <$> Just c
Why not:
show . (mInt pure) <$> Just c
"
, _tags = Nothing
, _relatedInformation = Nothing
}
]
```
---
Full output of the following command is [here](https://gist.githubusercontent.com/hololeap/68d9f874923a259a899ec8aed595c872/raw/0ecf6da23714bb8a263900aa30fe7f39187409de/hls-hlint-plugin-test-log.stdout):
```console
$ LSP_TEST_LOG_STDERR=1 LSP_TEST_LOG_MESSAGES=1 ./setup test --show-details=streaming --test-option=--color=always --test-option=+RTS --test-option=-T
```
---
### Your environment
- GHC 9.0.2 on Gentoo Linux. All packages are installed through the system package manager.
- HLint v3.4.1
This seems to be unrelated to [my other issue](https://github.com/haskell/haskell-language-server/issues/3126), as I am getting this failure when I run the tests outside Gentoo's sandbox, so it seems to be unrelated to any sandboxing issues.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.