[ClojureScript] Re: cljs.js/eval and functions/macros defined in user/custom namespace

2016-04-03 Thread Olek
It is very strange. I have cloned https://github.com/ctford/klangmeister/tree/master/src/klangmeister/compile and run: lein figwheel The app has run and I can play with music via REPL Next I had extended synthesis.cljs with my sstr function and registered that functions to

[ClojureScript] Re: cljs.js/eval and functions/macros defined in user/custom namespace

2016-04-03 Thread Zubair Quraishi
Mike also helped me get this working for appshare.co. See the code here: https://github.com/zubairq/AppShare/blob/master/idesandboxcode/myappshare/mainapp.cljs -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you

[ClojureScript] Re: cljs.js/eval and functions/macros defined in user/custom namespace

2016-04-02 Thread Mike Fikes
Hi Olek, The first argument to `eval`—the compiler state—would need to have metadata regarding your `sstr` function. Since the state is empty, you run into a problem. (As a quick aside, there is no need to write your own `eval-str` that calls `eval`—one exists in `cljs.js`.) Frequently, for