cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
stuartrexking 2021-01-24T06:14:26.016600Z

I’m getting an Unhandled REPL handler exception in the cider repl window when I start to type any symbol https://gist.github.com/stuartrexking/21be30e6d40691be603a248ccc8b51e9

stuartrexking 2021-01-24T06:14:41.017200Z

It’s related to eldoc but it’s not clear to me what’s causing it.

stuartrexking 2021-01-24T06:18:39.017600Z

I’ve put the nrepl-messages output here https://gist.github.com/stuartrexking/cdd0614ed746c60b38c7e9bfb76f7998

stuartrexking 2021-01-24T06:23:49.018Z

The exception is thrown on almost every character.

dpsutton 2021-01-24T06:24:52.018600Z

can you recreate this on a repl with no dependenies? deps.edn just {} and jack in?

stuartrexking 2021-01-24T06:28:03.018900Z

No. Yes

dpsutton 2021-01-24T06:46:03.019600Z

hmm. identifying the smallest deps required to make this error would be helpful but i understand if in a large project that's not easy to do

stuartrexking 2021-01-24T06:52:57.020700Z

Is it an error in the application code that’s simply being bubbled up to cider, or could it be a cider issue. Hard to tell here.

stuartrexking 2021-01-24T07:06:17.021300Z

Actually, no, that’s not true. It does reproduce on a barebones deps.edn. The exception just takes longer to appear.

stuartrexking 2021-01-24T07:08:22.021900Z

This is the startup command that’s being run on jack-in with an empty deps.edn

Startup: /usr/local/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} cider/cider-nrepl {:mvn/version "0.25.7"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'

stuartrexking 2021-01-24T07:28:05.022700Z

The exception is also thrown when I cider-jack-in-default

dpsutton 2021-01-24T07:47:40.023700Z

It appears to be cider tooling that’s blowing up. If you open an issue with these stack traces people will look at it

bozhidar 2021-01-24T07:49:06.024100Z

Might be some regression related to this fix https://github.com/clojure-emacs/orchard/commit/fd99c15f962b085e3da7c451eedcb31f7a12c4f6

bozhidar 2021-01-24T07:50:10.025300Z

I don't see any recent changes that might be related. At any rate - it'd be best to file a ticket with Orchard. Potentially you can try to set the inject middleware to 0.25.6 and see if this will fix the problem for you for the time being.

bozhidar 2021-01-24T07:51:47.025700Z

Looking at the second gist, it's definitely something to do with the change I mentioned.

stuartrexking 2021-01-24T08:02:02.026400Z

Yeah, no exception when I rollback to 0.25.6

stuartrexking 2021-01-24T08:02:17.026700Z

Thanks. I’ll open an issue with Orchard.