This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-15
Channels
- # beginners (11)
- # boot (80)
- # carry (1)
- # cider (5)
- # cljs-dev (290)
- # cljsrn (4)
- # clojure (50)
- # clojure-canada (5)
- # clojure-dev (2)
- # clojure-korea (2)
- # clojure-russia (17)
- # clojure-spec (22)
- # clojurescript (41)
- # cursive (12)
- # datomic (10)
- # figwheel (1)
- # hoplon (68)
- # klipse (1)
- # off-topic (1)
- # om (16)
- # onyx (15)
- # parinfer (1)
- # proto-repl (4)
- # proton (2)
- # re-frame (14)
- # reagent (12)
- # ring (5)
- # vim (4)
- # yada (34)
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’)]
Has anyone ever successfully achieved a working dragula+react+cljs
combination? I have weird DOM errors here...
@sattvik https://github.com/untangled-web/untangled-spec/blob/master/src/untangled_spec/reporters/suite.clj#L5 https://github.com/untangled-web/untangled-spec/blob/master/src/untangled_spec/assertions.cljc#L52 https://github.com/untangled-web/untangled-spec/blob/master/src/untangled_spec/assertions.cljc#L3 should help out, but you should provide a code snippet or we’re just guessing
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.
@lxsameer (reset-autobuild)
?
@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 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
@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
@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!
@anmonteiro it works thanks
awesome!
@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.
@ivanreese No problem mate!
@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: http://clojurescript.org/reference/javascript-module-support
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:
https://github.com/binaryage/env-config
need something like this for cljs-oops and other libraries: https://github.com/binaryage/cljs-oops/blob/81aa7f8d706535823f3f385781ec2e26bf37da64/src/lib/oops/config.clj#L55
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)