Fork me on GitHub
#cider
<
2024-04-11
>
heyarne06:04:01

i'm trying to live-code a quil sketch, but cider repeatedly crashes with the following error:

ERROR: Unhandled REPL handler exception processing message {:op complete, :ns aphorisms.thirty-seven, :prefix noi, :context (__prefix__)
, :enhanced-cljs-completion? t, :session 2a769c0b-a5bc-4053-b995-452fd8b9f315, :id 96}
java.lang.IncompatibleClassChangeError: Method 'java.lang.module.ModuleFinder java.lang.module.ModuleFinder.ofSystem()' must be InterfaceMethodref constant
	at cider.nrepl.inlined.deps.compliment.v0v5v1.compliment.utils$all_files_on_classpath$fn__8539.invoke(utils.clj:183) ; … and so on and so on
any idea what might be happening here?

heyarne06:04:52

cider is started like this:

clojure -Sdeps \{\:deps\ \{nrepl/nrepl\ \{\:mvn/version\ \"1.0.0\"\}\ cider/cider-nrepl\ \{\:mvn/version\ \"0.45.0\"\}\ refactor-nrepl/refactor-nrepl\ \{\:mvn/version\ \"3.9.1\"\}\}\ \:aliases\ \{\:cider/nrepl\ \{\:main-opts\ \[\"-m\"\ \"nrepl.cmdline\"\ \"--middleware\"\ \"\[refactor-nrepl.middleware/wrap-refactor\,cider.nrepl/cider-middleware\]\"\]\}\}\} -M:cider/nrepl
where clojure --version is Clojure CLI version 1.11.1.1435

vemv06:04:22

yes we have a classpath scan in the Compliment library seems an easy fix. are you heavily affected other than seeing that error logged?

heyarne06:04:59

cider is crashing as soon as i try to render anything, so i can't really use it at the moment

heyarne06:04:37

has the java interface changed or what happened?

vemv06:04:38

It's a classpath-wide cache warmup, generally gives no issues It's in @U06PNK4HG’s Compliment library so I cannot immediately fix. It's probably a simple matter of adding a catch we we'll cut a new cider-nrepl release asap

heyarne06:04:54

ah cool! so can i downgrade to a known good version of cider-nrepl for the time being?

vemv06:04:55

not sure, you'd have to try quite a lot You can also create a repl process without cider-nrepl in it. You can cider-connect to that process and have a variety of basic features working (and some warnings, needless to say)

heyarne06:04:19

ok, thanks 🙂

🙌 1
oyakushev06:04:01

@U9N6R1DM4, what's the Java version that you are trying this on?

heyarne06:04:33

openjdk version "11.0.19" 2023-04-18
OpenJDK Runtime Environment (build 11.0.19+0-adhoc..source)
OpenJDK 64-Bit Server VM (build 11.0.19+0-adhoc..source, mixed mode)

oyakushev06:04:16

And the operating system is OSX?

heyarne06:04:24

no, it's on linux

❤️ 1
oyakushev06:04:23

Do you have any other JDKs on your system? Would it be too much hassle to try with another JDK, say, 17?

heyarne06:04:08

i'm using nixos, so this should not be such a big deal

heyarne06:04:53

zulu jdk 17 has the same issue

👍 1
heyarne06:04:23

i was wrong above by the way… the crash was due to another reason. it's just that completion doesn't work anymore

oyakushev06:04:42

Would you mind trying with a clean project?

heyarne07:04:00

i found the culprit

heyarne07:04:23

my deps.edn had its own clojure version (1.9.0), but i was using 1.11.1 in the terminal

👍 1
oyakushev07:04:31

Clojure 1.9 is out of support in CIDER (because 1.9 doesn't work properly with JDK11+)

heyarne07:04:54

thank you for helping me track this down!

❤️ 1