Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

genNix task hangs when run on the Sbtix project #39

Open
Gabriella439 opened this issue May 21, 2018 · 4 comments
Open

genNix task hangs when run on the Sbtix project #39

Gabriella439 opened this issue May 21, 2018 · 4 comments

Comments

@Gabriella439
Copy link

I checked out revision d261602 (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
@Gabriella439
Copy link
Author

I take this back, it finally succeeded after quite a while, so I think it's just a matter of it being slow

@Gabriella439
Copy link
Author

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?

@vquintin
Copy link

vquintin commented Jun 6, 2018

I made performance improvements here: #40

BTW, thank you for your blog, I learned many things reading it.

@nightkr
Copy link
Owner

nightkr commented Jun 6, 2018

The project has moved to GitLab: https://gitlab.com/teozkr/Sbtix/merge_requests/39

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants