IHP 1.3 is out now!

Getting error updating IHP to 0.19

rwkhan

I run IHP on a mac with M1 processor so now that they're finally supported I'm getting an error when I try to update using the following command:

Command: nix-shell --run 'make -B .envrc build/ihp-lib'

Error I'm getting error: cycle detected in build of '/nix/store/jqfx8z69709v0mh0qg4ybiahiwzv5zlb-ghcid-0.8.7.drv' in the references of output 'bin' from output 'out'

marc PRO

This is very strange. Do you have a recent nix version installed?

rwkhan
The full error is as follows: >>> error: cycle detected in build of '/nix/store/jqfx8z69709v0mh0qg4ybiahiwzv5zlb-ghcid-0.8.7.drv' in the references of output 'bin' from output 'out' direnv: loading ~/Desktop/code/nftyea/.envrc ./start: line 29: RunDevServer: command not found <<< I just ran "nix upgrade-nix" and it tells me I'm running nix-2.8.0. When I run ihp-new dummy, it loads fine but for my own project it gives the error above + My default.nix files contains the following contents: >>> let ihp = builtins.fetchGit { url = "https://github.com/digitallyinduced/ihp.git"; ref = "refs/tags/v0.19.0"; }; haskellEnv = import "${ihp}/NixSupport/default.nix" { ihp = ihp; haskellDeps = p: with p; [ cabal-install base wai text hlint p.ihp # added by me # mongoDB ]; otherDeps = p: with p; [ # Native dependencies, e.g. imagemagick ghcid nodejs ]; projectPath = ./.; withHoogle = true; # added by me }; in haskellEnv <<< Apologies for the long comment. Just want to give you a lot of the information in case something lets you help me troubleshoot. Thanks for your time
marc PRO

Could you set withHoogle = false temporarly and also remove the mongoDB, and then try to build it again? Maybe on of those settings is causing the error

rwkhan

Thanks for the quick response. Tried that but still same error unfortunately

marc PRO

Ah i overlooked something. Could you try to remove the ghcid dependency?

rwkhan

Nice so IHP loads now! Although when I click to load my app I get the error with the logs below:

{{"Problems found while compiling.

GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help package flags have changed, resetting and loading new packages. Loaded GHCi configuration from .ghci..."}}. And after that it just compiles all 51 items.

Guessing this is because the app might be dependent on the ghcid I removed from the default.nix file?