leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
dpsutton 2019-11-06T04:02:59.086600Z

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)

dpsutton 2019-11-06T04:03:32.087Z

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

caleb.macdonaldblack 2019-11-06T08:50:26.089200Z

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.macdonaldblack 2019-11-06T09:04:29.089500Z

Looks like it was running out of memory

caleb.macdonaldblack 2019-11-06T09:04:39.089800Z

-Xmx768m fixed it right up

jumar 2019-11-06T11:31:29.089900Z

Isn't that visible in the logs?

2019-11-06T18:07:09.090500Z

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

2019-11-06T18:07:50.090700Z

no

2019-11-06T18:07:55.090900Z

there different things

2019-11-06T19:34:26.092400Z

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

2019-11-06T19:35:17.092700Z

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

2019-11-06T19:59:21.093Z

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

2019-11-06T19:59:32.093500Z

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

2019-11-06T20:00:07.094600Z

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

2019-11-06T21:37:05.095500Z

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

caleb.macdonaldblack 2019-11-06T23:17:36.095600Z

Nah. It just gives me "Tests failed"