dhall-lang / dhall-haskell

Maintainable configuration files
https://dhall-lang.org/
BSD 3-Clause "New" or "Revised" License
908 stars 211 forks source link

Can not install dhall-lsp-server #2554

Open flip111 opened 7 months ago

flip111 commented 7 months ago

I just installed ubuntu 23.10 with ghcup and i'm getting this

» cabal install dhall-lsp-server
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: dhall-lsp-server-1.1.3 (user goal)
[__1] next goal: lens (dependency of dhall-lsp-server)
[__1] rejecting: lens-5.2.3 (conflict: dhall-lsp-server => lens>=4.16.1 &&
<5.2)
[__1] skipping: lens-5.2.2, lens-5.2.1, lens-5.2 (has the same characteristics
that caused the previous version to fail: excluded by constraint '>=4.16.1 &&
<5.2' from 'dhall-lsp-server')
[__1] trying: lens-5.1.1
[__2] next goal: template-haskell (dependency of lens)
[__2] rejecting: template-haskell-2.19.0.0/installed-2.19.0.0 (conflict: lens
=> template-haskell>=2.11.1.0 && <2.19)
[__2] skipping: template-haskell-2.21.0.0, template-haskell-2.20.0.0,
template-haskell-2.19.0.0 (has the same characteristics that caused the
previous version to fail: excluded by constraint '>=2.11.1.0 && <2.19' from
'lens')
[__2] rejecting: template-haskell-2.18.0.0, template-haskell-2.17.0.0,
template-haskell-2.16.0.0, template-haskell-2.15.0.0,
template-haskell-2.14.0.0, template-haskell-2.13.0.0,
template-haskell-2.12.0.0, template-haskell-2.11.1.0,
template-haskell-2.11.0.0, template-haskell-2.10.0.0,
template-haskell-2.9.0.0, template-haskell-2.8.0.0, template-haskell-2.7.0.0,
template-haskell-2.6.0.0, template-haskell-2.5.0.0, template-haskell-2.4.0.1,
template-haskell-2.4.0.0, template-haskell-2.3.0.1, template-haskell-2.3.0.0,
template-haskell-2.2.0.0 (constraint from non-upgradeable package requires
installed instance)
[__2] fail (backjumping, conflict set: lens, template-haskell)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: lens, template-haskell,
dhall-lsp-server

Perhaps it is possible to install with stack to avoid version conflicts?

mmhat commented 6 months ago

What version of GHC are you using? The template-haskell-2.19.0.0 in the output indicates that it is the 9.4 branch; Can you confirm that?

Yes, stack should definitely work.

flip111 commented 5 months ago
» cabal install dhall-lsp-server
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: dhall-lsp-server-1.1.3 (user goal)
[__1] next goal: text (dependency of dhall-lsp-server)
[__1] rejecting: text-2.1/installed-1f8a (conflict: dhall-lsp-server =>
text>=1.2.3.0 && <2.1)
[__1] skipping: text-2.1 (has the same characteristics that caused the
previous version to fail: excluded by constraint '>=1.2.3.0 && <2.1' from
'dhall-lsp-server')
[__1] trying: text-2.0.2
[__2] next goal: base (dependency of dhall-lsp-server)
[__2] rejecting: base-4.19.0.0/installed-f417 (conflict: text => ghc-prim>=0.2
&& <0.11, base => ghc-prim==0.11.0/installed-e595)
[__2] rejecting: base-4.19.0.0, base-4.18.2.0, base-4.18.1.0, base-4.18.0.0,
base-4.17.2.1, base-4.17.2.0, base-4.17.1.0, base-4.17.0.0, base-4.16.4.0,
base-4.16.3.0, base-4.16.2.0, base-4.16.1.0, base-4.16.0.0, base-4.15.1.0,
base-4.15.0.0, base-4.14.3.0, base-4.14.2.0, base-4.14.1.0, base-4.14.0.0,
base-4.13.0.0, base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0,
base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
[__2] fail (backjumping, conflict set: base, dhall-lsp-server, text)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: text, dhall-lsp-server, base

GHC 9.8.1 installed (will run from command line with ghc command), but GHC 9.4.8 set as default with ghcup