tart icon indicating copy to clipboard operation
tart copied to clipboard

Issues building the app

Open AeonFr opened this issue 5 months ago • 9 comments

I had issues building the app. I think this might work for quick terminal UI prototyping so I wanted to try it.

First of all, a disclaimer. I'm very new to haskell. This is the first time I build a haskell program, I have no idea what cabal is or how it works. I'm very sorry if I'm missing something obvious

So I ran these commands:

brew install ghc
brew install cabal-install
git clone https://github.com/jtdaugherty/tart.git
cd tart
cabal new-build

I get an error in the last command:

Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: tart-0.3 (user goal)
[__1] next goal: vty (dependency of tart)
[__1] rejecting: vty-6.2 (conflict: tart => vty>=5.17.1 && <6.0)
[__1] skipping: vty-6.1, vty-6.0 (has the same characteristics that caused the
previous version to fail: excluded by constraint '>=5.17.1 && <6.0' from
'tart')
[__1] trying: vty-5.39
[__2] trying: vector-0.13.1.0 (dependency of vty)
[__3] trying: primitive-0.9.0.0 (dependency of vector)
[__4] trying: template-haskell-2.21.0.0/installed-inplace (dependency of
primitive)
[__5] next goal: pretty (dependency of template-haskell)
[__5] rejecting: pretty-1.1.3.6/installed-inplace (conflict: vty =>
deepseq>=1.1 && <1.5, pretty => deepseq==1.5.0.0/installed-inplace)
[__5] rejecting: pretty-1.1.3.6, pretty-1.1.3.5, pretty-1.1.3.4,
pretty-1.1.3.3, pretty-1.1.3.2, pretty-1.1.3.1, pretty-1.1.2.1,
pretty-1.1.2.0, pretty-1.1.1.3, pretty-1.1.1.2, pretty-1.1.1.1,
pretty-1.1.1.0, pretty-1.1.0.0, pretty-1.0.1.2, pretty-1.0.1.1,
pretty-1.0.1.0, pretty-1.0.0.0 (conflict: template-haskell =>
pretty==1.1.3.6/installed-inplace)
[__5] fail (backjumping, conflict set: pretty, template-haskell, vty)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, primitive, vty,
template-haskell, pretty, vector, tart
Try running with --minimize-conflict-set to improve the error message.

I tried some ChatGPT suggestions (like using the --allow-newer or --minimize-conflict-set flags), but eventually still run into other kinds of issues.

I'm running this in a mac (Intel). Here is some data that might be useful:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.8.1
$ cabal --version
cabal-install version 3.10.2.1
compiled using version 3.10.2.1 of the Cabal library

Could you provide some guidance on how to install the dependencies when getting this error? Alternatively, is it possible to have a pre-built version hosted somewhere I could download and run? (No idea if Haskell programs can be compiled and shared like that, but that would be ideal).

Thanks ❤️

pd/ sorry for my bad English, I'm not native

AeonFr avatar Feb 03 '24 10:02 AeonFr