cemerick / austin

The ClojureScript browser-REPL rebuilt stronger, faster, easier.
510 stars 31 forks source link

Mention that cljs sources need to be in project :source-paths #34

Closed weavejester closed 10 years ago

weavejester commented 10 years ago

Austin fails to load libraries unless the ClojureScript source directory is in the top-level :source-paths property as well as the :cljsbuild :source-paths property.

This took me a while to figure out, so might be worth mentioning in the README.

weavejester commented 10 years ago

Pretty sure this is the issue now. A dirty target directory made me think I was incorrect about the :source-paths, but now it's more-or-less confirmed.

cemerick commented 10 years ago

Yes, you're correct about this, though my experience has largely been that having your CLJS root(s) under :source-paths (and/or :test-source-paths) is a reasonable assumption (e.g. all CLJS REPLs and a lot of tooling assumes that ClojureScript files are resource-able, on the classpath, etc).

Anyway, I'll make sure to add a note about this in the README before the next release. The browser-connected application sample project.clj already demonstrates this, so I'll assume that that side of the house is OK.