This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-03
Channels
- # beginners (20)
- # boot (407)
- # cider (17)
- # cljs-dev (29)
- # cljsrn (33)
- # clojure (169)
- # clojure-greece (17)
- # clojure-russia (47)
- # clojure-spec (40)
- # clojure-uk (81)
- # clojurescript (64)
- # clr (3)
- # copenhagen-clojurians (3)
- # core-async (1)
- # cursive (28)
- # datomic (26)
- # editors-rus (4)
- # emacs (10)
- # events (1)
- # figwheel (1)
- # funcool (1)
- # hoplon (82)
- # jobs (1)
- # klipse (10)
- # lein-figwheel (26)
- # leiningen (1)
- # off-topic (2)
- # om (153)
- # overtone (2)
- # pedestal (15)
- # proton (1)
- # re-frame (6)
- # ring-swagger (1)
- # rum (1)
- # slack-help (4)
- # untangled (56)
- # vim (24)
- # yada (2)
@bhauman ClojureScript 1.9.293 introduced require
macros that can be called outside of the ns
form
we also replaced the REPL special functions by these in cljs.repl
I'm seeing weird behavior in the Fighweel REPL with ClojureScript 1.9.293 and some require
s
i.e. if I have a ClojureScript dependency in the classpath that is otherwise not used in my Figwheel build, require
fails with this error:
#object[Error Error: goog.require could not find: bidi.bidi]
figwheel$client$file_reloading$figwheel_require (jar:file:/Users/anmonteiro/.m2/repository/figwheel/figwheel/0.5.6/figwheel-0.5.6.jar!/figwheel/client/file_reloading.cljs:187:30)
^ in this case I'm trying to require bidi.bidi
but I don't (yet) have it in any of the project's namespaces
(require '[om.next :as om])
, for example, works just fine (because it's a dependency in some namespaces in the project
@anmonteiro: and this same case works in the regular cljs repl?
Thinking out loud here: Then bidi is going to need to be in the client side dependency map. So the result of calling require will have to compile bidi and update the dependency map, hmmm OK I can see several ways this might fail. I'll take a look.
@bhauman I think you're replicating a lot of stuff from cljs.repl
there's probably something there you also need to replicate but aren't currently?
here's an example: https://github.com/bhauman/lein-figwheel/blob/master/sidecar/src/figwheel_sidecar/repl.clj#L201
this one changed to accomodate for the new stuff, e.g. require
, etc
@bhauman if you're going to rely on internal details maybe you can call private stuff via the var? then everything is updated automatically
e.g. (#'cljs.repl/some-private-fn foo bar baz)