Ah, thanks for the suggestion! Here’s the output:
Emily@Peach ~/W/P/ihp-alternative (main)> 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
+ Installed Nix version 2.21.2 is 2.4 or later
Checking direnv:
+ Found .envrc
+ direnv loads .envrc
- direnv denied .envrc, run `direnv allow` to allow .envrc
+ ghci is loaded from nix store
Checking .ghci:
+ Found .ghci
+ .ghci permissions are ok
Checking IHP:
- Symlink build/ihp-lib is missing. Try 'make build/ihp-lib' to fix this
- Symlink build/ihp-lib target directory does not exist. Try `nix-shell --run "make -B build/ihp-lib"` to fix this
+ 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
Debugging Details:
GHCI Output:
GHCi, version 9.8.2: https://www.haskell.org/ghc/ :? for help
package flags have changed, resetting and loading new packages...
package flags have changed, resetting and loading new packages...
[ 1 of 30] Compiling Application.Helper.Controller ( Application/Helper/Controller.hs, interpreted )
[ 2 of 30] Compiling Application.Helper.View ( Application/Helper/View.hs, interpreted )
[ 3 of 30] Compiling Config ( Config/Config.hs, interpreted )
[ 4 of 30] Compiling Generated.Enums ( build/Generated/Enums.hs, interpreted )
[ 5 of 30] Compiling Generated.ActualTypes ( build/Generated/ActualTypes.hs, interpreted )
[ 6 of 30] Compiling Generated.Event ( build/Generated/Event.hs, interpreted )
[ 7 of 30] Compiling Generated.Types ( build/Generated/Types.hs, interpreted )
[ 8 of 30] Compiling Admin.Types ( Admin/Types.hs, interpreted )
[ 9 of 30] Compiling Admin.Routes ( Admin/Routes.hs, interpreted )
[10 of 30] Compiling Admin.View.Layout ( Admin/View/Layout.hs, interpreted )
[11 of 30] Compiling Admin.View.Prelude ( Admin/View/Prelude.hs, interpreted )
[12 of 30] Compiling Admin.View.Static.Welcome ( Admin/View/Static/Welcome.hs, interpreted )
[13 of 30] Compiling Admin.Controller.Prelude ( Admin/Controller/Prelude.hs, interpreted )
[14 of 30] Compiling Admin.Controller.Static ( Admin/Controller/Static.hs, interpreted )
[15 of 30] Compiling Admin.FrontController ( Admin/FrontController.hs, interpreted )
[16 of 30] Compiling Web.Types ( Web/Types.hs, interpreted )
[17 of 30] Compiling Web.Routes ( Web/Routes.hs, interpreted )
[18 of 30] Compiling Web.Controller.Prelude ( Web/Controller/Prelude.hs, interpreted )
[19 of 30] Compiling Web.View.Layout ( Web/View/Layout.hs, interpreted )
[20 of 30] Compiling Web.View.Prelude ( Web/View/Prelude.hs, interpreted )
[21 of 30] Compiling Web.View.Events.Show ( Web/View/Events/Show.hs, interpreted )
[22 of 30] Compiling Web.View.Events.New ( Web/View/Events/New.hs, interpreted )
[23 of 30] Compiling Web.View.Events.Index ( Web/View/Events/Index.hs, interpreted )
[24 of 30] Compiling Web.View.Events.Edit ( Web/View/Events/Edit.hs, interpreted )
[26 of 30] Compiling Web.View.Static.Welcome ( Web/View/Static/Welcome.hs, interpreted )
[27 of 30] Compiling Web.Controller.Static ( Web/Controller/Static.hs, interpreted )
Failed, 25 modules loaded.
Loaded GHCi configuration from /Users/Emily/Work/Pannal Village Hall (no git)/ihp-alternative/.ghci
IHP> ok
IHP> Leaving GHCi.
build/ihp-lib Target:
None
Direnv Output:
direnv exec path /Users/Emily/.nix-profile/bin/direnv
DIRENV_CONFIG /Users/Emily/.config/direnv
bash_path /nix/store/386xmpmnix11qhnn2l0f7lvv0dc70w8h-bash-5.2p26/bin/bash
disable_stdin false
warn_timeout 5s
whitelist.prefix []
whitelist.exact map[]
Loaded RC path /Users/Emily/Work/Pannal Village Hall (no git)/ihp-alternative/.envrc
Loaded watch: ".envrc" - 2024-06-15T14:42:51+01:00
Loaded watch: "../../../.local/share/direnv/allow/5734ee1efeb47251f6f407fbd25c1720c7f5d5c43cf6cf12844a416403143c31" - 2024-06-15T16:01:42+01:00
Loaded watch: "../../../.local/share/direnv/deny/00a4e16ffb4f24d4580bc3036b67ded88f550992f7845741c60efca9ed9c4069" - 1970-01-01T01:00:00+01:00
Loaded watch: "../../../.direnvrc" - 1970-01-01T01:00:00+01:00
Loaded watch: "../../../.config/direnv/direnvrc" - 1970-01-01T01:00:00+01:00
Loaded watch: "flake.nix" - 2024-06-16T11:49:07+01:00
Loaded watch: "flake.lock" - 2024-06-15T14:42:51+01:00
Loaded watch: "devshell.toml" - 1970-01-01T01:00:00+01:00
Loaded RC allowed 0
Loaded RC allowPath /Users/Emily/.local/share/direnv/allow/5734ee1efeb47251f6f407fbd25c1720c7f5d5c43cf6cf12844a416403143c31
Found RC path /Users/Emily/Work/Pannal Village Hall (no git)/ihp-alternative/.envrc
Found watch: ".envrc" - 2024-06-15T14:42:51+01:00
Found watch: "../../../.local/share/direnv/allow/5734ee1efeb47251f6f407fbd25c1720c7f5d5c43cf6cf12844a416403143c31" - 2024-06-15T16:01:42+01:00
Found watch: "../../../.local/share/direnv/deny/00a4e16ffb4f24d4580bc3036b67ded88f550992f7845741c60efca9ed9c4069" - 1970-01-01T01:00:00+01:00
Found RC allowed 0
Found RC allowPath /Users/Emily/.local/share/direnv/allow/5734ee1efeb47251f6f407fbd25c1720c7f5d5c43cf6cf12844a416403143c31
which direnv Output:
/nix/store/22wzsqsdcjk6w0ya3cf46hg6x4gx5m5c-ghc-9.8.2-with-packages/bin/ghci
default.nix:
# For backwards compatibility using flake.nix
(import
(
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9.tar.gz";
OS:
macOS-12.7.4-x86_64-i386-64bit
I’m surprised that it says direnv denied .envrc
, when it looks like that’s working? I have run direnv allow
already, and running it again doesn’t change anything.
The Makefile edits were me adding some quotes to fix a couple of the commands to work in directories with spaces in their names:
commit f594137bb4bdaacc50b674c42ebb8a5974377fa3
diff --git a/Makefile b/Makefile
index a8624f1..a503354 100644
--- a/Makefile
+++ b/Makefile
@@ -17,3 +17,7 @@ include ${IHP}/Makefile.dist
psql-fixed: ## Connects to the running postgresql server
@psql -h "$$PWD"/build/db -d app
+
+dumpdb-fixed: dump_db-fixed ## Saves the current database state into the Fixtures.sql
+dump_db-fixed: ## Saves the current database state into the Fixtures.sql
+ pg_dump -a --inserts --column-inserts --disable-triggers -h "$$PWD"/build/db app | sed -e '/^--/d' > Application/Fixtures.sql
commit d4eb017c76056e5e862925d9d24878e6ac46f96d
diff --git a/Makefile b/Makefile
index 96fd66b..a8624f1 100644
--- a/Makefile
+++ b/Makefile
@@ -15,3 +15,5 @@ JS_FILES += ${IHP}/static/vendor/turbolinksMorphdom.js
include ${IHP}/Makefile.dist
+psql-fixed: ## Connects to the running postgresql server
+ @psql -h "$$PWD"/build/db -d app
It was the same before this, so I doubt this has any impact.
I’ll try running that make build/ihp-lib
command and see if that changes anything.