Hi Boris, I usually get this error when the file can't be found via Leiningen's classpath rules. Looks like the file you want as a preamble lives in your project under "src/js/highlight.js". Then your preamble should look like this "js/highlight.js" since "src" is included in Leiningen's default classpath.
Roman. On Friday, January 10, 2014 11:42:34 PM UTC+1, Boris Kourtoukov wrote: > I am getting : > > java.lang.IllegalArgumentException: No implementation of method: :make-reader > of protocol: #'clojure.java.io/IOFactory found for class: nil > > When I try to compile this project.clj: > > (defproject snip "1" > :description "snip" > :url "http://TBA.TBA/" > :dependencies [ > [org.clojure/clojure "1.6.0-alpha2"] > [org.clojure/clojurescript "0.0-2138"] > [enfocus "2.0.2"] > [org.clojure/core.async "0.1.267.0-0d7780-alpha"] > [com.cemerick/url "0.1.0"]] > :plugins [[lein-cljsbuild "1.0.1"]] > :cljsbuild { > :builds [{:source-paths ["src/cljs"] > :compiler { > :preamble ["src/js/highlight.js"] > :output-to "assets/js/site.js" > :output-dir "assets/js/src" > :optimizations :advanced > :pretty-print false > :source-map "assets/js/site.js.map" > }}]}) > > Everything appears to work fine with :preamble commented out. > > Thanks > > -Boris -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
