Hi all,
I'm trying to attach weasel (and thus piggieback) to a project that's been retrofitted with chestnut. When I try to kick weasel off, though, piggieback is fighting back with the following REPL stacktrace:
java.lang.IllegalStateException: Can't change/establish root binding of: *cljs-repl-options* with set
...
cemerick.piggieback/cljs-repl piggieback.clj: 177
...
furthermore.dev/browser-repl dev.clj: 11
furthermore.server/eval15091 form-init2477468269680286446.clj: 1
...
clojure.core/eval core.clj: 3076The code I'm executing to get to this:
(defn browser-repl []
(let [repl-env (weasel/repl-env :ip "0.0.0.0" :port 9001)]
(piggieback/cljs-repl :repl-env repl-env) ;; <—— This is dev.clj:11 from the stacktrace
(piggieback/cljs-eval repl-env '(in-ns 'furthermore.core) {})))
This was lifted almost verbatin (except the namespace, of course) from chestnut.
I've tried a freshly created chestnut app (with both current and snapshot) and the same error occurs when (browser-repl) is called.
Any help would be greatly appreciated.
Thanks!
--
Akiva