Fork me on GitHub
#cursive
<
2019-04-29
>
souenzzo07:04:55

Anyone else with

java.lang.NoClassDefFoundError: org/jetbrains/idea/maven/dom/MavenVersionComparable
	at cursive.deps.DepsManager$Companion.configFiles(DepsSupport.kt:253)
When trying to open a deps project?

p-himik08:04:17

Not on IDEA 2019.1.1 + Cursive v1.8.2-eap1-2019.1.

souenzzo08:04:47

I'm on this version too

p-himik08:04:29

IDEA as well?

👍 4
cfleming21:04:19

@U2J4FRT2T Do you have the Maven plugin installed and enabled?

cfleming21:04:49

It looks like I might have some code relying on it which doesn’t test correctly whether it’s there or not.

vinai11:04:53

I just upgraded to Cursive v1.8.1-2019.1 and IntelliJ 2019.1.1 CE and now I get

Error loading nrepl.server: Could not locate nrepl/server__init.class, nrepl/server.clj or nrepl/server.cljc on classpath
...
No nREPL ack received
In my project.clj I've got [nrepl "0.3.1"] and I tried with [org.clojure/tools.nrepl "0.2.13"] before that. lein repl starts the nrepl server without an issue. Any idea why is wrong?

p-himik11:04:24

I think it's a common issue with nrepl - some of the API has been changed in an incompatible way. Try looking it up on the Internet, there are different fixes depending on your particular situation.

vinai11:04:37

Thanks, doing that

vinai11:04:07

It was working with the previous version of cursive and intellij (whatever those where...)

p-himik11:04:42

For what it's worth, I have org.clojure/tools.nrepl {:mvn/version "0.2.13"} in my deps.edn. I don't use Leiningen at all.

vinai11:04:18

This is an old project that is lein based. The newer ones use deps.edn, too

p-himik11:04:05

If you can't find anything related, I'd try to recreate the error with the smallest example possible. That should give at least some idea of what's wrong.

vinai11:04:50

Good idea, thanks

vinai11:04:17

Trying the new namespace nrepl 0.6.0 now

vinai11:04:44

After updating nrepl to 0.6.0, removing the jackson-core exclusion from buddy-auth, adding an explicit dependency on cheshire5.8.1 and updating cider/piggieback to 0.4.0 I've got a repl again 🙂

vinai11:04:37

All these changes where triggered by changing exceptions during startup, i.e. change one thing, get a different exception, fix that, repeat.

p-himik11:04:15

Yep, sounds about right. 🙂

vinai11:04:04

Oh boy, another interesting new behavior. I'll start a new thread for that though.

vinai11:04:23

When starting figwheel in my cljs repl IntelliJ starts asking "Enter string for standard input" in a popup. Whatever I enter seems to be sent to the cljs repl, evaluated, and printed. The repl output window just echos the value and shows the prompt app:cljs.user=> again. So somehow the read doesn't happen in Cursives repl input window but through IntelliJs prompt. I'm starting figwheel with

(use 'figwheel-sidecar.repl-api)
(start-figwheel!)
(cljs-repl))
Has someone encountered this, too?

vinai12:04:46

Dang, seems like I have to work without hot reloading today.

vinai12:04:54

Oh wait, after :cljs/quit autobuilding still is running in figwheel. So I'm only missing the cljs repl.

vinai12:04:10

I can open one with lein in a terminal though - that's good enough

vinai12:04:06

Would be great to get a real solution, but until then I can get stuff done.

vinai12:04:18

That's been my setup so far. But after today's upgrade things started breaking @U2TLBUVRS.

cfleming21:04:41

@U3WJG25EV I’ve replied over on the GH issue.

Chris13:04:18

Does anyone know how to navigate to the REPL Output screen without the mouse? I can get to the input window with the Switcher, but I can't get up to the Output screen to scroll history without clicking in with the mouse?

p-himik13:04:25

There's "Jump to REPL output pane" in the Keyboard settings.

💯 4
Chris13:04:33

OMG I never saw that before and when I did search for action with REPL I didn't look far enough down! Thanks so much!

arnoha20:04:57

Just installed Cursive, REPL is working but the text editor window isn’t eval’ing the code unless I explicitly Load file in REPL. Went through the online docs and don’t think I’ve missed any of the setup, any ideas?

manutter5120:04:08

I think I had to go in to Preferences -> Keymap -> Plug-ins -> Cursive and set up my preferred key bindings for “Load file in REPL,” “Send form before caret to REPL,” and “Send top form to REPL”.

👍 8