You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Java / Boot (Clojure build tool) does not work #277
Per #49 I installed JDK 7u79 manually and java -version works.
After downloading the boot shell script (which is a Java program with a shell prelude) and unning boot -h, it hangs trying to download the base version 2.5.2. strace -f on the main process yields:
strace: Test for PTRACE_O_TRACESYSGOOD failed, giving up using this feature.
Process 479 attached with 3 threads
[pid 484] gettimeofday( <unfinished ...>
[pid 485] sched_yield( <unfinished ...>
[pid 484] <... gettimeofday resumed> {1461732294, 712294}, NULL) = 0
[pid 485] <... sched_yield resumed> ) = 0
[pid 484] rt_sigreturn( <unfinished ...>
[pid 485] sched_yield( <unfinished ...>
[pid 484] <... rt_sigreturn resumed> ) = 4209649592
[pid 485] <... sched_yield resumed> ) = 0
[pid 484] --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0xc} ---
strace: ptrace(PTRACE_SYSCALL,pid:484,sig:11): Invalid argument
Process 479 detached
Process 484 detached
Process 485 detached
The gettimeofday call is not always present if you run the strace multiple times.
FWIW, Leiningen, Clojure's other build tool, gets a little further. It's able to download itself so you can run lein version but lein repl hangs, just like Boot does. If you run lein inside a project with dependencies that need to be fetched, the downloads all fail (both from Maven Central and Clojars) with SocketException errors. Happy to do further debugging and provide any extra details that will help debug these Java problems.
We're definitely getting a bit further now -- Boot seems to be able to download dependencies for projects but then fails with:
boot repl
sun.nio.fs.UnixException: Bad file descriptor
at sun.nio.fs.UnixNativeDispatcher.read(Native Method)
at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:315)
at java.lang.Thread.run(Thread.java:745)
The same thing happens for SBT (Scala Build Tool) although I'm using Java 8
sun.nio.fs.UnixException: Bad file descriptor
at sun.nio.fs.UnixNativeDispatcher.read(Native Method)
at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:318)
at java.lang.Thread.run(Thread.java:745)
Based on my latest tests on build 14946, with both OpenJDK 7 and Oracle Java 8, I think this issue can be closed since everything I've tried with Boot now works as expected. I'm able to run all sorts of very complex Boot tasks, compiling and testing Clojure code. I haven't fully exercised all our code base (some 40Kloc of Clojure) yet but that's mostly because I'll need Redis, MongoDB, MySQL and several other things installed to run everything.
I'm happy to close my issue as "fixed" now. Thank you. #911 is a different issue (that also affects some of our actual code, as well as some of our other tooling).
Sean Corfield (@seancorfield)Cal (@calvinlfer) Sorry for commenting on an old thread, but while I'm able to build most Leiningen projects without any issue (and in general work with Clojure code), I'm not able to run figwheel. The problem seems to be the file watcher, as I get the same Bad file descriptor language you both get. Were you able to resolve that issue specifically? Or should I open up a separate issue?
Activity
seancorfield commentedon Apr 27, 2016
FWIW, Leiningen, Clojure's other build tool, gets a little further. It's able to download itself so you can run
lein versionbutlein replhangs, just like Boot does. If you runleininside a project with dependencies that need to be fetched, the downloads all fail (both from Maven Central and Clojars) with SocketException errors. Happy to do further debugging and provide any extra details that will help debug these Java problems.seancorfield commentedon May 27, 2016
With Build 14352, we get a little further, here's the
strace -ffromlein replnow:With build 14352, we get a little further.
lein runworks.lein replstill hangs. Here's thestrace -ffrom that:seancorfield commentedon May 27, 2016
Boot now gets as far as completing the download of its core JAR but then hangs. Here's the
strace -ffor that:(all other processes show "detached").
leftofnull commentedon Aug 13, 2016
Any traction on this? It would be great to have
lein replworking, as well as boot. So far, I've had the same experiences as described above.seancorfield commentedon Aug 23, 2016
We're definitely getting a bit further now -- Boot seems to be able to download dependencies for projects but then fails with:
boot repl
sun.nio.fs.UnixException: Bad file descriptor
at sun.nio.fs.UnixNativeDispatcher.read(Native Method)
at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:315)
at java.lang.Thread.run(Thread.java:745)
calvinlfer commentedon Oct 10, 2016
The same thing happens for SBT (Scala Build Tool) although I'm using Java 8
seancorfield commentedon Oct 19, 2016
Based on my latest tests on build 14946, with both OpenJDK 7 and Oracle Java 8, I think this issue can be closed since everything I've tried with Boot now works as expected. I'm able to run all sorts of very complex Boot tasks, compiling and testing Clojure code. I haven't fully exercised all our code base (some 40Kloc of Clojure) yet but that's mostly because I'll need Redis, MongoDB, MySQL and several other things installed to run everything.
seancorfield commentedon Oct 21, 2016
I'm happy to close my issue as "fixed" now. Thank you. #911 is a different issue (that also affects some of our actual code, as well as some of our other tooling).
metasoarous commentedon Nov 29, 2016
Sean Corfield (@seancorfield) Cal (@calvinlfer) Sorry for commenting on an old thread, but while I'm able to build most Leiningen projects without any issue (and in general work with Clojure code), I'm not able to run figwheel. The problem seems to be the file watcher, as I get the same
Bad file descriptorlanguage you both get. Were you able to resolve that issue specifically? Or should I open up a separate issue?calvinlfer commentedon Nov 29, 2016
Christopher Small (@metasoarous) I think that looks like it should be filed as a separate issue