Fork me on GitHub
#cursive
<
2019-10-03
>
cfleming04:10:56

Thanks for the reports everyone, I’ve been trying to reproduce the logging error but haven’t been able to yet.

ikitommi05:10:56

what is the last working combo? I have now 2019.2.3 & 190.eap2-2019.2 and the REPL doesn’t start. And how do I rollback to the last working combo?

ikitommi05:10:35

same IdeaLogger thing + No nREPL ack received

cfleming06:10:27

@U055NJ5CC Go to https://plugins.jetbrains.com/plugin/8090-cursive/versions, choose EAP, download 1.9.0-eap1-2019.2 and then install from disk.

cfleming06:10:50

I’m still working on those two issues, so far I can’t reproduce either of them.

Empperi06:10:44

I have the same problem, REPL doesn't start

ikitommi06:10:37

thanks @cfleming, downgraded and works again

Empperi06:10:09

I downgraded but have the same issue 😞

Empperi06:10:00

Oh damn, I'm wrong. I downloaded the wrong version.

Empperi06:10:55

Yay, downgraded properly and works. 🙏

Ben Hammond09:10:19

anyone else running project SDK java-1.8 have this problem?

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Ben Hammond09:10:42

maybe its irrelevant

sooheon10:10:16

I see many .jar files once I download an older version. Am I supposed to install all of them one by one?

Ben Hammond10:10:12

that's strange, I see a single .zip file cursive-1.9.0-eap1-2019.zip

Ben Hammond10:10:40

with .jar files in it

Ben Hammond10:10:07

maybe your zip ffile is getting automagically unpacked; you don't want that

sooheon10:10:18

Good call, that might be it

cfleming21:10:15

@UFC2ETW9W Right, you want the original zip, IntelliJ will unpack it during the install process.

Jakub Holý (HolyJak)10:10:55

@cfleming is there a place with an overview with working Cursive x IntelliJ combos? Thanks!

jamescroft10:10:44

Hi, I'm trying to use a debug REPL, I can set breakpoints and the debugger opens correctly, however whilst the debugger is paused, I can't evaluate any code in the REPL. I can't evaluate anything until I click continue. Hopefully this screenshot will explain it

p-himik11:10:24

Just a wild guess - what if you make the breakpoint to suspend only the current thread?

4
p-himik11:10:14

Note that even if that helps, it likely won't help in situations where a breakpoint was hit due to some code executed in the REPL input panel. Simply because it will be the same thread.

jamescroft11:10:55

How would I make the breakpoint only suspend the current thread?

jamescroft11:10:30

Sorry, found it, right clicking on the breakpoint show a menu that allows that.

jamescroft11:10:43

@U2FRKM4TW I made that change but it still seems to have the same behaviour. Thanks for the suggestion though!

katox15:10:01

@U06790Y4E You can fire up another REPL window in a different thread. Or you can use a future to run the command to be stopped in debugger.

jamescroft15:10:41

@U0KD0N5T5 Thanks. If I fire up a different REPL it won't have access to to local variables as they currently are at the breakpoint. I thought this was a flow that I saw @cfleming use in his Debugging with Cursive video.

katox15:10:51

I use eval (alt-f8) to inspect. You can write clojure code there as well even though it is cumbersome.

cfleming21:10:50

Yes, Evaluate Expression is really the only way to do this right now. I have an idea that I should be able to detect if the debugger is paused for a particular REPL session, and if so then I should hopefully be able to use Evaluate Expression automatically, but I haven’t had time to investigate this properly.

joaohgomes15:10:47

@U06790Y4E check scope capture. Nice library to help debugging code: https://github.com/vvvvalvalval/scope-capture

👍 4
Jakub Holý (HolyJak)11:10:54

Hm, I get Plugin 'Cursive' is incompatible with this installation trying to install cursive-1.9.0-eap1-2019.3.zip from disk into IntelliJ IDEA 2019.2.3 (Ultimate Edition).

onetom15:10:22

yes, because that plugin is for the 2019.3 EAP Intellij, not the 2019.2.3

👍 4
cfleming21:10:25

Right, you need cursive-1.9.0-eap1-2019.2.zip

grzm16:10:45

I've been bitten by the upgrade/downgrade cycle as the current Cursive/IntelliJ incompatibilities get worked out. When I downgrade, I've been moving the old .idea directory out of the way to prevent version issues in settings. In doing so, (a) I end up losing my run configurations, (b) deps configuration (Cursive no longer recognizes the projects as deps projects) and (c) Cursive loses knowledge of some var resolutions it had before. I understand this is predictable result of reimporting the project. The part that I'm having the most issue with is the var resolution. Is this a stub regeneration issue? If so, how can I force stub regeneration? If not, what else might I need to look into?