-
-
Notifications
You must be signed in to change notification settings - Fork 400
Open
Labels
status: needs triagetype: supportUser support tickets, questions, help with setup etc.User support tickets, questions, help with setup etc.
Description
Your environment
Which OS do you use?
Ubuntu 22.04
Which version of GHC do you use and how did you install it?
ghcup install ghc 9.12.2 --set
How is your project built (alternative: link to the project)?
cabal 3.14.2
Which LSP client (editor/plugin) do you use?
run from terminal
Which version of HLS do you use and how did you install it?
ghcup install hls 2.11.0.0 --set
Have you configured HLS in any way (especially: a hie.yaml
file)?
Nothing explicit, but I have previously used hls 2.9.0.1 with ghc 9.8.2
What's wrong?
I run haskell-language-server-wrapper
in my working folder.
HLS throws these errors of the same kind as this for all source files:
2025-07-25T03:43:14.302291Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File: /home/longtt/workspace/HaskellRender/src/Solvers/RungeKutta4.hs
Hidden: no
Range: 58:36-58:52
Source: hlint
Severity: DiagnosticSeverity_Information
Code: refact:Redundant bracket
Message:
Redundant bracket
Found:
(snd z - fst z) / (fromIntegral t)
Why not:
(snd z - fst z) / fromIntegral t
File: /home/longtt/workspace/HaskellRender/src/Solvers/RungeKutta4.hs
Hidden: no
Range: 81:40-81:41
Source: hlint
Severity: DiagnosticSeverity_Information
Code: refact:Redundant $
Message: Redundant $Found:V.scale 2 $ k2Why not:V.scale 2 k2
File: /home/longtt/workspace/HaskellRender/src/Solvers/RungeKutta4.hs
Hidden: no
Range: 82:40-82:41
Source: hlint
Severity: DiagnosticSeverity_Information
Code: refact:Redundant $
Message: Redundant $Found:V.scale 2 $ k3Why not:V.scale 2 k3
File: /home/longtt/workspace/HaskellRender/src/Solvers/RungeKutta4.hs
Hidden: no
Range: 83:21-83:22
Source: hlint
Severity: DiagnosticSeverity_Information
Code: refact:Redundant $
Message: Redundant $Found:V.add (V.scale 2 $ k3) $ k4Why not:V.add (V.scale 2 $ k3) k4
File: /home/longtt/workspace/HaskellRender/src/Solvers/RungeKutta4.hs
Hidden: no
Range: 1:1-2:1
Source: compiler
Severity: DiagnosticSeverity_Error
Code: <none>
Message:
(TypeCheck,NormalizedFilePath
"/home/longtt/workspace/HaskellRender/src/Solvers/RungeKutta4.hs")not used by
HLS/home/longtt/.ghcup/ghc/9.12.2/lib/ghc-9.12.2/lib/../lib/x86_64-linux-ghc-9.12.2-a828/libHSghc-prim-0.13.0-e168-ghc9.12.2.so
As you can see, hlint
plugin works fine on the same file
Debug information
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 2.11.0.0 x86_64 ghc-9.10.2
Current directory: /home/longtt/workspace/HaskellRender
Operating system: linux
Arguments: []
Cradle directory: /home/longtt/workspace/HaskellRender
Cradle type: Cabal
Tool versions found on the $PATH
cabal: 3.14.2.0
stack: 3.1.1
ghc: 9.12.2
Consulting the cradle to get project GHC version...
2025-07-25T03:43:09.372493Z | Debug | cabal --numeric-version
2025-07-25T03:43:09.384359Z | Debug | cabal path --output-format=json
2025-07-25T03:43:09.408373Z | Debug | /home/longtt/.ghcup/bin/ghc --numeric-version
Project GHC version: 9.12.2
haskell-language-server exe candidates: ["haskell-language-server-9.12.2","haskell-language-server"]
Launching haskell-language-server exe at:/home/longtt/.ghcup/bin/haskell-language-server-9.12.2
2025-07-25T03:43:09.421159Z | Debug | cabal path --output-format=json
2025-07-25T03:43:09.503655Z | Debug | /home/longtt/.ghcup/bin/ghc -v0 -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2025-07-25T03:43:09.515554Z | Debug | cabal path --output-format=json
2025-07-25T03:43:09.541041Z | Debug | /home/longtt/.ghcup/bin/ghc --print-libdir
2025-07-25T03:43:10.631853Z | Info | haskell-language-server version: 2.11.0.0 (GHC: 9.12.2) (PATH: /home/longtt/.ghcup/hls/2.11.0.0/lib/haskell-language-server-2.11.0.0/bin/haskell-language-server-9.12.2)
2025-07-25T03:43:10.632518Z | Info | Directory: /home/longtt/workspace/HaskellRender
2025-07-25T03:43:10.632678Z | Info | Logging heap statistics every 60.00s
ghcide setup tester in /home/longtt/workspace/HaskellRender.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in /home/longtt/workspace/HaskellRender
Found 32 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
()
Step 3/4: Initializing the IDE
Step 4/4: Type checking the files
2025-07-25T03:43:10.676064Z | Info | Cradle path: src/Renderer/Objects/Sky.hs
2025-07-25T03:43:10.676174Z | Warning | No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for src/Renderer/Objects/Sky.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
2025-07-25T03:43:10.676581Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2025-07-25T03:43:10.715751Z | Info | Load cabal cradle using single file
2025-07-25T03:43:10.752526Z | Info | cabal --builddir=/home/longtt/.cache/hie-bios/dist-HaskellRender-4ec124cacde48a336a974d7ab982b037 v2-repl --with-compiler /home/longtt/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 /home/longtt/workspace/HaskellRender/src/Renderer/Objects/Sky.hs
Environment Variables
HIE_BIOS_OUTPUT: /tmp/HIE_BIOS_OUTPUT1068295-0
HIE_BIOS_GHC: /home/longtt/.ghcup/bin/ghc
HIE_BIOS_GHC_ARGS: -B/home/longtt/.ghcup/ghc/9.12.2/lib/ghc-9.12.2/lib
2025-07-25T03:43:11.018315Z | Info | Interface files cache directory: /home/longtt/.cache/ghcide/HaskellRender-0.1.0.0-inplace-HaskellRender-b86e3c3f541335606d8c4843727c76f59a237eaa
2025-07-25T03:43:11.022207Z | Info | Making new HscEnv. In-place unit ids: [ HaskellRender-0.1.0.0-inplace-HaskellRender ]
Metadata
Metadata
Assignees
Labels
status: needs triagetype: supportUser support tickets, questions, help with setup etc.User support tickets, questions, help with setup etc.