Fork me on GitHub
#cursive
<
2020-05-29
>
folcon00:05:30

Since updating to eap5 I can’t connect to a repl using the run config, anyone else seeing this =)…

Starting nREPL server...
<long classpath> clojure.main -i /private/var/folders/xl/rkkw077j4xxf827wn82mcp_c0000gn/T/form-init15182512464198811612.clj
No nREPL ack received
Connecting to local nREPL server...
Syntax error (ConnectException) compiling at (/private/var/folders/xl/rkkw077j4xxf827wn82mcp_c0000gn/T/form-init15182512464198811612.clj:1:1).
Connection refused

Full report at:
/var/folders/xl/rkkw077j4xxf827wn82mcp_c0000gn/T/clojure-13856084906054891137.edn

Process finished with exit code 1

cfleming06:05:06

No-one else has reported it, and I'd have expected that to be reported pretty quickly. The error seems to be "Connection refused", which normally means there's nothing listening on that port. It could be that the inital ack problem is the real problem? I'm not sure. Does this happen on all projects?

folcon10:05:39

Yea, I was expecting the same =)… I’m working around it by booting up a repl in term and connecting to it with nrepl… Not had time to properly debug it yet…

cfleming10:05:19

Ok, I'll check it when I get a chance. Are you running this with lein/deps? Are you using aliases or profiles or any other special config?

manutter5111:05:13

It seems to me I had a similar problem a while back and cleared it up with File -> Invalidate Caches / Restart…

folcon11:05:13

I’ve not tried to invalidate caches, let me give that a go =)…

folcon11:05:59

I’ve got a big dev profile… Will try and disable that and see if that’s causing it…

folcon11:05:08

Btw @U0567Q30W I don’t know if this is something you effect or it’s just Intellij’s internal logic, but indexing happens a lot….

folcon12:05:18

I’ve done a cache invalidation and that hasn’t helped, disabling my :dev alias did, but thinking about it, the no repl ack has happened in the past, what’s different now is that Connecting to local nREPL server now leads to connection refused, whereas previously it would just connect… Not sure what’s causing that currently, am disabling bits to see if I can figure out the cause… Ok, disabling it down seems to work, which is frustrating as it messes with mount’s workflow, but perhaps it can’t be helped…

mhuebert12:05:11

is there any possibility of an eval-and-insert or pprint-eval-and-insert command, ie. eval a form and insert the (formatted) result into the file?

cfleming04:05:09

Yes, the problem is that there is a combinatorial explosion of things you might want to do: take form before point/top form/surrounding sexp and evaluate/evaluate and add commented result/evaluate and replace original with formatted output/and on and on...

😍 3
cfleming04:05:23

So what I'm planning to do is extend REPL commands (https://cursive-ide.com/userguide/repl.html#repl-commands) to allow you to create whichever commands you happen to want.

mhuebert17:06:06

That sounds superb

Rachel Westmacott07:06:04

that kind of REPL command extension would be AMAZING

bahulneel15:05:20

@here does anyone know how to install the clojuredocs after you've already said no?

imre15:05:22

pref -> lang & fw -> clojure -> bottom of page

bahulneel15:05:00

thanks, just found it as you replied 🙂

imre15:05:15

👍:skin-tone-3: