Skip to content

Conversation

iMichka
Copy link
Contributor

@iMichka iMichka commented Oct 5, 2023

GHC 8.10 was dropped in the last release. This constraint is not needed anymore.

Fixes (with ghc 9.6.2):

==> cabal v2-install --with-compiler=/opt/homebrew/opt/ghc/bin/ghc --flags=-dynamic --jobs=4 --max-backjumps=100000 --install-method=copy --installdir=/opt/homebrew/Cellar/haskell-language-server/2.3.0.0/bin
Error: cabal: Could not resolve dependencies:
[__0] trying: ekg-json-0.1.0.7 (user goal)
[__1] trying: base-4.18.0.0/installed-4.18.0.0 (dependency of ekg-json)
[__2] trying: ghcide-2.3.0.0 (user goal)
[__3] trying: stm-containers-1.2.0.2 (dependency of ghcide)
[__4] next goal: stm-hamt (dependency of stm-containers)
[__4] rejecting: stm-hamt-1.2.0.11, stm-hamt-1.2.0.10 (constraint from project
config
/private/tmp/haskell-language-server-20231005-27723-12xdk3f/haskell-language-server-2.3.0.0/cabal.project
requires <1.2.0.10)
[__4] trying: stm-hamt-1.2.0.9
[__5] trying: primitive-0.8.0.0 (dependency of stm-hamt)
[__6] trying: filepath-1.4.100.1/installed-1.4.100.1 (dependency of ghcide)
[__7] next goal: exceptions (dependency of ghcide)
[__7] rejecting: exceptions-0.10.7/installed-0.10.7 (conflict: stm-hamt =>
transformers>=0.5 && <0.6, exceptions =>
transformers==0.6.1.0/installed-0.6.1.0)
[__7] rejecting: exceptions-0.10.7, exceptions-0.10.5, exceptions-0.10.4,
exceptions-0.10.3, exceptions-0.10.2, exceptions-0.10.1, exceptions-0.10.0,
exceptions-0.8.3, exceptions-0.8.2.1, exceptions-0.8.1, exceptions-0.8.0.2,
exceptions-0.8.0.1, exceptions-0.8, exceptions-0.7, exceptions-0.6.1,
exceptions-0.6, exceptions-0.5, exceptions-0.4, exceptions-0.3.3.1,
exceptions-0.3.3, exceptions-0.3.2, exceptions-0.3.1, exceptions-0.3,
exceptions-0.2, exceptions-0.1.1, exceptions-0.1.0.1, exceptions-0.1,
exceptions-0.10.6, exceptions-0.9.0 (conflict: filepath =>
exceptions==0.10.7/installed-0.10.7)
[__7] fail (backjumping, conflict set: exceptions, filepath, ghcide, stm-hamt)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: filepath, exceptions, ghcide,
primitive, stm-containers, stm-hamt, base, ekg-json
Try running with --minimize-conflict-set to improve the error message.

See Homebrew/homebrew-core#141617

GHC 8.10 was dropped in the last release. This constraint is not needed anymore.

Fixes (with ghc 9.6.2):

==> cabal v2-install --with-compiler=/opt/homebrew/opt/ghc/bin/ghc --flags=-dynamic --jobs=4 --max-backjumps=100000 --install-method=copy --installdir=/opt/homebrew/Cellar/haskell-language-server/2.3.0.0/bin
  Error: cabal: Could not resolve dependencies:
  [__0] trying: ekg-json-0.1.0.7 (user goal)
  [__1] trying: base-4.18.0.0/installed-4.18.0.0 (dependency of ekg-json)
  [__2] trying: ghcide-2.3.0.0 (user goal)
  [__3] trying: stm-containers-1.2.0.2 (dependency of ghcide)
  [__4] next goal: stm-hamt (dependency of stm-containers)
  [__4] rejecting: stm-hamt-1.2.0.11, stm-hamt-1.2.0.10 (constraint from project
  config
  /private/tmp/haskell-language-server-20231005-27723-12xdk3f/haskell-language-server-2.3.0.0/cabal.project
  requires <1.2.0.10)
  [__4] trying: stm-hamt-1.2.0.9
  [__5] trying: primitive-0.8.0.0 (dependency of stm-hamt)
  [__6] trying: filepath-1.4.100.1/installed-1.4.100.1 (dependency of ghcide)
  [__7] next goal: exceptions (dependency of ghcide)
  [__7] rejecting: exceptions-0.10.7/installed-0.10.7 (conflict: stm-hamt =>
  transformers>=0.5 && <0.6, exceptions =>
  transformers==0.6.1.0/installed-0.6.1.0)
  [__7] rejecting: exceptions-0.10.7, exceptions-0.10.5, exceptions-0.10.4,
  exceptions-0.10.3, exceptions-0.10.2, exceptions-0.10.1, exceptions-0.10.0,
  exceptions-0.8.3, exceptions-0.8.2.1, exceptions-0.8.1, exceptions-0.8.0.2,
  exceptions-0.8.0.1, exceptions-0.8, exceptions-0.7, exceptions-0.6.1,
  exceptions-0.6, exceptions-0.5, exceptions-0.4, exceptions-0.3.3.1,
  exceptions-0.3.3, exceptions-0.3.2, exceptions-0.3.1, exceptions-0.3,
  exceptions-0.2, exceptions-0.1.1, exceptions-0.1.0.1, exceptions-0.1,
  exceptions-0.10.6, exceptions-0.9.0 (conflict: filepath =>
  exceptions==0.10.7/installed-0.10.7)
  [__7] fail (backjumping, conflict set: exceptions, filepath, ghcide, stm-hamt)
  After searching the rest of the dependency tree exhaustively, these were the
  goals I've had most trouble fulfilling: filepath, exceptions, ghcide,
  primitive, stm-containers, stm-hamt, base, ekg-json
  Try running with --minimize-conflict-set to improve the error message.

See Homebrew/homebrew-core#141617
@iMichka iMichka mentioned this pull request Oct 5, 2023
5 tasks
Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@fendor
Copy link
Collaborator

fendor commented Oct 5, 2023

FYI, the failing test seems unrelated and doesn't require your attention.
We are currently working on fixing flaky testcases.

@michaelpj michaelpj merged commit b9e78cf into haskell:master Oct 6, 2023
@iMichka iMichka deleted the fix branch October 6, 2023 21:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants