This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-04
Channels
- # announcements (7)
- # beginners (37)
- # boot (6)
- # calva (13)
- # cider (13)
- # cljdoc (52)
- # cljs-dev (9)
- # clojure (117)
- # clojure-europe (3)
- # clojure-italy (12)
- # clojure-nl (21)
- # clojure-russia (8)
- # clojure-spec (77)
- # clojure-uk (20)
- # clojurescript (142)
- # community-development (6)
- # cursive (5)
- # datomic (13)
- # emacs (9)
- # figwheel-main (20)
- # fulcro (33)
- # graphql (11)
- # instaparse (6)
- # klipse (1)
- # off-topic (7)
- # om (8)
- # quil (7)
- # re-frame (11)
- # reagent (39)
- # reitit (10)
- # shadow-cljs (36)
- # spacemacs (3)
- # test-check (3)
- # tools-deps (83)
- # utah-clojurians (31)
- # vim (14)
I'm having a strange problem with my projects where figwheel main never gives me a cljs repl
I thought it was related with Cider but the same happens if I do it from the terminal
everything actually works otherwise, don't see errors in the browser console or the terminal itself, but I just don't get a cljs repl
any idea how to debug that kind of behaviour?
I wonder if it's related to these warnings
[Figwheel] Compile Warning: var: rewrite-clj.reader/whitespace? is not public resources/public/cljs-out/dev/rewrite_clj/parser/core.cljs line:149 column:10
[Figwheel] Compile Warning: No such namespace: mranderson048.re-frame.v0v10v2.re-frame.db, could not locate mranderson048/re_frame/v0v10v2/re_frame/db.cljs, mranderson048/re_frame/v0v10v2/re_frame/db.cljc, or JavaScript source providing "mranderson048.re-frame.v0v10v2.re-frame.db" (Please check that namespaces with dashes use underscores in the ClojureScript file name) resources/public/cljs-out/dev/day8/re_frame_10x.cljs line:238 column:61
[Figwheel] Compile Warning: Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.db/app-db resources/public/cljs-out/dev/day8/re_frame_10x.cljs line:238 column:61
[Figwheel] Compile Warning: No such namespace: mranderson048.re-frame.v0v10v2.re-frame.db, could not locate mranderson048/re_frame/v0v10v2/re_frame/db.cljs, mranderson048/re_frame/v0v10v2/re_frame/db.cljc, or JavaScript source providing "mranderson048.re-frame.v0v10v2.re-frame.db" (Please check that namespaces with dashes use underscores in the ClojureScript file name) resources/public/cljs-out/dev/day8/re_frame_10x.cljs line:238 column:61
[Figwheel] Compile Warning: Use of undeclared Var mranderson048.re-frame.v0v10v2.re-frame.db/app-db resources/public/cljs-out/dev/day8/re_frame_10x.cljs line:238 column:61
[Figwheel] Successfully compiled build dev to "resources/public/cljs-out/dev-main.js" in 17.733 seconds.
it should not be though the js is still compiled correctly
and everything still works
even re-frame 10x
@andrea.crotti How are you starting the CLJS REPL? Are you sure the browser is connected? (try refreshing the browser, you don't get the REPL prompt until a browser connects)
yeah the browser is definitively connected
I even see things like
[goog.net.WebSocket] Opening the WebSocket on
console.js:203 [goog.net.WebSocket] WebSocket opened on
console.js:203 [Figwheel REPL] Session ID: fab1f704-5c64-45ed-9db2-2858dc1b8c8c
console.js:203 [Figwheel REPL] Session Name: Stephan
launching figwheel both with Cider and with lein trampoline run -m figwheel.main -b dev -r
directly
so well in general everything was working perfectly fine last week, I can't find what changed to cause it not work anymore
I thought it was something with my other machines but it happens with 2 different projects on 2 different machines now 😮 I even cleared my lein/profiles.clj just in case
this is really weird, I even went back in the history in the repo and it still doesn't work
Maybe try with the example project https://github.com/bhauman/flappy-bird-demo-new
I did and that works fine 😄
which is why I'm even more confused
Still wrestling with that deps working in build but not test contexts, created an issue https://github.com/bhauman/figwheel-main/issues/148 and https://github.com/eccentric-j/minirepro-fig-test-deps as minimal reproduction repo