Created
February 9, 2015 19:03
-
-
Save hlprmnky/38cffecae087cb2110be to your computer and use it in GitHub Desktop.
Node.js CLJS-REPL woes
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
| (defproject cljs-aws "0.1.0-SNAPSHOT" | |
| :description "PoC for using CLJS-over-Node.js in AWS Lambda" | |
| :url "" | |
| :dependencies [[org.clojure/clojure "1.6.0"] | |
| [org.clojure/clojurescript "0.0-2755"] | |
| [org.clojure/core.async "0.1.346.0-17112a-alpha"] | |
| [com.cemerick/piggieback "0.1.5"]] | |
| :node-dependencies [[source-map-support "0.2.8"]] | |
| :plugins [[lein-cljsbuild "1.0.4"] | |
| [lein-npm "0.4.0"] | |
| [com.cemerick/austin "0.1.6"] | |
| [cider/cider-nrepl "0.8.2"]] | |
| :source-paths ["src" "target/classes"] | |
| :clean-targets ["out" "out-adv"] | |
| :cljsbuild { | |
| :builds [{:id "dev" | |
| :source-paths ["src"] | |
| :compiler { | |
| :main cljs-aws.core | |
| :output-to "out/cljs_aws.js" | |
| :output-dir "out" | |
| :optimizations :none | |
| :cache-analysis true | |
| :source-map true}} | |
| {:id "release" | |
| :source-paths ["src"] | |
| :compiler { | |
| :main cljs-aws.core | |
| :output-to "out-adv/cljs_aws.min.js" | |
| :output-dir "out-adv" | |
| :optimizations :advanced | |
| :pretty-print false}}]}) |
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
| ~/cljs-aws [ lein repl | |
| Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true | |
| Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true | |
| nREPL server started on port 43339 on host 127.0.0.1 - nrepl://127.0.0.1:43339 | |
| REPL-y 0.3.5, nREPL 0.2.6 | |
| Clojure 1.6.0 | |
| OpenJDK 64-Bit Server VM 1.7.0_75-b13 | |
| Docs: (doc function-name-here) | |
| (find-doc "part-of-name-here") | |
| Source: (source function-name-here) | |
| Javadoc: (javadoc java-object-or-class-here) | |
| Exit: Control+D or (exit) or (quit) | |
| Results: Stored in vars *1, *2, *3, an exception in *e | |
| user=> (require '[cljs.repl :as repl]) | |
| nil | |
| user=> (require '[cljs.repl.node :as node]) | |
| nil | |
| user=> (require '[cemerick.piggieback :as pb]) | |
| nil | |
| user=> (pb/cljs-repl :repl-env (node/repl-env) | |
| #_=> :output-dir ".cljs_node_repl" | |
| #_=> :optimizations :none | |
| #_=> :cache-analysis true | |
| #_=> :source-map true) | |
| ClojureScript Node.js REPL server listening on 52669 | |
| TypeError: Cannot read property 'call' of undefined | |
| at Domain.<anonymous> ([stdin]:38:57) | |
| at Domain.run (domain.js:197:16) | |
| at Socket.<anonymous> ([stdin]:37:25) | |
| at Socket.emit (events.js:107:17) | |
| at readableAddChunk (_stream_readable.js:163:16) | |
| at Socket.Readable.push (_stream_readable.js:126:10) | |
| at TCP.onread (net.js:529:20) | |
| TypeError: Cannot read property 'call' of undefined | |
| at Domain.<anonymous> ([stdin]:38:57) | |
| at Domain.run (domain.js:197:16) | |
| at Socket.<anonymous> ([stdin]:37:25) | |
| at Socket.emit (events.js:107:17) | |
| at readableAddChunk (_stream_readable.js:163:16) | |
| at Socket.Readable.push (_stream_readable.js:126:10) | |
| at TCP.onread (net.js:529:20) | |
| TypeError: Cannot read property 'call' of undefined | |
| at Domain.<anonymous> ([stdin]:38:57) | |
| at Domain.run (domain.js:197:16) | |
| at Socket.<anonymous> ([stdin]:37:25) | |
| at Socket.emit (events.js:107:17) | |
| at readableAddChunk (_stream_readable.js:163:16) | |
| at Socket.Readable.push (_stream_readable.js:126:10) | |
| at TCP.onread (net.js:529:20) | |
| Type `:cljs/quit` to stop the ClojureScript REPL | |
| nil | |
| cljs.user=> (+ 1 1) | |
| TypeError: Cannot read property 'call' of undefined | |
| at Domain.<anonymous> ([stdin]:38:57) | |
| at Domain.run (domain.js:197:16) | |
| at Socket.<anonymous> ([stdin]:37:25) | |
| at Socket.emit (events.js:107:17) | |
| at readableAddChunk (_stream_readable.js:163:16) | |
| at Socket.Readable.push (_stream_readable.js:126:10) | |
| at TCP.onread (net.js:529:20) | |
| nil | |
| cljs.user=> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Chris, I'm seeing the same errors. Have you figured out what the problem was?