Fork me on GitHub
#leiningen
<
2019-11-06
>
dpsutton04:11:59

seeing some strange behavior with lein trampoline. It seems that it downloads 3 versions of nrepl and then fails

[dan@fedora queue]$ rm -rf ~/.m2/repository/nrepl/
[dan@fedora queue]$ lein --version
Leiningen 2.9.1 on Java 1.8.0_232 OpenJDK 64-Bit Server VM
[dan@fedora queue]$ lein trampoline repl
Retrieving nrepl/nrepl/0.6.0/nrepl-0.6.0.pom from clojars
Retrieving nrepl/nrepl/0.4.5/nrepl-0.4.5.pom from clojars
Retrieving nrepl/bencode/1.0.0/bencode-1.0.0.pom from clojars
Retrieving nrepl/drawbridge/0.1.0/drawbridge-0.1.0.pom from clojars
Retrieving nrepl/nrepl/0.4.0/nrepl-0.4.0.pom from clojars
Retrieving nrepl/nrepl/0.6.0/nrepl-0.6.0.jar from clojars
Retrieving nrepl/drawbridge/0.1.0/drawbridge-0.1.0.jar from clojars
ClassCastException java.lang.String cannot be cast to java.lang.Number
	nrepl.server/start-server/addr--1161 (server.clj:120)
	nrepl.server/start-server (server.clj:128)
	nrepl.server/start-server (server.clj:96)

dpsutton04:11:32

oh i read that too quickly. it gets 4 nrepl poms and a single nrepl jar

caleb.macdonaldblack08:11:26

I have some tests failing in a docker container running in CircleCI. It fails with "Tests failed." and nothing else except the logs from my code. I don't get any test summary or anything. My tests are working locally and also work when I run "lein test" after sshing into the circleci container. Any idea why I don't have a test summary? There is nothing that indicates failure in my logs. I just get "Tests failed." with "Exited with code 1"

caleb.macdonaldblack09:11:29

Looks like it was running out of memory

jumar11:11:29

Isn't that visible in the logs?

caleb.macdonaldblack23:11:36

Nah. It just gives me "Tests failed"

caleb.macdonaldblack09:11:39

-Xmx768m fixed it right up

Drew Verlee18:11:09

what code/lib does lein check actually run? is it cljfmt?

Drew Verlee18:11:55

there different things

mikerod19:11:26

@drewverlee it’s basically running a clojure.core/compile on all clj ns’s in the configured source and (maybe) resource paths I believe.

Drew Verlee19:11:17

whats the end result? to see if your code compiles?

mikerod19:11:21

Yes. That’s the main use I know of for it

mikerod19:11:32

Can see things like reflection warnings too if that matters to you

mikerod20:11:07

But without lein check you may not even attempt to compile all your ns’s - eg if not rests for some file or something & you are not doing AOT

andy.fingerhut21:11:05

I believe lein check enables something like (set! *warn-on-reflection* true) even for namespaces that do not contain that expression.