Fork me on GitHub
#calva
<
2021-09-20
>
armed04:09:12

Hi, is it possible to assign specific deps.edn path to connect sequence? I have monorepo project with several subprojects and when I try to jack in it searches for nearest deps.edn and launches, but I want to use top level deps file.

pez05:09:57

We should add this.

seancorfield04:09:33

@armed Start the REPL yourself from the terminal and connect to it from Calva.

seancorfield04:09:55

(we have a monorepo with lots of deps.edn files at work)

seancorfield04:09:21

For me, VS Code needs restarting a lot more often than my REPL.

armed04:09:38

@seancorfield yes doing it, but would like Cursive like functionality, where I can start specific repl with hotkeys

seancorfield04:09:14

I tend to have three or four REPLs running, started from terminals, all running for weeks...

armed04:09:22

What is the reason to restart vscode often?

seancorfield04:09:43

Updates, mostly.

seancorfield04:09:45

I also find I need to reload the VS Code window even between updates, as LSP or some other thing stops working and needs to be restarted...

armed04:09:15

Ah, I see. Maybe I should make a habit to keep terminal open for repl. Thanks

armed04:09:13

Mainly I was using Cursive and just don't close Idea at all. Updates is not so often for it

armed04:09:26

@seancorfield sorry for dumb question. For example I have several repl's running. How do you manage to connect to specific ports? Do you manually enter port numbers in connect dialog or calva can store it somewhere?

armed04:09:33

for example I have one dev repl to port 7888 and a few remote repls for each module running somethwere

seancorfield04:09:20

(I actually use Clover for my REPL because I use Socket REPLs everything, not nREPL, so it's different for me)

armed04:09:34

Does calva allows to bookmark connections to specific remote ports?

armed04:09:10

I was thinking to make several connect sequences, but it for jack-in only, as I see

seancorfield04:09:01

I don't know if Calva reads the .nrepl-port file to prefill the port number -- Clover does that with .socket-repl-port which is a file my :dev/repl alias writes (see my dot-clojure and vscode-setup-clover repos for how I have all this setup).

armed05:09:37

Ok got it working. Connect sequence can run w/o jack-in too. I just created specific port files for each remote running repl and made sequence for each. Thanks Sean

2
👍 2
armed06:09:03

Hi, @pez I couldn't figure out how to set nReplPortFile for alternate file locations. For example I have two locations of port file ['.nrepl-port', '../.nrep-port'] (for root project and nested), but only first one works. If I go to nested project and fire up remote repl the port number in connect window is empty.

pez06:09:46

It’s not for alternating port files, iirc. It’s for one path, I.e. ['..', '.nrepl.port'].

👍 2
armed06:09:15

Ah, I should read docs more carefully. Thanks

pez06:09:17

I think your whole use case can be supported much better. Please chip in with what you would want working on this issue: https://github.com/BetterThanTomorrow/calva/issues/1254

👍 2
armed06:09:28

But if I change order to ['../.nrepl-port', '.nrep-port'] - nested project connects, and from root port is empty