Last active
August 29, 2015 14:03
-
-
Save BorisKourt/7b1434ec490cfa6c8397 to your computer and use it in GitHub Desktop.
Poissible clsj.nodejs error
This file contains 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
WARNING: JavaScript file found on classpath for library `cljs.nodejs`, but does not contain a corresponding `goog.provide` declaration: jar:file:/Users/boriskourt/.m2/repository/org/clojure/clojurescript/0.0-2268/clojurescript-0.0-2268.jar!/cljs/nodejs.js | |
WARNING: JavaScript file found on classpath for library `cljs.nodejs`, but does not contain a corresponding `goog.provide` declaration: jar:file:/Users/boriskourt/.m2/repository/org/clojure/clojurescript/0.0-2268/clojurescript-0.0-2268.jar!/cljs/nodejs.js | |
Jul 09, 2014 2:16:05 PM com.google.javascript.jscomp.LoggerErrorManager println | |
SEVERE: /Users/boriskourt/Development/mdgspet/hardware/tessel/target/mdgspet/tessel/main.js:2: ERROR - Parse error. Semi-colon expected | |
WARNING: JavaScript file found on classpath for library `cljs.nodejs`, but does not contain a corresponding `goog.provide` declaration: jar:file:/Users/boriskourt/.m2/repository/org/clojure/clojurescript/0.0-2268/clojurescript-0.0-2268.jar!/cljs/nodejs.js | |
^ | |
Jul 09, 2014 2:16:05 PM com.google.javascript.jscomp.LoggerErrorManager printSummary | |
WARNING: 1 error(s), 0 warning(s) | |
ERROR: JSC_PARSE_ERROR. Parse error. Semi-colon expected at /Users/boriskourt/Development/mdgspet/hardware/tessel/target/mdgspet/tessel/main.js line 2 : 20 |
This file contains 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 mdgspet.tessel.main | |
(:require [cljs.nodejs :as njs])) | |
(njs/enable-util-print!) | |
(def tessel (njs/require "tessel")) | |
(defn set-interval [d f] | |
(js/setInterval f d)) | |
(defn -main [& args] | |
(let [led1 (-> (aget (.. tessel -led) 0) (.output 1)) | |
led2 (-> (aget (.. tessel -led) 1) (.output 1))] | |
(set-interval 100 #((println "printing") | |
(. led1 toggle) | |
(. led2 toggle))))) | |
(set! *main-cli-fn* -main) |
This file contains 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
(defproject mdgspet.tessel "0.1.1" | |
:description "Tessel BLE Module" | |
:plugins [[lein-cljsbuild "1.0.3"] | |
[lein-npm "0.4.0"]] | |
:dependencies [[org.clojure/clojure "1.6.0"] | |
[org.clojure/clojurescript "0.0-2268" | |
:exclusions [org.apache.ant/ant]] | |
[com.cemerick/piggieback "0.1.3"]] | |
:source-paths ["src"] | |
:npm-root "resources/public/js" | |
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]} | |
:cljsbuild { | |
:builds [{ | |
:source-paths ["src/cljs"] | |
:compiler { | |
:output-to "main.js" | |
:optimizations :advanced | |
:target :nodejs | |
:output-dir "target" | |
}}]}) |
This file contains 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
Compiling "main.js" from ["src/cljs"]... | |
WARNING: JavaScript file found on classpath for library `cljs.nodejs`, but does not contain a corresponding `goog.provide` declaration: jar:file:/Users/boriskourt/.m2/repository/org/clojure/clojurescript/0.0-2268/clojurescript-0.0-2268.jar!/cljs/nodejs.js | |
WARNING: JavaScript file found on classpath for library `cljs.nodejs`, but does not contain a corresponding `goog.provide` declaration: jar:file:/Users/boriskourt/.m2/repository/org/clojure/clojurescript/0.0-2268/clojurescript-0.0-2268.jar!/cljs/nodejs.js | |
Successfully compiled "main.js" in 3.19 seconds. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment