boot-clj / boot-cljs

Boot task to compile ClojureScript programs.
Eclipse Public License 1.0
176 stars 40 forks source link

reagent 0.5.1 is broken under 1.7.48 #98

Closed antonyshchenko closed 9 years ago

antonyshchenko commented 9 years ago

I get

java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Can't dynamically bind non-dynamic var: clojure.tools.reader/resolve-symbol
        java.lang.IllegalStateException: Can't dynamically bind non-dynamic var: clojure.tools.reader/resolve-symbol
                                                           ...
                             clojure.core/push-thread-bindings       core.clj: 1815
cljs.analyzer$forms_seq_STAR_$forms_seq___2094$fn__2095.invoke  analyzer.cljc: 2597
                                                           ...
                                              clojure.core/seq       core.clj:  137
                        cljs.analyzer$parse_ns$fn__2110.invoke  analyzer.cljc: 2677
                                 cljs.analyzer$parse_ns.invoke  analyzer.cljc: 2660
                                 cljs.analyzer$parse_ns.invoke  analyzer.cljc: 2651
                    cljs.compiler$compile_root$fn__3381.invoke  compiler.cljc: 1284
                                           clojure.core/map/fn       core.clj: 2624
                                                           ...
                                              clojure.core/seq       core.clj:  137
                                           clojure.core/map/fn       core.clj: 2616
                                                           ...
                                              clojure.core/seq       core.clj:  137
                             clojure.core.protocols/seq-reduce  protocols.clj:   30
                                     clojure.core.protocols/fn  protocols.clj:  101
                                   clojure.core.protocols/fn/G  protocols.clj:   13
                                           clojure.core/reduce       core.clj: 6519
                               cljs.js_deps$build_index.invoke   js_deps.cljc:  128
                          cljs.js_deps$dependency_order.invoke   js_deps.cljc:  168
                             cljs.compiler$compile_root.invoke  compiler.cljc: 1283
                                      cljs.closure/compile-dir    closure.clj:  438
                                      cljs.closure/eval3746/fn    closure.clj:  478
                                    cljs.closure/eval3698/fn/G    closure.clj:  383
                                      cljs.closure/eval3759/fn    closure.clj:  492
                                    cljs.closure/eval3698/fn/G    closure.clj:  383
                     cljs.build.api/inputs/reify/compile-input        api.clj:  182
                                           clojure.core/map/fn       core.clj: 2624
                                                           ...
                                              clojure.core/seq       core.clj:  137
                                            clojure.core/apply       core.clj:  630
                                           clojure.core/mapcat       core.clj: 2660
                                                           ...
                          cljs.build.api/inputs/reify/-compile        api.clj:  186
                                            cljs.closure/build    closure.clj: 1671
                                          cljs.build.api/build        api.clj:  219
                         adzerk.boot-cljs.impl/compile-cljs/fn       impl.clj:   63
                            adzerk.boot-cljs.impl/compile-cljs       impl.clj:   62
                                                           ...
                                            clojure.core/apply       core.clj:  630
                                         boot.pod/eval-fn-call        pod.clj:  184
                                             boot.pod/call-in*        pod.clj:  191
                                                           ...
                                             boot.pod/call-in*        pod.clj:  194
                                      adzerk.boot-cljs/compile  boot_cljs.clj:   75
                                 adzerk.boot-cljs/compile-1/fn  boot_cljs.clj:  138
                           clojure.core/binding-conveyor-fn/fn       core.clj: 1916

My build.boot:

(set-env!
 :source-paths   #{"src/cljs" "src/clj"}
 :resource-paths #{"resources"}
 :dependencies '[[org.clojure/clojure "1.7.0"]
                 [adzerk/boot-cljs        "1.7.48-3" :scope "test"]
                 [adzerk/boot-reload      "0.3.2"    :scope "test"]
                 [environ                 "1.0.0"]
                 [danielsz/boot-environ   "0.0.3"]
                 ; server
                 [org.danielsz/system     "0.1.9"]
                 [ring/ring-defaults      "0.1.5"]
                 [http-kit                "2.1.19"]
                 [compojure               "1.3.4"]
                 [org.clojure/tools.nrepl "0.2.10"]
                 ; client
                 [reagent                 "0.5.1"]])

(require
 '[adzerk.boot-cljs      :refer [cljs]]
 '[adzerk.boot-reload    :refer [reload]]
 '[reloaded.repl         :refer [init start stop go reset]]
 '[myapp.systems       :refer [dev-system prod-system]]
 '[danielsz.boot-environ :refer [environ]]
 '[system.boot           :refer [system run]])

(deftask dev
  "Run a restartable system in the Repl"
  []
  (comp
   (environ :env {:http-port 3000})
   (watch :verbose true)
   (system :sys #'dev-system :auto-start true :hot-reload true :files ["handler.clj"])
   (reload)
   (cljs :source-map true)
   (repl :server true)))

Ver. 0.0-2814-4 works with reagent 0.5.0

antonyshchenko commented 9 years ago

Works with 1.7.48-5-SNAPSHOT.