jarohen / chord

A library designed to bridge the gap between the triad of CLJ/CLJS, web-sockets and core.async.
439 stars 40 forks source link

Including chord triggers core.typed initialization error #48

Closed JvJ closed 7 years ago

JvJ commented 8 years ago

When trying to use core.typed, I get the following initialization error:

CompilerException java.io.FileNotFoundException: Could not locate cljs/env__init.class or cljs/env.clj on classpath., compiling:(cljs/jvm/tools/analyzer.clj:1:1)

I've fiddled with my project.clj file, and I by process of elimination, I determined that the error only occurs when I include a dependency to jarhohen/chord.

Do you know what is causing this?

JvJ commented 8 years ago

Update to this: including org.clojure/jvm.tools.analyzer in my dependencies resolves the issue. Maybe this should be documented.

jarohen commented 8 years ago

Hi Kaylen, thanks for the issue report! Chord doesn't have a direct dependency on tools.analyzer, so I'd like to get to the bottom of what's causing this before putting a recommendation in the README.

@bronsa: any idea what could be causing this?

James

Bronsa commented 8 years ago

That error doesn't rever to tools.analyzer but to the jvm.tools.analyzer library, which is an older analyzer written by the core.typed author. Not really sure why it's getting pulled in, I'm guessing it's still used by the cljs port of core.typed?

jarohen commented 8 years ago

Thanks @Bronsa :)

@JvJ - could you attach the output of lein deps :tree before and after adding the Chord dependency?

Cheers!