Fork me on GitHub

Does anyone have any suggestions on how to extend cljs.test with new assertion types? I think I am doing what I am supposed to be doing (extending the assert-expr multimethod in a Clojure file), but what I am getting is something like object[TypeError TypeError: undefined is not an object (evaluating '’)]


Has anyone ever successfully achieved a working dragula+react+cljs combination? I have weird DOM errors here...


Anyone know if Self-hosted Clojurescript can be run on AWS lambda? It sure would be nice to get something working in Klipse and just zip it into AWS Lambda and have it work..


Has anyone ever had a problem that Heroku builds not only production build, but dev as well? I set up LEIN_BUILD_TASK: with-profile production do clean, cljsbuild once production, but it didn't change anything. And running this command locally surely does work and uses only the production build.


@fingertoe as long as you can call JS eval I don’t see why not


@ivanreese Karsten’s stuff seems very well maintained - I don’t know if the slow stream of updates indicates anything negative


@adambros Thanks, I was able to figure out what I was doing wrong from looking at your examples. Apparently, I wasn’t really extending the right multimethod. I think that I must have been extending the clojure.test one even in a ClojureScript project. Additionally, the cljs.test version takes an extra argument.


The thing about gamma is that there doesn't seem to be a lot of action over there, only 9 commits this year. Of course that doesn't have to be a bad thing in itself. And Geom is only twice as popular measured in magical internet points.


how can i reload the figwheel server within the repl ?


yeah that works


@savelichalex the thing is I have several cljs files in another project which i added to the class path. I want figwheel to know about these files and reload them on change. any idea how ?


@lxsameer if I understand correctly, what you want to do is not possible with Lein because the classpath is static


i.e. you can’t modify it at runtime


it would require a hard restart


i don't want to do it on runtime


I mean the JVM runtime


hmmm, right now I have the other project in my class path, I think i need to tell figwheel to track the FS change events on those files too


@lxsameer oh you have everything in the classpath when starting Figwheel?


gotcha, so definitely possible


the first thing I would try would be to add the other project to Figwheel’s :source-paths


hmmm let me try


@anmonteiro being pedantic, but FYI you can modify the classpath at runtime, just not in all environments (servlet containers, like jetty/tomcat and other ugly things like J2EE). But you can do it from a raw normal repl. Boot does it all the time, and there’s


@arohner right, thanks. I didn’t know it was possible in Lein specifically, which is what I wrote above


I know that Boot does it, of course


was unaware of pomegranate tough!


Out of curiosity should CLJS just work with ES6 compatible libraries?


@rovanion Yep. If Gamma and the libs are the only two options with that degree of maturity, then I guess that settles that. I'll do one project in each, and then see how it goes. Thanks for the geom tut — that'll be where I start.


@nfisher what do you mean?


@dnolen after our discussion the other day I started looking back at a kludge I had done with bignumber.js. I currently trying:

:foreign-libs [{:file "public/bignumber-2.4.0.js"
                      :provides ["bignumber"]
                      :module-type :es6}]


Where previously I referenced it via js/bignumber, I would expect that to allow me to require the library. I’ve been using this as a guide:


Getting the following when I try to require in the figwheel REPL: clojure.lang.ExceptionInfo: No such namespace: bignumber


today I started on a library which will allow overriding :compiler > :external-config > :my-library/config via env vars, library authors who worked on something similar or have ideas, feedback welcome:


hi guys, I'm new to clojure & clojurescript, does anyone here run it on windows? I'm getting this error when I try to run clojurescript with reagent: fs.js:634 return, stringToFlags(flags), mode); ^'T: no such file or directory, open 'C:\dev\my\testingcljs\reag2\demo at Error (native) at Object.fs.openSync (fs.js:634:18) at Object.fs.readFileSync (fs.js:502:33) at Object.nodeGlobalRequire (C:\dev\my\testingcljs\reag2\demo\resources\publ at Object.cljs$core$load_file [as load_file] (C:\dev\my\testingcljs\reag2\de at Object.<anonymous> (C:\dev\my\testingcljs\reag2\demo\resources\public\js\ at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12)