Fork me on GitHub
#calva
<
2019-06-06
>
pez06:06:12

This is using connect in windows with powershell and leiningen?

bringe13:06:27

This is manually running the jack-in command, after altering it for powershell. It was opening the REPL window, then it stopped doing that.

bringe13:06:11

At least, I thought it was doing that automatically. I'm not sure now. But if I connect after the repl starts, the repl window opens.

pez14:06:39

It sounds like the file watcher fails picking up when the .nrepl-port file is created.

pez09:06:01

Folks. In a short time three people (@hoppy, @john and @dominicm) have had need for more cljs jack-in/connect support than what Calva packs today. Looking at the code for this it’s quite easy to see how to slap in some more known cljs-repl types, but it isn’t exactly DRY as it is and this would just worsen if we do it like that. If I squint I think I see how it can be a bit generalised to more look like configuration maps and if we can do that we can also allow the user to add cljs-repl config map entries through settings. Much like CIDER does today. However, I will have a bit of trouble to prioritise this any soon. If someone would like to take a stab at it, I would be very happy to have a few sessions of intro to the code.

Pedro Ruiz13:06:12

Hey guys, just joining after I’ve seen news of the Calva 2.0. Amazing work. Will try it out on my daily work to see if I’m able to move from Cursive. Just setting up the environment and trying some projects on it. One initial doubt I have… is it expected that when I evaluate something not inline it goes to the Calva says output and not straight into the REPL?

bringe13:06:22

ctrl+alt+c, alt+e evaluates the selection in the repl window

❤️ 4
Pedro Ruiz13:06:16

Thanks!

👍 8
manas_marthi13:06:25

Hi @pez just tried installing latest version of calva. I created a new lein project and tried ctrl+alt c j. I got an error. Not sure if it is really an issue or my setup problem. I am running behind proxy and am using Artifactory for dependencies.

manas_marthi13:06:31

I am using visual studio code 1.30.0 on Windows 10. Java version java version "1.8.0_212"

kstehn13:06:48

The problem ist your default terminal config. Currently when you try to jack-in with powershell it will not work. You should use cmd as default Terminal with that it should work.

pez13:06:03

Welcome, @pedro.ruiz ! When you evaluate inline the results will also be sent to Calva says. To send to the repl you use those commands instead.

pez13:06:44

Yeah. Trouble with lein and powershell right now.

manas_marthi13:06:59

Yes, it worked now.. thank you

metal 4
bringe19:06:26

@pez Is there any way to auto-scroll the Calva says output window? For example, if I evaluate a file and the window isn't open, it pops open and shows the evaluation result. Then if I eval the file again, the results are output to the Calva says window as before, but the window doesn't scroll down. So every time I re-eval, I have to select the Calva says window and scroll to see if any errors occurred.

👍 4
pez20:06:31

@brandon.ringe , there is a small lock icon in the output pane. I don't remember if it should be closed or open, but toggle it and it should make the window autoscroll.

👍 4
bringe20:06:55

just user error I guess =P

pez20:06:56

Haha, if it is, there are many users making that error. 😀

vlaaad21:06:05

i noticed goto definition works only with nrepl connection on, do I understand it right that there is no static analysis going on, only runtime communication? this is why find usages (shift+f12) does not work as well?

pez21:06:42

Nothing static going on. And Find usages is not implemented yet.

vlaaad21:06:38

I'm using deps.edn-based project, and noticed that aliases don't work

vlaaad21:06:31

it happens because resulting command first specifies -m nrepl.cmdline ..., and only then -A:some-alias

vlaaad21:06:01

it makes them part of arguments to main instead of arguments to clojure command

vlaaad21:06:56

I tried starting nrepl manually with changed order of arguments (aliases before -m) and connecting to it, and it worked

metal 4