Skip to content
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

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

Closed
Friede80 opened this issue Apr 2, 2021 · 0 comments · Fixed by #1665
Closed

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

Friede80 opened this issue Apr 2, 2021 · 0 comments · Fixed by #1665
Labels
build tool: cabal CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@Friede80
Copy link

Friede80 commented Apr 2, 2021

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.
@berberman berberman added CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Apr 2, 2021
@mergify mergify bot closed this as completed in #1665 Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build tool: cabal 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