Hi everyone- I've spent a couple of hours now trying to create a macro that will work in ClojureScript and keep hitting a wall- Any pointers would be greatly appreciated!
OK, so I'm running Ubuntu and have clojurescript installed at "~/ clojurescript". I have a clojurescript file "bar.cljs" in directory "~/ foo". I can compile my clojurescript by running "~/clojurescript/bin/ cljsc bar.cljs '{:optimizations :advanced}' > bar.js" without problem (when I'm in the "~/foo" directory) Next, however, I want to create a macro. Because of this, I've added "require-macros" to the top of my bar.cljs file: (ns bar (:require-macros [my.macros :as my])) I've created a file "macros.clj" file, which right now just contains the ns declaration "(ns my.macros)" I put this file in the directory "~/foo/my". Unfortunately, when I now run cljsc again I get the error: "Could not locate my/ macros__init.class or my/macros.clj on classpath" Now, I'm no expert on the java compilation process, or the internals of the clojurescript compiler, but I have tried manually editing the CLASSPATH variable in my Ubuntu terminal every way imaginable. I have also tried moving the "macros.clj" file into every place imaginable (including every conceivable place in "~/clojurescript" but I am not able to get it to work. Can someone help me figure out what I am doing wrong? Can someone let me know the best place to put "macros.clj"? Thanks in advance for your help! -Conrad Barski -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en