ghcjs / jsaddle

JavaScript interface that works with GHCJS or GHC
116 stars 62 forks source link

How to run tests? `cannot satisfy -package lens-5.1` #126

Closed peterbecich closed 5 months ago

peterbecich commented 2 years ago

How can I correctly run the test suite?

% cabal run jsaddle-warp:test-tool -- .   
Up to date
Testing JSaddle
Checking for phantomjs
1.9.8
Starting phantomjs
test-tool: readCreateProcess: phantomjs "--webdriver=4444" (exit 1): failed
Running Tests
test-tool: <command line>: cannot satisfy -package lens-5.1
    (use -v for more information)
test-tool: thread blocked indefinitely in an MVar operation

I'm using Debian and have installed phantomjs with Nix:

nix-env -iA nixpkgs.phantomjs 

If there is a solution, I will apply it here, too: https://github.com/ghcjs/jsaddle/pull/125

Thanks

augyg commented 1 year ago

@peterbecich have you tried running the derivation in nix/ then trying the cabal run command?

peterbecich commented 5 months ago

Thanks!