I have problem with krell too 🙂
I don't have a windows machine handy to help you with this particular problem - but this sin't a Krell issue anyway - ClojureScript
Thank you, I'll try to find out.
I follow the tutorial but when write
clj -m cljs.main --install-deps
on windows I get this error
Exception in thread "main" <http://java.io|java.io>.FileNotFoundException: Could not locate ____init.class or __.clj on classpath:
at clojure.lang.RT.load(RT.java:443)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn__5066.invoke(core.clj:5641)
at clojure.core$load.doInvoke(core.clj:5640)
at clojure.core$load_one.invoke(core.clj:5446)
at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
at clojure.core$load_lib.doInvoke(core.clj:5485)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$load_libs.doInvoke(core.clj:5524)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$require.doInvoke(core.clj:5607)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.main$main_opt.invoke(main.clj:315)
at clojure.main$main.doInvoke(main.clj:420)
at clojure.lang.RestFn.invoke(RestFn.java:482)
at clojure.lang.Var.invoke(Var.java:401)
at clojure.lang.AFn.applyToHelper(AFn.java:171)
at clojure.lang.Var.applyTo(Var.java:700)
at clojure.main.main(main.java:37)
I'm trying to port a re-natal app to Krell. I can't work out how to ensure that I see the UI update when I updated a view and the namespace reloads. Using the approach from the Krell Reagent tutorial I'm not getting a UI refresh unless I modify the awesome-project.core ns.
I've tried a few variants on porting the re-natal onreload approach of counter r/atom plus clearing re-frame's subscription cache. No joy. Also tried calling force-reload! manually since the -main isn't a great location for the call.
(def cnt (r/atom 0))
(defn reloader [] @cnt [navigation-screen/container])
(defn force-reload! []
(re-frame/clear-subscription-cache!)
(swap! cnt inc))
(defn ^:export -main [& args]
(re-frame/dispatch-sync [:app/bootstrap])
;(force-reload!)
(r/as-element [reloader]))
But if I modify that file the krell reload process does give the result i'm looking for. Just not sure how.
Related... currently the Krell REPL doesn't signal to the app whether -main is being called to start the app or as part of a reload. That distinction would be handy to avoid "bootstrapping" happening multiple times. It's fixable with additional app state but by rights is dev only concern.
Okay, a simple repro isn't immediately backing me up. It might be something more complicated than I thought. I’ll try again tomorrow