Fork me on GitHub
#cljsrn
<
2021-07-19
>
dnolen12:07:10

@hiskennyness hrm the Krell Reagent example instructions say to run the pod install bit

kennytilton13:07:16

Oh, sorry. I was thrashing, but remembered Krell Reagent working right out of the box, went back to it with no luck. Guessing I cloned afresh and did not follow the instructions the second time.

dnolen13:07:19

Just wanted to make sure the instructions are good

Hugo Bonatto13:07:54

Hello there, has someone failed with this before?

Hugo Bonatto14:07:29

cljs.user=> clojure.lang.ExceptionInfo: Unexpected error during REPL initialization 
#:cljs.repl{:error :init-failed}
        at cljs.repl$repl_STAR_.invokeStatic(repl.cljc:1220)  
        at cljs.repl$repl_STAR_.invoke(repl.cljc:1033)        
        at cljs.cli$repl_opt.invokeStatic(cli.clj:325)        
        at cljs.cli$repl_opt.invoke(cli.clj:312)
        at cljs.cli$default_compile.invokeStatic(cli.clj:534) 
        at cljs.cli$default_compile.invoke(cli.clj:486)       
        at krell.repl$krell_compile.invokeStatic(repl.clj:236)
        at krell.repl$krell_compile.invoke(repl.clj:226)      
        at cljs.cli$compile_opt.invokeStatic(cli.clj:542)     
        at cljs.cli$compile_opt.invoke(cli.clj:540)
        at cljs.cli$main.invokeStatic(cli.clj:703)
        at cljs.cli$main.doInvoke(cli.clj:692)
        at clojure.lang.RestFn.applyTo(RestFn.java:139)       
        at clojure.core$apply.invokeStatic(core.clj:669)      
        at clojure.core$apply.invoke(core.clj:662)
        at cljs.main$_main.invokeStatic(main.clj:65)
        at cljs.main$_main.doInvoke(main.clj:56)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)       
        at clojure.core$apply.invokeStatic(core.clj:667)      
        at clojure.core$apply.invoke(core.clj:662)
        at krell.main$_main.invokeStatic(main.clj:9)
        at krell.main$_main.doInvoke(main.clj:7)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)       
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.core$apply.invokeStatic(core.clj:667)      
        at clojure.main$main_opt.invokeStatic(main.clj:514)
        at clojure.main$main_opt.invoke(main.clj:510)
        at clojure.main$main.invokeStatic(main.clj:664)
        at clojure.main$main.doInvoke(main.clj:616)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.main.main(main.java:40)
Caused by: clojure.lang.ExceptionInfo: ReferenceError: Can't find variable: cljs {:type :js-eval-exception, :error {:status :exception, :value "ReferenceError: Can't find variable: cljs"}, :repl-env #krell.repl.KrellEnv{:options {:port 5001, :watch-dirs ["src"], :connect-timeout 30000, :eval-timeout 30000, :recompile :direct, :output-dir "target", :main rnkrell.core}, :file-index {#object[java.io.File 0x55e75ce0 "/mnt/c/Hugo/vouch/clojurescript-fundamentals/rn-krell/rnkrell/src"] 1626698726990, #object[java.io.File 0x3325f17 "/mnt/c/Hugo/vouch/clojurescript-fundamentals/rn-krell/rnkrell/src/rnkrell"] 1626698726990, #object[java.io.File 0x35e63d26 "/mnt/c/Hugo/vouch/clojurescript-fundamentals/rn-krell/rnkrell/src/rnkrell/core.cljs"] 1626698806465}, :socket #object[clojure.lang.Atom 0x276e5add {:status :ready, :val {:socket #object[java.net.Socket 0x736af6f3 "Socket[addr=/172.28.16.1,port=60688,localport=5001]"], :in #object[java.io.BufferedReader 0x322c70bc "java.io.BufferedReader@322c70bc"], :out #object[java.io.BufferedWriter 0x3b24fb6f "java.io.BufferedWriter@3b24fb6f"]}}], :state #object[clojure.lang.Atom 0x6ec9f664 {:status :ready, :val {:watcher #object[io.methvin.watcher.DirectoryWatcher 0x4a304820 "io.methvin.watcher.DirectoryWatcher@4a304820"], :done true}}]}, :form (set! cljs.core/*print-namespace-maps* true), :js "(cljs.core._STAR_print_namespace_maps_STAR_ = true)"}
        at cljs.repl$evaluate_form.invokeStatic(repl.cljc:577)
        at cljs.repl$evaluate_form.invoke(repl.cljc:498)
        at cljs.repl$repl_STAR_.invokeStatic(repl.cljc:1129)
        ... 31 more
Done in 218.08s.

dnolen14:07:44

@hugo147 it just means the REPL was able to connect - but for some reason the environment wasn't prepared - so you cannot proceed

dnolen14:07:55

i.e. cljs.core was not loaded

dnolen14:07:11

to be clear though the REPL is just extra - Krell works w/o a REPL

dnolen14:07:27

so if you can't load your app at all - the REPL won't work anyway

Hugo Bonatto14:07:43

I see thanks for the explanation

dnolen14:07:56

so first step is get your app to load w/o errors

dnolen14:07:07

once that works the REPL bit should just fall into place