Closed kenrestivo closed 10 years ago
I had my src path set to something different, figured that might have something to do with it, but changing it back to src does not make the problem go away.
Minimal breaking test case is this:
diff --git a/weasel-example/project.clj b/weasel-example/project.clj
index 71cdc70..8b55fdc 100644
--- a/weasel-example/project.clj
+++ b/weasel-example/project.clj
@@ -6,7 +6,7 @@
:distribution :repo}
:dependencies [[org.clojure/clojure "1.5.1"]
- [org.clojure/clojurescript "0.0-2138"]
+ [org.clojure/clojurescript "0.0-2173"]
[weasel "0.1.0"]]
Then fire up a repl in the example project, and execute:
(require 'weasel.repl.websocket)
(require 'cemerick.piggieback)
(cemerick.piggieback/cljs-repl :repl-env
(weasel.repl.websocket/repl-env :ip "0.0.0.0" :port 9001))
and enjoy the fireworks.
Hey, thanks for the thorough bug report! This issue looks similar to this one in Austin: cemerick/austin#55. There's a workaround I can patch in (and that seems to work okay), but I'd like to give it a little more thought first. BTW, weasel 0.1.0 should work as-is with Clojurescript master because of http://dev.clojure.org/jira/browse/CLJS-770.
@tomjakubowski Note that if you're using a ClojureScript compiler environment, you will need to change your usage of cljs.env/default-compiler-env
so that users' library-related configuration is passed through (e.g. :libs
, :foreign-libs
, etc).
I tried to upgrade to CLJS 2173 because that is required by the latest OM 0.5.1 which is required because it has stuff I wanted to try.
Weasel breaks with CLJS 2173.
Specifically, a form like this:
breaks like this:
It seems cljs-dependencies itself is broken in CLJS 2173. Not only does this fail as above with an NPE:
But this also fails with the same NPE:
Backing off to CLJS 2156 makes weasel work again.
This is about where I had to pull myself out of the rabbit hole.