Fork me on GitHub
#cljsrn
<
2020-05-02
>
metehan00:05:21

I have problem with krell too 🙂

metehan00:05:43

I follow the tutorial but when write

clj -m cljs.main --install-deps
on windows I get this error
Exception in thread "main" .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)

dnolen15:05:06

I don't have a windows machine handy to help you with this particular problem - but this sin't a Krell issue anyway - ClojureScript

metehan23:05:32

Thank you, I'll try to find out.

Oliver George12:05:22

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.

Oliver George12:05:57

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]))

Oliver George12:05:37

But if I modify that file the krell reload process does give the result i'm looking for. Just not sure how.

Oliver George12:05:06

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.

Oliver George13:05:37

Okay, a simple repro isn't immediately backing me up. It might be something more complicated than I thought. I’ll try again tomorrow

👍 4