ITADN

HLS 2.14.0.0 errors on HLS 2a304354b 's plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs

#4944ClosedAster89 创建于 2026-06-01
type: bugstatus: needs triage
A
Aster89commented
<!-- Before opening a bug, please take a look at the [troubleshooting guide](https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html). This explains some common issues and will also help you to find the information that the issue template asks for. --> ### Your environment <!-- Everything in this section is optional, but it does help us to debug your issue! --> Which OS do you use? ArchLinux <!-- Windows, MacOS, Ubuntu, ArchLinux, etc... --> Which version of GHC do you use and how did you install it? 9.14.1 via GHCup <!-- 9.0.2 from stack/ghcup, etc. --> How is your project built (alternative: link to the project)? It's HLS's origin/master at 2a304354b Which LSP client (editor/plugin) do you use? Terminal Vim + YCM <!-- Neovim+LanguageClient-neovim, emacs+lsp-mode, VS Codium+vscode-haskell, etc... --> Which version of HLS do you use and how did you install it? 2.14.0.0 via GHCup <!-- 1.7.0.1 from ghcup, etc. --> Have you configured HLS in any way (especially: a `hie.yaml` file)? Nope ### Steps to reproduce <!-- Tell us how to reproduce this issue. --> ```bash git clone https://github.com/haskell/haskell-language-server.git cd haskell-language-server/ haskell-language-server-wrapper-2.14.0.0 plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs ``` ### Expected behaviour I suppose a clean output. Maybe after some long building? But surely not an error. ### Actual behaviour <!-- Tell us what happens instead. --> The output ends with an error ```none No 'hie.yaml' found. Try to discover the project type! Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper-2.14.0.0) Version 2.14.0.0 x86_64 ghc-9.10.3 Current directory: /home/enrico/deleteme/haskell-language-server Operating system: linux Arguments: ["plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs","--cwd","/home/enrico/deleteme/haskell-language-server"] Cradle directory: /home/enrico/deleteme/haskell-language-server Cradle type: Cabal Tool versions found on the $PATH cabal: 3.16.1.0 stack: Not found ghc: 9.14.1 Consulting the cradle to get project GHC version... 2026-06-01T19:53:07.070001Z | Debug | cabal --numeric-version 2026-06-01T19:53:07.324993Z | Debug | cabal --builddir=/home/enrico/.cache/hie-bios/dist-haskell-language-server-5da547c9746bebf0238f0b852f2b5ad4 path --output-format=json 2026-06-01T19:53:07.365130Z | Debug | /home/enrico/.ghcup/bin/ghc --numeric-version Project GHC version: 9.14.1 haskell-language-server exe candidates: ["haskell-language-server-9.14.1","haskell-language-server"] Launching haskell-language-server exe at:/home/enrico/.ghcup/bin/haskell-language-server-9.14.1 2026-06-01T19:53:07.411397Z | Debug | cabal --builddir=/home/enrico/.cache/hie-bios/dist-haskell-language-server-5da547c9746bebf0238f0b852f2b5ad4 path --output-format=json 2026-06-01T19:53:07.559500Z | Debug | /home/enrico/.ghcup/bin/ghc -v0 -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath) 2026-06-01T19:53:07.605061Z | Debug | cabal --builddir=/home/enrico/.cache/hie-bios/dist-haskell-language-server-5da547c9746bebf0238f0b852f2b5ad4 path --output-format=json 1 2026-06-01T19:53:07.647655Z | Debug | /home/enrico/.ghcup/bin/ghc --print-libdir 2026-06-01T19:53:09.334186Z | Info | haskell-language-server version: 2.14.0.0 (GHC: 9.14.1) (PATH: /home/enrico/.ghcup/hls/2.14.0.0/lib/haskell-language-server-2.14.0.0/bin/haskell-language-server-9.14.1) 2026-06-01T19:53:09.335395Z | Info | Directory: /home/enrico/deleteme/haskell-language-server 2026-06-01T19:53:09.335773Z | Info | Logging heap statistics every 60.00s ghcide setup tester in /home/enrico/deleteme/haskell-language-server. Report bugs at https://github.com/haskell/haskell-language-server/issues Step 1/4: Finding files to test in /home/enrico/deleteme/haskell-language-server 2026-06-01T19:53:09.401149Z | Info | Using git to list file, relying on .gitignore Found 1 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 2026-06-01T19:53:09.404368Z | Info | Cradle path: plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs 2026-06-01T19:53:09.404655Z | Warning | No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.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. 2026-06-01T19:53:09.406453Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache) 2026-06-01T19:53:09.530397Z | Info | Load cabal cradle using single file 2026-06-01T19:53:09.531598Z | Info | cabal --builddir=/home/enrico/.cache/hie-bios/dist-haskell-language-server-5da547c9746bebf0238f0b852f2b5ad4 v2-repl --keep-temp-files --with-repl /home/enrico/.cache/hie-bios/repl-wrapper-fae20739a232ed1b9dcdf40eca9cf71e /home/enrico/deleteme/haskell-language-server/plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs Environment Variables HIE_BIOS_OUTPUT: /tmp/HIE_BIOS_OUTPUT468575-0 2026-06-01T19:53:16.527303Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File: /home/enrico/deleteme/haskell-language-server/plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs Hidden: no Range: 1:1-2:1 Source: cradle Severity: DiagnosticSeverity_Error Code: <none> Message: Failed to run cabal '--builddir=/home/enrico/.cache/hie-bios/dist-haskell-language-server-5da547c9746bebf0238f0b852f2b5ad4' v2-repl --keep-temp-files --with-repl /home/enrico/.cache/hie-bios/repl-wrapper-fae20739a232ed1b9dcdf40eca9cf71e /home/enrico/deleteme/haskell-language-server/plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs in directory "/home/enrico/deleteme/haskell-language-server". Consult the logs for full command and error. Failed command: cabal '--builddir=/home/enrico/.cache/hie-bios/dist-haskell-language-server-5da547c9746bebf0238f0b852f2b5ad4' v2-repl --keep-temp-files --with-repl /home/enrico/.cache/hie-bios/repl-wrapper-fae20739a232ed1b9dcdf40eca9cf71e /home/enrico/deleteme/haskell-language-server/plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs Resolving dependencies... Error: [Cabal-7076] Cannot open a repl for the library 'hls-hlint-plugin' because it is marked as 'buildable: False' within the 'haskell-language-server.cabal' file (at least for the current configuration). If you believe it should be buildable then check the .cabal file to see if the buildable property is conditional on flags. Alternatively you may simply have to edit the .cabal file to declare it as buildable and fix any resulting build problems. Process Environment: Files that failed: * /home/enrico/deleteme/haskell-language-server/plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs Completed (0 files worked, 1 file failed) ``` ### Debug information <!-- Include any useful debug information, such as relevant log snippets. -->
关闭于 2026-06-02 3 条评论