Fork me on GitHub
#clojurescript
<
2016-01-09
>
richiardiandrea00:01:54

late to the party, but 1.7.228 passes all the tests in replumb -> https://github.com/ScalaConsultants/replumb/pull/122

dnolen00:01:32

@richiardiandrea: cool thanks for the confirm

magomimmo07:01:34

@dnolen: here 1.7.228 runs nicely

krchia11:01:36

can anybody recommend a good library for a spreadsheet widget that plays nice with om?

krchia11:01:58

i’m looking for something that’s a hybrid between a table display and spreadsheet

octahedrion12:01:24

using Garden, compiler gives a bunch of warnings which can be ignored like WARNING: Use of undeclared Var cljs.core/time at line 802 out/garden/selectors.cljc

octahedrion12:01:43

how can I turn them off ? :warnings false doesn't work

octahedrion12:01:02

& WARNING: time already refers to: cljs.core/time being replaced by: garden.selectors/time at line 802 out/garden/selectors.cljc

octahedrion12:01:48

also do warnings slow compilation down ?

martinklepsch12:01:12

@octo221: warnings should not cause any slowdown afaik. I'd suggest filing a pr to add excludes to the garden sources

blueninj0r16:01:49

Question! Got to setting up the repl in the ClojureScript quick start tutorial (https://github.com/clojure/clojurescript/wiki/Quick-Start#browser-repl) and it's not working due to "Error: URI file:/robots.txt is invalid for field ppu ". This is because I've opened my index.html using the file protocol rather than http. Is there an alternative to get this working with file:// or do I just need to set myself up to open the index.html via http? (Or have I missed something in the tutorial?)

blueninj0r16:01:04

"Point your web browser at http://localhost:9000."

blueninj0r16:01:21

Apologies for asking then answering my own silly question!

krchia16:01:32

i got a problem with the cljsjs package reactabular

krchia16:01:11

requiring it like in the docs gives me an error

krchia16:01:40

Uncaught TypeError: Cannot read property 'update' of undefined

krchia16:01:49

i also can’t make sense of the error message, but it looks like the problem is with the library itself

krchia16:01:42

what are my options? i really wanted to use this library

meow17:01:30

@krchia: is there a person associated with that library listed on the cljsjs site that you can ping here for advice?

martinklepsch17:01:27

"mfikes left #C03S1L9DN"

mfikes17:01:01

I’m back. It was just a performance experiment for my iPhone, which is unusable for me for Slack with the size of our community. (I get 10-second pauses when I bring the app to the foreground.)

mfikes17:01:23

(Head over to #C0CB40N8K if you’d like to chat about that subject.)

docent17:01:13

Any idea why pprint not working under cljs+figwheel? I am getting:

docent17:01:29

The pprint code seems to be there...

richiardiandrea17:01:49

Maybe not required by default (did not test) ?

docent17:01:49

Yeah that was the case @richiardiandrea

docent17:01:17

BTW - is it different comparing to Clojure - even if you use fully qualified function name, you still have to require it?

richiardiandrea18:01:29

It should be required by default but given that you are in a figwheel Repl we should actually ask Bruce 😄

shanekilkelly19:01:23

I’d be inclined to go with the third form. Presuming parse is a static method of the good.Uri object. Otherwise, the second form, in the case where parse is an instance method of some object.

magomimmo19:01:34

@shanekilkelly: thanks! Is there a reason for that choice or it is just a matter of taste/ be idiomatic

shanekilkelly19:01:23

mostly a matter of intuition on my part. In the third form we’re saying “parse is a function in this fully-qualified namespace, invoke it with this string parameter”, which makes sense for static (or class-level) methods. In the second form we’re saying “parse is a function, invoke it on this object instance, and also pass it this string”, which makes more sense for an instance-method of the goog.Uri object.

shanekilkelly19:01:34

the third form also implies that parse is a pure function of its input.

shanekilkelly19:01:51

which it may not be, because javascript, but that’s the vibe it gives off

andrewboltachev19:01:22

Hi. Is there Google Chrome plugin (for it's DevTools), which would display Preview for EDN (in Network tab) in a way it displays JSON (kind of widget for tree structure)?

borkdude20:01:43

@andrewboltachev: I asked about this feature too, but couldn't find it. Usually I just copy paste the EDN and pretty print it inside Emacs. There's also this nice tool: https://clojure.github.io/clojure/clojure.inspector-api.html

darwin20:01:15

@andrewboltachev: this sounds like a good feature for Dirac: https://github.com/binaryage/dirac

darwin20:01:51

I’m still busy with getting REPL to work, but maybe later I could look into that

danbunea21:01:09

Hi, I have a problem with a with-redefs in a go block

danbunea21:01:29

(defn init [] (safe-run #(go (-> @model (assoc-in [:lookups :tag_groups] (<! (rest/load-tag-groups )))

danbunea21:01:57

(deftest controller-init ;;GIVEN a model (with-redefs [ vr.rest/load-tag-groups (fn [] {}) ] (do ;;WHEN initializing (controller/init)

danbunea21:01:17

it still invokes the real function

danbunea21:01:24

being in a go block

danbunea21:01:34

sorry, now I saw what was wrong