Fork me on GitHub

@dnolen Thank you! I'm not sure if I know how to try the master in my leiningen config, but I'll work on it and report.


I discovered that my macros in this namespaces were running twice in self-hosted CLJS. Is there a way how I can prevent that? I now prevent it with this "hack": The calls look like (copy-var foo foo-ns {:name 'foo}) so the first argument should be a symbol, but is sometimes {:name 'foo} while the second and third arguments are nil when I inspect the arguments in the macro. I think I've ran into this before but I forgot how to deal with this. Thanks.


Maybe I should just move the macro to a .clj namespace


That didn't work either, the macro still gets executed in unexpected ways :/


Is it possible there’s a thread first instead of a thread last somewhere that’s causing it?


somewhere that’s calling the macro I mean.


I'm pretty sure that is not it.


I've got a library that calls (fs.readFileSync (str "resources/" <filename>) "utf-8"), but when I use it in another project I think it's looking in the "resources" directory of that project. Is there an io/resource equivalent for node?


Does the concept of a classpath even exist for cljs?


It looks like you can require json files in node, but I've got edn : /


you could put the edn data in a cljs file in the sources folder and require it


@jrychter I released 1.11.60 give it a try


It appears that the &env implicit argument of defmacro in cljs is not what it is in clj, and so the spy-env example on p 252 of Emerick et al Clojure Programming does not work. Is there a workaround?