Fork me on GitHub
#calva
<
2019-11-08
>
grierson10:11:14

Hello, are there any tools like https://wallabyjs.com/ for Calva? (Continuous running code coverage indicator)

pez10:11:52

Not for Calva there isn’t. I wonder if cider-nrepl might have some coverage help. ping @bozhidar

worrelsik12:11:22

What's the (intended) difference between 'Load Current Namespace in REPL Window' (ctrl-alt-c, ctrl-alt-n) and 'Switch Namespace in REPL Window to Current Namespace' (ctrl-alt-c, alt-n)?

worrelsik12:11:24

Sometimes the ctrl-alt-c alt-n works (i.e. changes cursor in the REPL pane) only in the editor pane; sometimes only in the REPL pane.

pez12:11:08

The intended difference is to be able to switch to the namespace w/o also loading it. Not sure that is how it works though…

worrelsik12:11:39

And 'loading' means 'evaluate all forms in the editor' (where the editor displays the Current Namespace)?

pez12:11:43

Yeah. Evaluate all forms in the file, as well as in all namespaces required and such.

worrelsik12:11:08

Ah, ok, thanks for explaining!

worrelsik12:11:20

And, would it make sense to make the key combo's work in both panels the same, or do they differ on purpose?

worrelsik12:11:34

(I mean the respective key combo's)

pez13:11:54

I think it would make sense to have them resiprocal. So pressing it when in the editor would switch to that namespace in the repl window. And pressing it in the repl-window, would open/reveal the file for the repl window’s namespace.

pez13:11:00

But, having the REPL window “pull” the namespace of the “topmost” file might make sense too, if that was what you meant.

pez13:11:56

Maybe I don’t understand what you want to happen when you press it from the REPL window. However, this: > Sometimes the ctrl-alt-c alt-n works (i.e. changes cursor in the REPL pane) only in the editor pane; sometimes only in the REPL pane. Sounds like a bug.

worrelsik13:11:54

I'm not sure myself yet what I would want to happen 🙂 For sure I had not taken the possibility into account that the editor could be showing yet another file/namespace when one is in the REPL pressing the switch-combo. I guess I'll have to use Calva for some more time while learning clojure.

pez13:11:00

I can recommend learning clojure inside the editors mainly, and skipping the roundtrips to that window. This ClojureScript Podcast episode is very enlightening, I think: https://soundcloud.com/user-959992602/s2-e2-repl-with-stuart-halloway

worrelsik13:11:31

In the 'Calva says' output panel, when I click the 'lock' icon to open it, enabling auto-scroll, auto-scrolling gets disabled again by a click in the output area. If that's a bug, is it in Calva or in VSC?

pez14:11:01

VSC. Wether it’s a bug or a feature, idk. But very annoying.

pez14:11:37

Since you are a new user, I’d like to learn from how you use Calva, so sorry in advance if I sound like an inquisitor.

pez14:11:14

What did you look for in Calva says? Why did you click?

worrelsik14:11:35

Because I'm not sure where to expect output to appear, I click around a lot. So at some point I noticed the locked icon. I remembered from another session that clicking the lock icon enabled auto-scrolling. After clicking to unlock, I happened to want to grab the scrollbar to drag. But I mis-clicked, and saw the status of the lock icon changing. e.g. ctrl-alt-c e does not evaluate a form, ctrl-alt-c v does. Calva says also has a few links in its welcome message, which may be a reason for people to click in it.

pez15:11:59

Thanks, @roger429. This is good information! The result is also available in the hover of the evaluated form. You can bring that hover up via the keyboard also. It’s cmd+k cmd+i on Mac. Maybe ctrl+k ctrl+i on Windows and Linux.