Fork me on GitHub
#calva
<
2020-09-06
>
jahenderson77710:09:50

Has there been a thought about making use of the VsCode Notebook API with Calva? I have looked at clojupyter but it doesn’t provide the full blooded Clojure editing experience that calva/paredit does. https://code.visualstudio.com/api/extension-guides/notebook

joe.stricker13:09:50

Hi, does Calva support intellisense for the js/ namespace?

pez14:09:32

Yes if you have the Enable JSCompletion setting on, it should.

joe.stricker14:09:06

That flag is on by default. I am not getting any completion for js. Using shadow-cljs btw. Any hints as to what the issue could be?

pez14:09:41

Not really. All I find when searching for it is this: https://github.com/rksm/clj-suitable/issues/2#issuecomment-578447046 which says to get in contact with me... But checking that setup example for CIDER it looks to me like it should work with Calva as well... Do you see any error messages anywhere?

joe.stricker14:09:32

no erros, just shows "no suggestions"

joe.stricker14:09:54

I had a similar issue when I was using emacs/cider. A change in the shadow-cljs API seems to have broken suitable.

joe.stricker14:09:22

Could this be causing the same issue also in Calva?

pez15:09:57

Calva i mainly just using cider-nrepl, so yes. Too bad, but with all those bright minds involved, I think a solution will be crafted.

pez14:09:09

@jahenderson777 I haven't looked deep enough at the Notebook API to tell if it would enable us to have Calva Paredit enabled there. But that would be cool.

beders17:09:16

hello there. I"m trying to set up a complete clojure beginner with VSCode and Calva but i'm already failing at basic tasks πŸ™‚ (I'm using Cursive in my day to day) It would be really helpful if the calva documentation had minimal working examples of project.clj and/or deps.edn That would make first time users and clojure beginners more successful right out of the gate. For example: I have this in my deps.edn: {:paths ["src"]} but can't jack-in - the expectation being that a REPL would fire up. Just a Sunday morning suggestions πŸ™‚

beders17:09:51

it looks like the minimal viable deps.edn is:

{:paths ["src"]
 :aliases {}}
jack-in won't work without the empty aliases map

pez18:09:09

Please file an issue. Or two. One about the docs and one about the requirement on aliases, which I think is not necessary.

beders22:09:21

thanks, also became a sponsor. Keep up the great work!

brandon.ringe23:09:35

I've added you to the Calva Fans section of the readme πŸŽ‰. (Will remove though if you don't want to be on there). Thanks again!