Skip to content

Haskell-language-server fails in beam/beam-migrate #3432

@amano-kenji

Description

@amano-kenji

Your environment

Which OS do you use?
Gentoo Linux

Which version of GHC do you use and how did you install it?
9.0.2 from gentoo haskell overlay

How is your project built (alternative: link to the project)?
https://github.com/haskell-beam/beam

Which LSP client (editor/plugin) do you use?
nvim-lspconfig

Which version of HLS do you use and how did you install it?
1.8.0.0 from gentoo haskell overlay

Have you configured HLS in any way (especially: a hie.yaml file)?
No

Steps to reproduce

Configure neovim with nvim-lspconfig. Open any haskell source file in beam/beam-migrate.

Expected behaviour

No error

Actual behaviour

Diagnostics:
1. Failed to run ["cabal","v2-repl","beam-migrate:lib:is"] in directory "/path/to/beam". Consult the logs for full command and error.
   Failed command: cabal --builddir=$HOME/.cache/hie-bios/dist-beam-7bdef0ed423c2101efa65becf64eb282 v2-repl --with-compiler $HOME/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg $HOME/.cache/hie-bios/ghc-pkg-4f7979c36ba0ad4f82ac0b5533000db1 beam-migrate:lib:is
   
   cabal: Unknown target 'beam-migrate:lib:is'.
   The package beam-migrate has no library component 'is'.

   Process Environment:
   HIE_BIOS_GHC: /usr/lib64/ghc-9.0.2/bin/ghc
   HIE_BIOS_GHC_ARGS: -B/usr/lib64/ghc-9.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions