Fork me on GitHub
#cursive
<
2020-09-23
>
folcon01:09:26

Just trying out the cursive socket repl and nrepl with arcadia and both appear to fail to connect?

Connecting to remote Socket REPL...
Could not connect to localhost:37220: Connection refused: connect
The funny thing is that the socket repl fails to connect (can connect via telnet on that same port) whereas the nrepl just hangs here:
Connecting to remote nREPL server...
Arcadia does ack a successful connection on it's side however...

cfleming02:09:03

Right now, for both of those REPL types Cursive assumes there’s a Clojure system at the other end. That’s not true for Arcadia, so all bets are pretty much off unfortunately. I’m going to add a pure streaming socket REPL, but it’s not there yet. In the meantime, you could try a clojure.main REPL in Cursive and then connect over https://github.com/vlaaad/remote-repl

folcon13:09:44

Oh ok, that's an option 😃...

folcon17:09:29

@U0567Q30W This might be crazy, but is there someway that I can get cursive's resolution to work for arcadia? Other than writing a pass through layer of functions?

cfleming23:09:17

@U0JUM502E There’s an old comment on an issue about this - unfortunately nothing has changed in the meantime: https://github.com/cursive-ide/cursive/issues/942#issuecomment-117940224

folcon13:09:33

@U0567Q30W There might be some changes on that front based on Rider, but I can completely understand not wanting to go down that rabbithole =)...

cfleming23:09:01

Yes, supporting Rider would be basically a total rewrite of Cursive, since it works in a very different way to other IntelliJ plugins (more like a LSP).

3
reefersleep09:09:03

My colleague sees nonbreaking spaces as NSBP in editor windows. I see them as a regular space. Does anyone know how I can get the same result as him?

cfleming09:09:54

Is that possibly the font he’s using?

reefersleep10:09:17

Hmmmm maybe. I have a suspicion that it’s just because I’m not on the very tip OS/Intellij/Cursive-wise, and he is.

reefersleep10:09:32

I’ll check the font thing though, thanks!

reefersleep13:09:06

It wasn’t the font, it seems. Gotta try updating my OS/IntelliJ/Cursive next.

reefersleep09:09:23

I tried turning on Editor -> General -> Appearance -> Show Whitespaces (and updating Intellij and Cursive), but still no result.

cjmurphy13:09:59

When running a local REPL 'Run Configuration' has an option 'Run with Deps' that accepts alias, alias,... Thus the REPL's classpath can be picked up from aliases in deps.edn. I'm now trying to use the remote REPL instead, which is connecting to an already existing Shadow-cljs nREPL. This might be a shadow-cljs question, and I've read the docs there but they haven't helped me. How should I specify aliases (and hence the classpath of the development server/REPL) now that the remote 'Run Configuration' doesn't have a text-box to write them in?

thheller15:09:07

@cjmurphy you are connecting remotely. so the classpath of the process you are connected to applies, however that was started. you cannot adjust the classpath when connecting remotely.

cjmurphy16:09:54

The already running server is this: "shadow-cljs - nREPL server started on port 9000". How do you specify the classpath for it? That is what I was hoping to find in the shadow-cljs docs. Somewhere there has to be a list of deps aliases or paths that make up the classpath for what I simply see as 'the server'.

thheller16:09:09

or just run via clj directly?

thheller16:09:55

I don't really think that there is anything but I don't have a clue what would be happening here

cjmurphy23:09:12

I'm going to assume that the classpath is picked up from the aliases checked on 'Clojure Deps Projects', and has nothing to do with the Shadow nREPL server.

João Galrito15:09:48

when using Cursive, do I only get method name resolution if I import the corresponding classes?

cfleming01:09:21

No, you’ll get it sometimes even if the class is not imported, but Cursive will need to know what the type is. So: (-> (ArrayList.) (.iterator) (.next)) will give you completion on .next because Cursive knows the type is Iterator.

João Galrito14:09:27

ok, makes sense

João Galrito23:09:39

I think i did something and now Cursive is not auto aligning forms (if I move the first line of a form to the line below, the other lines don't move to the correct indentation)

cfleming01:09:44

That sounds like parinfer - have you disabled that, perhaps?

João Galrito14:09:54

no, I'm using parinfer

cfleming23:09:45

Can you share a screen capture of what you’re seeing?

João Galrito23:09:22

or maybe I dreamt it did that