repl not starting in Cursive

32 views
Skip to first unread message

James Pratt

unread,
Aug 14, 2022, 7:57:15 AM8/14/22
to Cursive
Hi,

I'm having issues starting the REPL in a deps.edn project. I can start a REPL and nREPL fine in the terminal using clj.

Before updating to the latest Cursive and IntelliJ I was getting the following error in the logs. Now very oddly I am seeing nothing in the logs at all:

2022-08-14 13:22:40,786 [1033758]   INFO - #c.r.nrepl - Started nREPL ack server on port 49567
2022-08-14 13:22:41,841 [1034813]   INFO - #c.r.process-runner - Received nREPL connection details: 127.0.0.1:49570
2022-08-14 13:22:42,856 [1035828]   INFO - #c.r.nrepl - nREPL ack server stopped
2022-08-14 13:22:47,710 [1040682]   INFO - #c.i.c.ComponentStoreImpl - Saving appClojureIdeSettings took 33 ms
2022-08-14 13:23:05,453 [1058425]   INFO - #c.r.nrepl - nREPL client socket disconnected: Socket closed


IDE :

IntelliJ IDEA 2022.2 (Community Edition)
Build #IC-222.3345.118, built on July 26, 2022
Runtime version: 17.0.3+7-b469.32 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 8192M
Cores: 10
Metal Rendering is ON
Non-Bundled Plugins:
    com.cursiveclojure.cursive (1.12.4-2022.2)

Kotlin: 222-1.7.10-release-334-IJ3345.118


Hope someone can help,

Jamie

James Pratt

unread,
Aug 14, 2022, 7:59:49 AM8/14/22
to Cursive
Oh! I should say what I mean by the REPL not starting. When I try to open the REPL I get as below. There is no output at all in the REPL window. If I stop it, and even restart, it there is still no output.

Screenshot 2022-08-14 at 13.25.40.png

James Pratt

unread,
Aug 14, 2022, 8:06:05 AM8/14/22
to Cursive
Just checked and it appears it is not a problem with one project. I am having the same issue with other deps.edn projects.

James Pratt

unread,
Aug 16, 2022, 2:21:46 AM8/16/22
to Cursive
> Before updating to the latest Cursive and IntelliJ I was getting the following error in the logs. Now very oddly I am seeing nothing in the logs at all

It turns out the reason I wasn't seeing the logs any more after updating IntelliJ is that the logs had been moved.

This is the output I am getting when I try to start a REPL:

2022-08-16 07:16:31,556 [ 362284]   INFO - #c.r.nrepl - Started nREPL ack server on port 50204
2022-08-16 07:16:32,419 [ 363147]   INFO - #c.r.process-runner - Received nREPL connection details: 127.0.0.1:50207
2022-08-16 07:16:33,434 [ 364162]   INFO - #c.r.nrepl - nREPL ack server stopped



Switching my run configuration from nREPL to clojure.main does not fix the problem, I still get no output at all in the repl window (screen shot above). I can type content into the REPL window and the syntax highlighting is working but when I press enter the content just disappears and there is no response.

Using the clj command line tool I can open a REPL fine but the REPL not within Cursive.

What seemed to cause the problem is that I let a very large arithmetic job run unattended to see if it would finish or whether the stack would overflow. The repl window in Cursive has not been working since then. Is there a cache file or something somewhere I can delete or reset that might be gumming up the works?

I have tried:

  • starting a brand new deps.edn project with both JDK v11 and v18
  • uninstalling and reinstalling Intellij IDEA and the Cursive plugin
And the problem still persists.

Thanks for any help! 

James Pratt

unread,
Aug 16, 2022, 2:26:08 AM8/16/22
to cur...@googlegroups.com
I also tried creating a new lein project, still the same issue.

Jamie
Phone nos: +44 7398 664515
WhatsApp: +351912845394
Skype Name: jamiepratt



--
You received this message because you are subscribed to a topic in the Google Groups "Cursive" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cursive/elUdG9wGhsE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cursive+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cursive/513ee66d-5969-4fae-90d0-c508dbc2161cn%40googlegroups.com.

Colin Fleming

unread,
Aug 17, 2022, 5:30:16 AM8/17/22
to Cursive Group
Hi Jamie,

So I actually think your REPL might be running correctly. There's a weird thing which happens sometimes where the REPL UI gets messed up, and the REPL input pane gets collapsed completely. You can see what the REPL should look like here: https://cursive-ide.com/userguide/repl.html#using-the-repl. In particular, you can see how the REPL input pane appears at the bottom of the REPL tool window. Sometimes that can get collapsed completely, and you have to try to drag the divider up from the bottom of the REPL pane to see if you can open it. Let me know if that helps.

Cheers,
Colin
You received this message because you are subscribed to the Google Groups "Cursive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cursive+u...@googlegroups.com.

James Pratt

unread,
Aug 17, 2022, 9:29:41 AM8/17/22
to cur...@googlegroups.com
Thanks, Colin. That was the problem, I was only seeing the input part of the REPL! Oops!


Jamie
Phone nos: +44 7398 664515
WhatsApp: +351912845394
Skype Name: jamiepratt


Colin Fleming

unread,
Aug 17, 2022, 5:04:50 PM8/17/22
to Cursive Group
That's great, I love problems with easy solutions!
Reply all
Reply to author
Forward
0 new messages