clojure-dev

Issues: https://clojure.atlassian.net/browse/CLJ | Guide: https://insideclojure.org/2015/05/01/contributing-clojure/
2020-05-18T18:29:44.165300Z

I was trying to mvn install org.clojure/clojure repo today for 1.9.0 and keep getting:

compile-clojure:
     [java] Exception in thread "main" java.lang.ExceptionInInitializerError
     [java] 	at clojure.lang.Compile.<clinit>(Compile.java:29)
     [java] Caused by: java.lang.NumberFormatException: null, compiling:(clojure/core.clj:6973:1)
     [java] 	at clojure.lang.Compiler.load(Compiler.java:7526)
     [java] 	at clojure.lang.RT.loadResourceScript(RT.java:379)
     [java] 	at clojure.lang.RT.loadResourceScript(RT.java:370)
     [java] 	at clojure.lang.RT.load(RT.java:460)
     [java] 	at clojure.lang.RT.load(RT.java:426)
     [java] 	at clojure.lang.RT.doInit(RT.java:468)
     [java] 	at clojure.lang.RT.<clinit>(RT.java:336)
     [java] 	... 1 more
     [java] Caused by: java.lang.NumberFormatException: null
     [java] 	at java.lang.Integer.parseInt(Integer.java:453)
     [java] 	at java.lang.Integer.valueOf(Integer.java:581)
     [java] 	at clojure.core$eval4181.invokeStatic(core.clj:6985)
     [java] 	at clojure.core$eval4181.invoke(core.clj:6975)
     [java] 	at clojure.lang.Compiler.eval(Compiler.java:7062)
     [java] 	at clojure.lang.Compiler.load(Compiler.java:7514)
     [java] 	... 7 more

2020-05-18T18:30:00.165700Z

I’ve tried with jdk 7, 8, 11 on mac - 7 & 8 get above, 11 has different issues

2020-05-18T18:30:10.166Z

any reason ? do I have to try jdk 6?

2020-05-18T18:30:19.166400Z

wondering if this is a known thing

ghadi 2020-05-18T18:31:06.166600Z

did you mess with the version number

2020-05-18T18:31:16.166800Z

yes

ghadi 2020-05-18T18:31:22.167100Z

well there you go

2020-05-18T18:31:29.167300Z

I didn’t want to replace “real one”

2020-05-18T18:31:39.167500Z

but can’t change version so easily huh

2020-05-18T18:31:58.168300Z

I had like 1.9.0-mine

ghadi 2020-05-18T18:31:59.168400Z

you can, but has to match the pattern

2020-05-18T18:32:02.168700Z

I see

alexmiller 2020-05-18T18:32:33.169300Z

I often just use 1.11.0-master-SNAPSHOT when I'm doing local installs

alexmiller 2020-05-18T18:32:45.169600Z

(or whatever snapshot version makes sense)

alexmiller 2020-05-18T18:34:06.170500Z

not using a "real" release number makes it far less likely I'll overlap something that actually gets released (and snapshots will get replaced by real snapshots eventually)

2020-05-18T18:34:23.170800Z

yes, that makes sense

2020-05-18T18:34:40.171600Z

thanks for input - I should have indeed read compiling:(clojure/core.clj:6973:1) this line too to realize it was version number issue

alexmiller 2020-05-18T18:34:40.171700Z

if you want a faster build, mvn clean install -Dmaven.test.skip=true can help

2020-05-18T18:34:53.172Z

thanks - yeah, I wanted to skip tests as well for my purposes