cursive

Issues at: https://git.io/cursive-issues
2020-09-23T01:55:26.002400Z

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...

2020-09-23T13:42:44.012100Z

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

2020-09-23T13:42:49.012300Z

Thanks!

2020-09-23T17:06:29.015700Z

@cfleming 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?

cfleming 2020-09-24T23:35:17.010800Z

@folcon 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

2020-09-25T13:17:33.028900Z

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

cfleming 2020-09-25T23:19:01.030400Z

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).

1
cfleming 2020-09-23T02:57:03.002500Z

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

reefersleep 2020-09-23T09:03:03.004100Z

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?

reefersleep 2020-09-24T10:00:17.001900Z

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.

reefersleep 2020-09-24T10:00:32.002100Z

I’ll check the font thing though, thanks!

reefersleep 2020-09-25T13:21:06.029200Z

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

reefersleep 2020-09-23T09:04:23.005100Z

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

cfleming 2020-09-23T09:36:54.005200Z

Is that possibly the font he’s using?

cjmurphy 2020-09-23T13:29:59.011900Z

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?

thheller 2020-09-23T15:01:07.013400Z

@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.

João Galrito 2020-09-23T15:13:47.014Z

hello all

João Galrito 2020-09-23T15:13:48.014200Z

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

João Galrito 2020-09-24T14:02:27.004500Z

ok, makes sense

cjmurphy 2020-09-23T16:06:54.014800Z

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'.

thheller 2020-09-23T16:32:09.015300Z

or just run via clj directly?

thheller 2020-09-23T16:32:55.015500Z

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

João Galrito 2020-09-23T23:09:39.016700Z

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)

João Galrito 2020-09-24T14:00:54.004300Z

no, I'm using parinfer

cfleming 2020-09-24T23:35:45.011100Z

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

João Galrito 2020-09-23T23:11:22.017Z

or maybe I dreamt it did that

cjmurphy 2020-09-23T23:49:12.017100Z

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.