Fork me on GitHub
#calva
<
2020-06-04
>
pez07:06:16

Dear Calva-friends. v2.0.102 just released. Please upgrade.

calva 24
alpox21:06:24

Hi all! Never had a problem with calva before and it always worked smoothely. However, today I wanted to run shadow-cljs for node.js but couldn't get calva to recognize required packages at all. Executing a whole file would use the packages correctly, evaluation of require in the repl and evaluation of the namespace form does however not make anything available in the repl session.

☝️ 4
alpox21:06:23

Apart from that, shadow-cljs node-repl works as expected and requires like (require '["crypto" :as crypto]) makes crypto available which is not the case in for the calva repl

alpox21:06:42

I just wondered if this is some known limitation or if there is a workaround. The setup I tried is exactly just a clone of https://github.com/lambrospetrou/create-shadow-cljs-app

pez05:06:30

I'll try this myself and see what I find. Thanks for reporting!

pez05:06:15

I have the same issue.

pez05:06:24

Also shadow-cljs cljs-repl app work from the terminal...

pez06:06:19

Can you file an issue about this, please?

pez11:06:59

I can't test myself right now, but it might be an issue with newer shadow-cljs. Try using an older version.

pez12:06:08

You can also try with disabling Calva: Enable JS Completions in settings. But with an older version of shadow you can still keep that. Thomas Heller will fix a temp workaround, but for now, those seem to be the options.

alpox15:06:10

@U0ETXRFEW I'm sorry I'm late to reply as I did not ge tto a computer today yet. Thanks a lot for looking into it so fast and find the point of failure! I downgraded shadow-cljs to 2.9.10 and it works smoothely now! I believe an issue in the Calva repository is not necessary as the point of failure lies within shadow-cljs?

pez15:06:21

I'd appreciate am issue anyway. For visibility. Then people can find the workaround as well easier.

alpox15:06:52

Alright, I filed the issue. Thanks again!

pez16:06:10

Thanks! And you are very welcome!