Fork me on GitHub
#leiningen
<
2018-01-08
>
mbjarland14:01:15

getting REPL server launch timed out from lein repl invocations on a ubuntu workstation. This just recently started happening (as in I got back from Christmas vacations and it worked before). The timeout takes more or less exactly a minute

mbjarland14:01:24

any ideas much appreciated

gfredericks14:01:29

what does lein repl :headless do?

mbjarland14:01:40

$> export DEBUG=true
$> lein repl :headless
Leiningen's classpath: /home/mbjarland/.lein/self-installs/leiningen-2.8.1-standalone.jar
Applying task repl to [:headless]
nREPL server started on port 33111 on host 127.0.0.1 - 
<hangs>

gfredericks14:01:57

and then lein repl connect from another shell while that's running?

gfredericks14:01:14

(the nREPL server started... line is what I was looking for, and the "hanging" there is expected)

mbjarland14:01:32

ah, it just starts a server

mbjarland14:01:03

success:

$> lein repl :connect 33111
Connecting to nREPL at 127.0.0.1:33111
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.7.0_80-b15
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> 

mbjarland14:01:26

hmm...so what then is borked with just executing a lein repl?

mbjarland15:01:17

where does lein pull the java version...the 1.7.0 in the above is a tad unexpected. Both JAVA_HOME and java -version point at a 1.8 jvm

mbjarland15:01:23

and apologies for the lack of fu on lein repl :headless, didn't know you could do that

mbjarland15:01:43

ok after reboot the issue is magically gone. No idea what the deal was. Thanks for the help in troubleshooting!

jjfine16:01:54

is there a way to change a project's dependency's version via the command line? i've got an internal shared library and a few projects that use that library. I'd like to run the client projects' tests on our CI server every time we release the shared library so I know I've got some tests to fix sooner rather than later.

gfredericks23:01:13

something like lein update-in :dependencies conj [...] might work

gfredericks23:01:42

alternately, lein install the library to a fixed snapshot version and have a separate profile in the other projects that reference the snapshot