Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created October 24, 2022 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitaibu/b31fa92fa905b6d0ac6ec5d514f402f4 to your computer and use it in GitHub Desktop.
Save amitaibu/b31fa92fa905b6d0ac6ec5d514f402f4 to your computer and use it in GitHub Desktop.
curl --silent https://raw.githubusercontent.com/digitallyinduced/ihp/master/Troubleshoot/ihp-troubleshoot | python3
Checking that the current directory is an IHP project:
+ Found Main.hs
+ Found start script
+ Nix installed
Checking direnv:
+ Found .envrc
+ direnv loads .envrc
+ direnv allows .envrc
- ghci is not loaded from /nix/store/... Is direnv hooked into your shell?
Checking .ghci:
+ Found .ghci
+ .ghci permissions are ok
Checking IHP:
+ Symlink build/ihp-lib exists
+ Symlink build/ihp-lib target exists
+ IHP used from nix
Checking Cachix:
+ Cachix exists
+ digitallyinduced.cachix.org configured
+ No legacy cachix key found
Checking IHP files:
- The file `Makefile` was edited manually.
Try reverting your changes to https://github.com/digitallyinduced/ihp-boilerplate/blob/master/Makefile to see whether that affects the issue
- The file `default.nix` was edited manually.
Try reverting your changes to https://github.com/digitallyinduced/ihp-boilerplate/blob/master/default.nix to see whether that affects the issue
- The file `start` was edited manually.
Try reverting your changes to https://github.com/digitallyinduced/ihp-boilerplate/blob/master/start to see whether that affects the issue
Debugging Details:
GHCI Output:
GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help
build/ihp-lib Target:
/nix/store/6xykp9hr3qcyal9s2sfpizbn9pyrdhdj-ghc-9.2.4-with-packages/bin/../lib/IHP
Direnv Output:
direnv exec path /nix/store/j0ih41ykaq2xgk41cgxyichmkq6g0nhq-direnv-2.21.3/bin/direnv
DIRENV_CONFIG /home/amitaibu/.config/direnv
bash_path /nix/store/g9dkn6v4zz0wa71r5c2clsdw0ar53nxp-bash-4.4-p23/bin/bash
disable_stdin false
warn_timeout 5s
whitelist.prefix []
whitelist.exact map[]
Loaded RC path /home/amitaibu/Sites/Haskell/ihp/ihp-simple-seat-reservation/.envrc
Loaded watch: ".envrc" - 2022-10-19T13:02:41+03:00
Loaded watch: "../../../../.local/share/direnv/allow/fbbb2746993a803fa0a901748ecdd61e03230ca4bf8a00f1c411307c5c05c5c3" - 2022-10-24T13:17:26+03:00
Loaded RC allowed false
Loaded RC allowPath
Found RC path /home/amitaibu/Sites/Haskell/ihp/ihp-simple-seat-reservation/.envrc
Found watch: ".envrc" - 2022-10-19T13:02:41+03:00
Found watch: "../../../../.local/share/direnv/allow/fbbb2746993a803fa0a901748ecdd61e03230ca4bf8a00f1c411307c5c05c5c3" - 2022-10-24T13:17:26+03:00
Found RC allowed true
Found RC allowPath /home/amitaibu/.local/share/direnv/allow/fbbb2746993a803fa0a901748ecdd61e03230ca4bf8a00f1c411307c5c05c5c3
which direnv Output:
/home/linuxbrew/.linuxbrew/bin/ghci
default.nix:
let
# Execute:
# nix-shell --run 'make build/ihp-lib's
ihp = builtins.fetchGit {
OS:
Linux-5.15.0-52-generic-x86_64-with-glibc2.35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment