leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
metame 2019-04-13T03:26:47.005300Z

Having an issue where lein run is taking me 3m30s and taking my coworkers only 30s

metame 2019-04-13T03:27:33.006100Z

Every chance at parity has been attempted. I actually have a newer/faster system than anyone else

metame 2019-04-13T03:29:03.006900Z

It mostly seems to hang at what I'd call namespace collisions (.e.g WARNING: name already refers to: #'clojure.core/name in namespace:...), at least that's what's printing while it takes the longest, which I'd guess is during compile

jumar 2019-04-13T07:35:43.007900Z

could it be that you have many plugins/dependencies in your .lein/profiles.clj?

alexmiller 2019-04-13T11:33:56.008900Z

Any chance you’re using user.clj and latest jdk (8u202+ or 11.0.2)?

alexmiller 2019-04-13T11:34:30.010Z

There is a known Java perf regression with these that has a dramatic impact when loading user.clj

alexmiller 2019-04-13T11:35:18.010700Z

Clojure 1.10.1-beta2 has a mitigation fix in it we are testing

metame 2019-04-13T14:38:49.011700Z

.lein/profiles.clj just has env vars basically.

metame 2019-04-13T14:39:10.012100Z

@alexmiller let me take a look at jdk version, that might be it

metame 2019-04-13T14:40:29.012300Z

we are using a user.clj

metame 2019-04-13T14:41:23.012800Z

Looks like I'm on java 8u201 though:

$ java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)

metame 2019-04-13T15:50:28.013200Z

So I downgraded my jdk to 8u192 and it fixed my build time

👍 1
alexmiller 2019-04-13T23:17:32.013800Z

Sorry 8u201 was bad too

alexmiller 2019-04-13T23:17:50.014200Z

I’d say it’s almost certain that’s it

👍 1