[CLJS-81] cljsc :externs flag fails when opts map not quoted Created: 23/Sep/11 Updated: 02/Jun/12
For example, in the samples/hello-js directory, running the following works fine:
However, the following fails:
With the error message "Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.Symbol".
Fully qualifying the path to externs.js seems to work, BUT it actually fails by placing an exception message into the hello-externs.js file.
|Comment by Brian Taylor [ 02/Jun/12 4:48 PM ]|
I think your shell (bash?) may be treating the [...] portion of that expression as a character class and substituting matches from the file system. I'm not aware of any method for avoiding this other than changing shells to one that won't try to expand the [...].
Perhaps we should change the documentation examples so that they always quote the opts map. Maybe that would help avoid confusion.