Skip to content

Commit

Permalink
Fix compability issue with newer piggieback version when doing "exec".
Browse files Browse the repository at this point in the history
There was an issue when trying to start browser-connected repl:
 [{:type java.lang.IllegalArgumentException
   :message "No value supplied for key: cemerick.austin.DelegatingExecEnv@1d1e650e"
   :at [clojure.lang.PersistentHashMap create "PersistentHashMap.java" 77]}]
 :trace
 [[clojure.lang.PersistentHashMap create "PersistentHashMap.java" 77]
  [cemerick.piggieback$cljs_repl invokeStatic "piggieback.clj" 212]
  [cemerick.piggieback$cljs_repl doInvoke "piggieback.clj" 212]
  [clojure.lang.RestFn applyTo "RestFn.java" 139]
  [clojure.core$apply invokeStatic "core.clj" 650]
  [clojure.core$apply invoke "core.clj" 641]
  [cemerick.austin.repls$cljs_repl invokeStatic "repls.clj" 49]
  [cemerick.austin.repls$cljs_repl doInvoke "repls.clj" 43]

See cemerick#75.
  • Loading branch information
jumarko committed May 11, 2017
1 parent 424bca3 commit 2302a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/cemerick/austin/repls.clj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ on load. See `browser-repl-env` docs for more."
environment (i.e. whether nREPL is being used or not, respectively)."
[repl-env & options]
(if (thread-bound? #'nrepl-eval/*msg*)
(apply pb/cljs-repl :repl-env repl-env options)
(apply pb/cljs-repl repl-env options)
(apply cljs.repl/repl repl-env options)))

(defn exec
Expand Down

0 comments on commit 2302a3e

Please sign in to comment.