leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
ghadi 2019-05-01T00:00:41.033200Z

sigh, this is a stupid hack lein put in to make startup faster

ghadi 2019-05-01T00:00:52.033500Z

@nikp do you have LEIN_USE_BOOTCLASSPATH set?

ghadi 2019-05-01T00:01:25.033900Z

it's been biting people since jdk9 came out

ghadi 2019-05-01T00:02:21.034600Z

the jvm-opts doesn't work because it's the lein jvm failing, not the project jvm

ghadi 2019-05-01T00:03:13.035700Z

can you dump java -version

nikp 2019-05-01T00:05:27.035900Z

ghadi 2019-05-01T00:05:49.036900Z

straight jvm or did you jlink it to be smaller?

nikp 2019-05-01T00:05:55.037100Z

And interesting, going to try the LEIN_USE_BOOTCLASSPATH. Does it make a difference if it's for a lein plugin or not

ghadi 2019-05-01T00:06:10.037500Z

please don't, it isn't relevant after jdk8

ghadi 2019-05-01T00:06:17.037700Z

the bootclasspath doesn't exist anymore

nikp 2019-05-01T00:06:21.037900Z

Oh I see

nikp 2019-05-01T00:06:45.038500Z

don't think I used jlink unless it does it implicitly, it's an install from the arch openjdk package

ghadi 2019-05-01T00:06:54.038700Z

that seems normal

ghadi 2019-05-01T00:07:55.039200Z

sorry, I'm not sure what's going on

nikp 2019-05-01T00:10:01.039600Z

No worries, thanks for trying! Will continue playing around/post if we get anywhere

ghadi 2019-05-01T00:11:11.040700Z

Np. Try DEBUG=yes lein and see if something weird is going on

yogthos 2019-05-01T00:42:45.041500Z

it looks like the approach would be to load the module at runtime using ModuleLayer

ghadi 2019-05-01T00:51:55.042400Z

Shouldn't have to do that. Java.sql is in the base platform

yogthos 2019-05-01T01:37:33.043100Z

it's a bit odd, this works fine:

(let [cf (.configuration (java.lang.ModuleLayer/boot))]
  (if (.get (.findModule cf "java.sql"))
    (java.sql.Timestamp. (.getTime (java.util.Date.)))
    (do
      (println "failed to find java.sql module")
      (System/exit 1))))
but doing a require I end up with Caused by: java.lang.ClassNotFoundException: java.sql.Timestamp