[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-03 Thread Thomas Heller
Can you run this? lein repl (require 'pts.macros) If not you are probably missing a classpath entry since macros have to be on the classpath for Clojurescript (Clojure) to find them. Your project should have (defproject ... :source-paths ["src/clj"] :cljsbuild {:source-paths ["src/cljs"]})

[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-07 Thread Jonathon McKitrick
That statement does run and autocomplete finds the macro in the REPL. But cljsbuild still produces this: Compiling "resources/public/js/main.js" from ["src/cljs"]... WARNING: No such namespace: pts.macros at line 59 src/cljs/spike/spike.cljs On Saturday, January 3, 2015 6:00:23 AM UTC-5, Thomas

[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-07 Thread Jonathon McKitrick
I might have solved it... but I'm not sure yet. I'll follow up. -- 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 s

[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-08 Thread Jonathon McKitrick
Problem solved. It turns out the namespace error came before a syntax error, which was the actual problem. Once I fixed that, remembering that the macro code is spliced into the destination code and needs function calls to be correctly namespaced, the problem was basically solved. Thanks for

[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-09 Thread Colin Yates
+1 My workflow became substantially nicer once I stopped fighting and used cljx. On Saturday, 3 January 2015 08:53:34 UTC, Ivan L wrote: > Clojurescript tooling can be hell. Consider looking at cljx since AFAIK that > is the way forward for cljs macros. Shameless plug - cljx setup is also >