This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-04
Channels
- # announcements (3)
- # babashka (14)
- # beginners (151)
- # calva (14)
- # cider (9)
- # clj-kondo (24)
- # cljdoc (12)
- # cljs-dev (195)
- # cljsjs (3)
- # cljsrn (13)
- # clojars (12)
- # clojure (234)
- # clojure-dev (3)
- # clojure-europe (9)
- # clojure-greece (1)
- # clojure-italy (2)
- # clojure-japan (4)
- # clojure-nl (4)
- # clojure-spec (89)
- # clojure-taiwan (1)
- # clojure-uk (16)
- # clojuredesign-podcast (2)
- # clojurescript (17)
- # conjure (11)
- # core-async (4)
- # core-typed (31)
- # cursive (9)
- # datomic (8)
- # emacs (17)
- # figwheel (1)
- # fulcro (5)
- # ghostwheel (42)
- # graphql (3)
- # hugsql (5)
- # jackdaw (3)
- # jobs-discuss (93)
- # joker (4)
- # meander (6)
- # mount (1)
- # off-topic (23)
- # pathom (10)
- # re-frame (23)
- # reitit (7)
- # remote-jobs (18)
- # shadow-cljs (153)
- # spacemacs (24)
- # sql (30)
- # tools-deps (14)
- # vim (12)
- # xtdb (1)
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.
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
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
I can't test myself right now, but it might be an issue with newer shadow-cljs. Try using an older version.
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.
@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?