I tried both Clojure and Clojure (remote nREPL) connections without success.
When I start a REPL (using Leiningen) and add a connection to it, I manage to load/require modules contained in .cljx files. But every time I evaluate inside a .cljx file or perform a load-file on a .cljx file, I endup with this
No reader function for tag +clj, compiling:(/Users/bertrand/Desktop/schema/test/cljx/schema/test_test.cljx:2:28)
Do you have any idea on how to evaluate .cljx file from Light Table ?
Thanks in advance for your help
Sincerely
Bertrand
When I start a REPL (using Leiningen) and add a connection to it, I manage to load/require modules contained in .cljx files. But every time I evaluate inside a .cljx file or perform a load-file on a .cljx file, I endup with thisNo reader function for tag +clj, compiling:(/Users/bertrand/Desktop/schema/test/cljx/schema/test_test.cljx:2:28)
Here is the interesting part of the project file (complete version is https://github.com/Prismatic/schema/blob/master/project.clj):
:hooks [leiningen.cljsbuild]
--
You received this message because you are subscribed to a topic in the Google Groups "Light Table Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/light-table-discussion/4PeDoZJ5L8E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to light-table-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to light-table-discussion+unsub...@googlegroups.com.
Hello,
Here is the project.clj (I’m experimenting around Schema).
################ project.clj #################################################################
(defproject prismatic/schema "0.2.3-SNAPSHOT" :description "Clojure(Script) library for declarative data description and validation" :url "http://github.com/prismatic/schema" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[potemkin "0.3.2"]] :profiles {:dev {:dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/clojurescript "0.0-2030"] [com.keminglabs/cljx "0.3.1"]] :plugins [[com.keminglabs/cljx "0.3.1"] [lein-cljsbuild "0.3.2"] [com.cemerick/austin "0.1.3"] [com.cemerick/clojurescript.test "0.2.2"]] :hooks [cljx.hooks] :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl cljx.repl-middleware/wrap-cljx]} :cljx {:builds [{:source-paths ["src/cljx"] :output-path "target/generated/src/clj" :rules :clj} {:source-paths ["src/cljx"] :output-path "target/generated/src/cljs" :rules :cljs} {:source-paths ["test/cljx"] :output-path "target/generated/test/clj" :rules :clj} {:source-paths ["test/cljx"] :output-path "target/generated/test/cljs" :rules :cljs}]}} :1.6 {:dependencies [[org.clojure/clojure "1.6.0"]]}} :aliases {"all" ["with-profile" "dev:dev,1.6"]} :jar-exclusions [#"\.cljx|\.swp|\.swo|\.DS_Store"] :lein-release {:deploy-via :shell :shell ["lein" "deploy" "clojars"]} :prep-tasks ["cljx" "javac" "compile"] :source-paths ["target/generated/src/clj" "src/clj"] :resource-paths ["target/generated/src/cljs"] :test-paths ["target/generated/test/clj" "test/clj"] :cljsbuild {:test-commands {"unit" ["phantomjs" :runner "this.literal_js_was_evaluated=true" "target/unit-test.js"]} :builds {:dev {:source-paths ["src/clj" "target/generated/src/cljs"] :compiler {:output-to "target/main.js" :optimizations :whitespace :pretty-print true}} :test {:source-paths ["src/clj" "test/clj" "target/generated/src/cljs" "target/generated/test/cljs"] :compiler {:output-to "target/unit-test.js" :optimizations :whitespace :pretty-print true}}}})
################################################################################################
To unsubscribe from this group and all its topics, send an email to light-table-discu...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to light-table-discu...@googlegroups.com.
Bertrand, did you ever resolve this? I'm having the exact same issue. I've got a gist of my project.clj and the relevant part of my LightTable behaviors here: https://gist.github.com/JoeOsborn/ba5f022ec08c8aadeab3If I run a repl from the command line, I can load and reload cljx files just fine.If I connect LightTable to my project -- either through the regular Clojure session or through a remote nrepl session -- trying to evaluate terms (cmd-enter) or whole files (cmd-shift-enter) gives reader errors.Matt, it sounds like you're successfully using CLJX in LightTable? What are your LT behaviors and the rest of your project.clj like?
To unsubscribe from this group and all its topics, send an email to light-table-discu...@googlegroups.com.