Fork me on GitHub
#clojurescript
<
2015-11-13
>
martinklepsch00:11:52

Some how this gets passed through cljs.test/report without printing any warnings:

{:file at collection_check$core$assert_equivalent_collections (file, :line 337, :column 171, :type :error, :expected (= (count a) (count b) (.length a) (.length b)), :actual #object[TypeError TypeError: undefined is not a constructor (evaluating 'b.length()')], :message nil}

martinklepsch00:11:08

Could this be an issue with doo? /cc @bensu

Tim05:11:49

what would we use for 3d graphics and/or geometric stuff in the browser?

kamn05:11:42

@tmtwd: I don't know of anything clojurescript based but you could wrap three.js

bensu12:11:43

@martinklepsch: maybe, we do override one report function https://github.com/bensu/doo/blob/master/library/src/doo/runner.cljs#L53 but it shouldn't interfere with any of the individual tests

martinklepsch12:11:00

@bensu: sorry for the noise, was a different issue

bensu12:11:12

no problem

martinklepsch13:11:34

for the record: problem was a different env was used for reporting which didn’t have an :error handler

bojanx10015:11:35

Hi guys. Does anyone know advanced features of tonsky/rum library. I'm trying to re-render whole page (all components) when one atom changes (global scope). Any suggestions? Thanks.

stephen17:11:19

Hey, anyone know how to import styles from a css file in cljs for a react web app? http://ai.github.io/postcss-way/?full#29

martinklepsch18:11:41

@stephenway: replied in #C06DTLT5X

tom20:11:07

I've been playing with a chrome extension template, and added a dependency for [cljs-ajax "0.5.1"], when I follow the directions to add (:require [ajax.core :refer [GET POST]]) it says that ajax.core cannot be found.

tom20:11:27

I tried moving it to (:require-macros) but with the same result

tom20:11:46

What could I be missing?

deddu20:11:47

I’m probably not the best one to help, but I had this same fight couple of times.

deddu20:11:55

so you added the dep in project clj

deddu20:11:11

then you restarted the server

deddu20:11:16

and fighweel

tom20:11:16

It's a chrome extension, I don't know that is uses Figwheel, but it does use lein chromebuild auto to keep updates in Chrome available.

deddu20:11:18

I think you have to pull the dep with lein deps

deddu20:11:35

but again - many here can help you for real

tom20:11:06

lein deps comes back blank, I think I picked it up.

tom20:11:13

Caused by: java.io.FileNotFoundException: Could not locate ajax/core__init.class or ajax/core.clj on classpath just confusing as hell

tom20:11:30

I'll keep messing with it, maybe someone will have dealt with this one

tom21:11:58

OK, cljs and clj versions were old, updated to 1.7.0 and 1.17.170 and we're in business.

lvh22:11:44

I’m trying to parse JSON. I’m in modern browsers, so js/JSON is probably usable .Is there something like clj->js to turn that JS stuff into Clojurescript values?

lvh22:11:15

oh, hey; there’s a js->clj

darwin22:11:15

@cddr: double-check if you are running with latest clojure 1.7, I’ve seen similar problems when my deps pulled in old version of Clojure and it won for some reason

cddr22:11:55

What does it mean to run with clojure 1.7? Make that the version that lein uses? The figwheel template specifies clojure 1.7 as a dependency

noonian22:11:48

Yeah, make sure the version specified in the generated project.clj :dependency vector is 1.7

darwin22:11:50

I’m not sure, I’m just hinting that I hit similar troubles and had to mess with dependencies to pull in recent Clojure version, I don’t remember the details

darwin22:11:22

also I’m not familiar how dependency resolution really works, if two libraries deep in deps tree request different versions of same library

cddr22:11:02

OK Thanks

cddr22:11:42

Updating lein itself seems to have worked