Skip to content

hls doesn’t build on stock Debian bullseye due to un-mentioned extra library version dependency #1993

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

Closed
PhilArmstrong opened this issue Jul 1, 2021 · 1 comment · Fixed by #2007
Labels
build tool: cabal can-workaround CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@PhilArmstrong
Copy link

PhilArmstrong commented Jul 1, 2021

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

Tool versions found on the $PATH
cabal:		3.4.0.0
stack:		Not found
ghc:		8.8.4

Which OS do you use:
Debian bullseye

Steps to reproduce

cabal-hls-install hls-8.8.4

Actual behaviour

src/Wingman/Context.hs:7:1: error:
    Could not find module ‘Data.Foldable.Extra’
    Perhaps you meant
      Data.Typeable.Extra (from extra-1.7.4)
      Data.Foldable.Compat (needs flag -package-key base-compat-0.11.1)
      Data.Foldable.Compat (needs flag -package-key base-compat-batteries-0.11.1)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
7 | import           Data.Foldable.Extra (allM)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build hls-tactics-plugin-1.2.0.0 (which is required by
exe:haskell-language-server from haskell-language-server-1.2.0.0). See the
build log above for details.

Standard version of the extra library on Debian Bullseye is 1.7.4

At some point, extra gained Data.Foldable.Extra & the allM function. Installing 1.7.9 in preference to the system 1.7.4 fixes the problem. I guess a versioned dependency needs adding to the cabal file.

@Ailrun Ailrun added CI Continuous integration build tool: cabal can-workaround type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. type: setup labels Jul 1, 2021
@ndmitchell
Copy link
Collaborator

Probably needs a minimum of 1.7.8 since that was when that module got added. CC @isovector as it seems wingman needs the bounds bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build tool: cabal can-workaround CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants