nmattia / snack

Nix-based incremental build tool for Haskell projects
336 stars 25 forks source link

stack overflow using snack on NGLess #143

Open luispedro opened 5 years ago

luispedro commented 5 years ago

I tried snack on a clean checkout of NGLess and it first ran for a while, then it errored. From then on, running snack build runs for about a minute and terminates with

error: stack overflow (possible infinite recursion)

I attach the full log of NIX_SHOW_STATS=1 NIX_COUNT_CALLS=1 snack build: LOG.stderr.txt

Reproducing should be a matter of:

git clone https://github.com/ngless-toolkit/ngless
cd ngless
snack build

(Installed snack with nix-env -iA snack-exe -f https://github.com/nmattia/snack/tarball/master)

nmattia commented 4 years ago

Looks like I missed the notification! There are some Nix-performance related issues with snack, it stresses the evaluator a lot. I looked into it a few times but it's very hairy. Hopefully one day I'll have time to dig into this properly, but I don't use Haskell much these days...