Fork me on GitHub
#calva
<
2022-03-19
>
pinkfrog12:03:31

Is it possible to jump to definition with Calva in CLJS. For example, jump to definition of glog/getLogger in this picture: ?

pez13:03:23

Not to JS sources, afaik.

pinkfrog13:03:21

So during normal dev, how do we know what functions to call?

pez13:03:32

It depends on the library, but I usually have goog docs in some browser tab. And you do have completions. Which helps in knowing what to search for in the docs-

pinkfrog13:03:48

Yup. Great to have the completion

pez14:03:08

I wish it would complete the ”namespace”, though.

pinkfrog01:03:30

Ultimately which tooling gives the completion candidates?

pez09:03:14

Suitable, iirc.

pinkfrog08:04:55

Hi Pez. How did you setup the tooling.

pinkfrog08:04:03

On my side I didn’t get the js completions.

pinkfrog08:04:13

I guess i shall do something to customize the clj-suitable.

pez08:04:18

Calva has a setting for it. Iirc it should be default on, but maybe I am remembering that wrong.

pinkfrog09:04:22

I already turned the setting on.

pez09:04:26

That should be enough. I don't do anything else than that. Are you injecting the dependencies Calva needs when you start the REPL?

pez09:04:11

Yes, I am most often using shadow-cljs. Probably why I only get this partially working.

pinkfrog09:04:34

I use shadowcljs but can nothing work on completions.

pinkfrog12:04:44

The runtime is on react native and does not work. However, on browser, the completion works fine and I shall do nothing.

pez15:04:31

I haven't tried in React Native in a while, maybe there is something about that runtime that stops it from working. I'll let you know if I get around to test it.

pinkfrog15:04:53

Really appreciate this!

rayat22:03:39

👋 Hello, everyone. New clj programmer here, but experienced with vsc extension building and TS. Love calva, and paredit has been knocking my socks off everytime I get it right. I've been working on implementing https://github.com/BetterThanTomorrow/calva/issues/610. I've opened https://github.com/BetterThanTomorrow/calva/pull/1606 that anyone is free to look around in. Here's https://19722-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.257-pull-1606-36e500ab.vsix. > Unrelated, damn do I miss slurp/barf in other languages, kept trying to use it in TS for this. I've been trying to find extensions that do something like this elsewhere, but to no avail 😞 . Lmk if anyone has any ideas on existing work in this area!

👋 1
calva 1
🎉 3
partyparrot 1
rayat23:03:48

I'm working right now on https://github.com/BetterThanTomorrow/calva/issues/1607 - which was @pez’s suggestion to cleanup some of the API around selections/cursors - before I go back to properly and cleanly start work on the multi cursor thing. Will reply with a draft PR when opened! Excited to tackle these. Very grateful for the high-enthusiasm and immediate correspondence from @pez - it made me feel 100000x more motivated. Often I contemplate working on something but get the impression my PR won't be looked at for months or given much iterative feedback even so - this is totally within the maintainer's right, but def is not as motivating. ❤️

❤️ 4
calva 2
pez06:03:05

This PR looks like it is soon good to go. I suggest undrafting it.

rayat19:03:24

Any chance you could take a look at https://github.com/BetterThanTomorrow/calva/issues/1607, @pez? I know you're busy and I think it might be your weekend anyways, but a yes or no on some of them might help us/me in the long run with this work! Appreciate it either way!