`genNix` task hangs when run on the `Sbtix` project
I checked out revision d261602a18ef7023333f5d18b56e452239170eec (master at the time of this wring) of this project and ran:
$ cd Sbtix
$ nix-env --install --file .
...
building path(s) ‘/nix/store/y0p8pfv543a0skn9fa914yx1ayic2lba-sbtix-0.2’
installing
building path(s) ‘/nix/store/mgwkgkhzpk7a6gj299k8q6ygcrldisn3-user-environment’
created 80 symlinks in user environment
$ readlink $(type -p sbtix)
/nix/store/y0p8pfv543a0skn9fa914yx1ayic2lba-sbtix-0.2/bin/sbtix
$ cd plugin
$ sbtix
Deleting any cached sbtix plugins in '~/.ivy'. So the most recent version from nix is used.
Updating /Users/gabriel/.sbtix/plugins/sbtix_plugin.sbt symlink
[info] Loading global plugins from /Users/gabriel/.sbtix/plugins
[info] Updating {file:/Users/gabriel/.sbtix/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Loading project definition from /Users/gabriel/proj/Sbtix/plugin/project
[info] Set current project to sbtix (in build file:/Users/gabriel/proj/Sbtix/plugin/)
> genNix
... and it hangs forever upon running the genNix task. I originally ran into this in the context of another Scala project, but was able to reproduce the same problem on the Sbtix project
Other information:
$ nix-env --version
nix-env (Nix) 1.11.16
$ uname -a
Darwin Gabriels-MacBook-Pro.local 17.5.0 Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64
I take this back, it finally succeeded after quite a while, so I think it's just a matter of it being slow
To be precise, it took about 6 minutes when I timed a second run:
$ time sbtix-gen
...
real 6m8.719s
user 1m36.290s
sys 4m33.582s
Is it supposed to take that long?
I made performance improvements here: #40
BTW, thank you for your blog, I learned many things reading it.
The project has moved to GitLab: https://gitlab.com/teozkr/Sbtix/merge_requests/39