Skip to content

Building from source fails to build hls-eval-plugin #1652

Closed
@Friede80

Description

@Friede80

The package version requirements for Diff are too lax. Building requires >=0.4.0.

Which OS do you use:
Ubuntu 20.04

Steps to reproduce

Clone haskell-language-server master. Run ./cabal-hls-install hls-8.10.4

Expected behaviour

Build should complete successfully.

Actual behaviour

Build fails:

Failed to build hls-eval-plugin-1.0.0.0.
Build log (
/home/parallels/.cabal/logs/ghc-8.10.4/hls-eval-plugin-1.0.0.0-11dbf647e96e17fc298ace5eea655051522c471f829a0a52d82274c254ae5ffb.log
):
Configuring library for hls-eval-plugin-1.0.0.0..
Preprocessing library for hls-eval-plugin-1.0.0.0..
Building library for hls-eval-plugin-1.0.0.0..
[1 of 8] Compiling Ide.Plugin.Eval.Parse.Option ( src/Ide/Plugin/Eval/Parse/Option.hs, dist/build/Ide/Plugin/Eval/Parse/Option.o, dist/build/Ide/Plugin/Eval/Parse/Option.dyn_o )
[2 of 8] Compiling Ide.Plugin.Eval.Types ( src/Ide/Plugin/Eval/Types.hs, dist/build/Ide/Plugin/Eval/Types.o, dist/build/Ide/Plugin/Eval/Types.dyn_o )
[3 of 8] Compiling Ide.Plugin.Eval.Parse.Comments ( src/Ide/Plugin/Eval/Parse/Comments.hs, dist/build/Ide/Plugin/Eval/Parse/Comments.o, dist/build/Ide/Plugin/Eval/Parse/Comments.dyn_o )
[4 of 8] Compiling Ide.Plugin.Eval.Code ( src/Ide/Plugin/Eval/Code.hs, dist/build/Ide/Plugin/Eval/Code.o, dist/build/Ide/Plugin/Eval/Code.dyn_o )

src/Ide/Plugin/Eval/Code.hs:9:56: error:
    Module ‘Data.Algorithm.Diff’ does not export ‘PolyDiff(..)’
  |
9 | import           Data.Algorithm.Diff            (Diff, PolyDiff (..), getDiff)
  |                                                        ^^^^^^^^^^^^^
cabal: Failed to build hls-eval-plugin-1.0.0.0 (which is required by
exe:haskell-language-server from haskell-language-server-1.0.0.0). See the
build log above for details.

Error when running Shake build system:
  at want, called at src/Development/Shake/Internal/Args.hs:83:69 in shake-0.18.5-1e2d5c19198b250e49e59618f65b8507112b579e0eb0fa27f2e56c48ce5495a5:Development.Shake.Internal.Args
* Depends on: hls-8.10.4
  at command, called at src/Cabal.hs:29:13 in hls-install-0.8.0.0-inplace:Cabal
* Raised the exception:
Development.Shake.command, system command failed
Command line: cabal v2-install exe:haskell-language-server exe:haskell-language-server-wrapper -w /nix/store/lx0cx2xf38494pf85kmd6lc7wn8r16ry-ghc-8.10.4-with-packages/bin/ghc-8.10.4 --write-ghc-environment-files=never --installdir /home/parallels/.cabal/bin --max-backjumps=5000 --overwrite-policy=always --project-file=cabal.project -v1
Exit code: 1
Stderr:
Warning: Requested index-state2021-03-29T21:23:14Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-03-29T13:57:59Z).
cabal: Failed to build hls-eval-plugin-1.0.0.0 (which is required by
exe:haskell-language-server from haskell-language-server-1.0.0.0). See the
build log above for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous integrationbuild tool: cabaltype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions