Fork me on GitHub
#clojurescript
<
2016-10-15
>
sattvik01:10:42

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 'foo_test.one_QMARK_.call’)]

richiardiandrea02:10:47

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

fingertoe04:10:38

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..

p-himik08:10:49

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.

dnolen15:10:29

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

dnolen15:10:29

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

sattvik15:10:22

@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.

rovanion16:10:21

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.

lxsameer18:10:22

how can i reload the figwheel server within the repl ?

lxsameer18:10:48

yeah that works

lxsameer18:10:26

@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 ?

anmonteiro19:10:54

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

anmonteiro19:10:07

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

anmonteiro19:10:13

it would require a hard restart

lxsameer19:10:17

i don't want to do it on runtime

anmonteiro19:10:37

I mean the JVM runtime

lxsameer19:10:23

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

anmonteiro19:10:20

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

anmonteiro19:10:42

gotcha, so definitely possible

anmonteiro19:10:00

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

lxsameer19:10:12

hmmm let me try

arohner19:10:35

@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 https://github.com/cemerick/pomegranate

anmonteiro19:10:47

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

anmonteiro19:10:11

I know that Boot does it, of course

anmonteiro19:10:44

was unaware of pomegranate tough!

nfisher19:10:52

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

spiralganglion20:10:33

@rovanion Yep. If Gamma and the http://thi.ng 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.

dnolen20:10:40

@nfisher what do you mean?

nfisher21:10:38

@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}]

nfisher21:10:14

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: http://clojurescript.org/reference/javascript-module-support

nfisher21:10:43

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

darwin22:10:33

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: https://github.com/binaryage/env-config

netchkin23:10:22

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 binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ eact.inc.js'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)