Fork me on GitHub
#calva
<
2020-01-22
>
ullrich12:01:37

I was wondering wether Calva supports a Find Usages like feature, or if it is planned on the roadmap somewhere? I’ve got a few team members who are considering switching from Cursive but that’s the one thing to hold them back most. For context: https://cursive-ide.com/userguide/navigation.html#show-usages

pez12:01:54

Calva currently does not have that. It's tricky to support for ClojureScript with the dynamic tools we use.

pez12:01:30

VS Code has stellar multi-file search, which can somewhat compensate, but of course is much cruder.

ullrich12:01:13

Thanks. Does it make sense for me to open a feature request issue for this on GitHub?

pez13:01:07

@ullrich.schaefer it certainly does. Check if there is one first, though. 😃

👍 4
✌️ 4
ullrich13:01:32

Did that already 😄

pez13:01:15

Cool. Strange. 😃

pez13:01:22

Yeah. I changed the name now, inspired by your comment.

ullrich13:01:59

🙏 thanks @pez I’ll keep on sponsoring you in the meantime 😄

😍 4
pez13:01:53

> I’ll keep on sponsoring you in the meantime 😄 ❤️❤️❤️

jpettersson16:01:15

Hey! Thank's @pez (and all the contributors) for your excellent work on Calva. I'm trying to use it as my dedicated Clojure/ClojureScript editor now (coming from Emacs/CIDER). As a newcomer to Calva, I have two questions:

jpettersson16:01:24

My project is currently using boot which is not direcly supported by Calva (and I've noticed some rough edges when connecting to my REPL). I want to migrate away from boot for several reasons. From the perspective of Calva, which build tool is most plug-and-play and preferred for future Calva features? Leiningen or Clojure CLI?

jpettersson16:01:44

Is there any way to get compilation errors in the REPL window instead of in the VSCode output panel? The VSCode output panel is a strange beast to me. First, it can't be placed in the same way as other windows and must be docked to the bottom or right side of the screen, taking up a lot of screen real-estate. Secondly, colors and formatting support seem very basic. My compilation errors appear as single-line unformatted text. I wish I could get them displayed in the nice Calva REPL instead (and not having to keep the output panel open at all)

gerred17:01:00

tools.deps has been the best experience with vscode for me.

gerred17:01:06

@pez it's been a while because I've been off in Go land, how are things looking for REBL + Calva?

pez19:01:39

Welcome, @jonathan.anders.pette! I hope you will find Calva useful. Not sure what problems you have with the REPL and Boot, but in theory, as long as you get the dependencies right you should be able to connect w/o any added problems compared to other project types. But I haven't really tried it so maybe I am missing something.

jpettersson20:01:56

The issues I have seem to be related to mismatching dependencies, it's not a blocker though. I just got accustomed to how nicely Cava's jack-in works in one of my smaller deps.edn project

pez19:01:19

Calva is equally on friendly footing with Leiningen and Clojure CLI/tools.deps. It will rather be your project that will need one or the other or both. See this recent thread on ClojureVerse on the subject, if you do not already have a full grasp: https://clojureverse.org/t/is-there-a-sales-pitch-for-switching-to-deps-edn-from-lein-in-2020/5367

jpettersson20:01:42

Sounds good! Thanks for the link, I didn't see that one

pez19:01:04

Currently there is no way to direct inline-generated exceptions to the REPL window. I'd welcome an issue about that. The closest you get is to evaluate again but send the eval to the REPL window. It will give you a nice clickable stack stack trace. (But maybe you already knew that.)

jpettersson20:01:29

Ah, I didn't realize the difference in error output between different eval functions. I tried triggering a few stacktraces to appear in the REPL window and they look great! I use the "Eval on save" feature (I'm guessing it's the same as "load (evaluate) the active file". Is there any existing way of getting that output to the REPL window instead of the output panel?

pez19:01:21

Welcome back @gerred! So far this is the Calva+REBL status: https://calva.readthedocs.io/en/latest/rebl.html

gerred19:01:55

ah ha that nrebl bit is key

pez19:01:30

Also, since you last were here, my Calva work have become sponsorable: https://github.com/sponsors/PEZ (Mentioning it since you once suggested I should fix that.)

gerred19:01:42

🔥 on it!

❤️ 4
David Brear19:01:11

and well worth it 🙂

David Brear19:01:16

calva is awesome

jpettersson20:01:29

Ah, I didn't realize the difference in error output between different eval functions. I tried triggering a few stacktraces to appear in the REPL window and they look great! I use the "Eval on save" feature (I'm guessing it's the same as "load (evaluate) the active file". Is there any existing way of getting that output to the REPL window instead of the output panel?

pez21:01:28

Hmmm, there is a command Load Current Namespace in REPL Window, but it doesn't generate the stack trace... (I'd appreciate an issue about that). The closest you get is to look at the error message in the output pane and then evaluate the top level form in the REPL window for the location reported.

jpettersson21:01:09

I've been digging around the code to try to understand the different eval modes (REPL window vs inline). I'll create an issue outlining the feature and perhaps some suggestion / PR if I can get to it

❤️ 4