Created
May 4, 2012 15:51
-
-
Save michaelsbradleyjr/2595668 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns ncljsc | |
(:require [cljs.closure :as closure])) | |
(def comp-options {}) | |
(def deps-options {}) | |
(def optm-options {:optimizations :advanced :pretty-print true}) | |
(defn build | |
[source] | |
;;(closure/optimize optm-options (closure/add-dependencies deps-options (closure/-compile source comp-options))) | |
;;(closure/add-dependencies deps-options (closure/-compile source comp-options)) | |
(closure/add-dependencies {} "goog.provide('test.app');\ngoog.require('cljs.core');")) | |
;;(closure/-compile source comp-options) | |
(comment | |
"I'm getting the following error when invoking the build function:" | |
;;;;;;;;;;;;;;;;;;;;;;; error ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
"[Error: Error running instance method | |
java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
Caused by: java.lang.IllegalArgumentException: No implementation of method: :make-reader of protocol: #'clojure.java.io/IOFactory found for class: nil | |
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:527) | |
at clojure.java.io$fn__8239$G__8234__8246.invoke(io.clj:73) | |
at clojure.java.io$reader.doInvoke(io.clj:106) | |
at clojure.lang.RestFn.invoke(RestFn.java:410) | |
at cljs.closure$goog_dependencies_STAR_.invoke(closure.clj:508) | |
at clojure.lang.AFn.applyToHelper(AFn.java:159) | |
at clojure.lang.AFn.applyTo(AFn.java:151) | |
at clojure.core$apply.invoke(core.clj:601) | |
at clojure.core$memoize$fn__4921.doInvoke(core.clj:5620) | |
at clojure.lang.RestFn.invoke(RestFn.java:397) | |
at cljs.closure$js_dependency_index.invoke(closure.clj:525) | |
at cljs.closure$cljs_dependencies.invoke(closure.clj:571) | |
at cljs.closure$add_dependencies.doInvoke(closure.clj:605) | |
at clojure.lang.RestFn.invoke(RestFn.java:423) | |
at ncljsc$build.invoke(Unknown Source) | |
at clojure.lang.Var.invoke(Var.java:415) | |
... 4 more | |
]" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment