Fork me on GitHub
#clojurescript
<
2016-08-05
>
misha00:08:11

@darwin: greetings, so this error is a chrome-related, right?

Custom Formatter Failed: ReferenceError: bindRemoteObject is not defined
Trying to run cljs-devtools via(?) react native. I get some formatted edn in chrome console, that can be expanded, but I get this exception on expanding top-level container: with [{}{}{}] I can expand {}s, but expanding [] throws. (51.0.2704.106, os x)

iku00088808:08:20

Has anyone encountered this problem? I have an input element that reads values from an atom (the 'db' in re-frame) and updates the atom upon :on-change with the entered value. This works with IMEs that map one keystroke to one character, but when several keystrokes are required to compose the desired character (e.g. Japanese), the on-change event is picked up and the value is updated before the desired character is composed. This seems to not be a problem with pure react with some experimenting, but do not have any clue. Would appreciate any tips/pointers. Thanks!

iku00088809:08:43

@delaguardo: Thanks for the response! Taking a look at it

iku00088809:08:20

@delaguardo: I tried specifying :compositined, but looks like the event is not being picked up. Looking for other variations.

hlolli10:08:19

Where would I report a cljs bug (I read the wiki, but was not closer)?

delaguardo11:08:41

@iku000888: maybe :on-compositionend ?

chris13:08:29

@hlolli: mailing list? I thought you could report on jira but looks like you need to sign up

anmonteiro13:08:09

@hlolli: sorry what is the bug in your example?

hlolli13:08:33

looking at the source code of cljs.reader/numeric? then it should basically be the same as goog.string/numeric. But irrelevant of that fact, the console print prints QMARK not defined something. Are you not able to reproduce the error message?

anmonteiro13:08:53

@hlolli: well, yeah, but it goes away if I actually require cljs.reader

hlolli13:08:04

ok, then its not a bug. But what made me almost crazy last week, was that using figwheel did not produce the bug (maybe cljs.reader is loaded with figwheel?), so everytime I did advance compilation it popped up, took me ages to find the cause. Feel sorry for other developers if they have to go trough the same 🙂

anmonteiro13:08:41

glad you got it working in the end

hlolli13:08:50

yes, I guess every developer knows that feeling 🙂

shader17:08:47

what, if any, is the cljs equivalent to clojure.core/ns-resolve?

shader17:08:31

hmm; seems like dynamically referencing vars in cljs is a little more arcane

richiardiandrea18:08:53

@shader you are looking at clojurescript self host territory there

richiardiandrea18:08:09

I wrote an (hopefully interesting) post about the topic here: http://lambdax.io/blog/posts/2016-03-22-replumb-ast.html

richiardiandrea18:08:40

Clojurescript basically does not thread namespaces in the same way as clojure

mfikes19:08:45

“Bootstrapped ClojureScript and Planck” presented at Seajure meetup last night at Amperity: https://youtu.be/HnQ89r_dKEM

levitanong20:08:55

Hi all, does anyone know how to deal with getting read-string to properly parse the new namespaced map literals? i.e. (read-string “#:a{:b1 :c1}”)

levitanong20:08:12

When I try this both in the repl and in dev, I get:

Could not find tag parser for :a in ("inst" "uuid" "queue" "js")

levitanong20:08:41

nvm, I see that it isn’t yet supported: http://dev.clojure.org/jira/browse/CLJS-1706

akhudek20:08:04

I've just spend several hours trying to get :foreign-libs working and it just wont' work. The file isn't included in the compiled javascript and no error is given.

porglezomp22:08:04

Is there any way to reconstruct a literal, so that (foo 1.0) => “1.0” and (foo 1) => “1”? I’m doing a compilation step to glsl, and the fact that I have to write my numbers as strings is annoying me.

anmonteiro22:08:03

@mfikes: cool presentation so far. haven’t watched it fully yet, but one of the questions they asked: https://closure-compiler.appspot.com/home

anmonteiro22:08:42

there’s a closure compiler web service that processes JS for you

mfikes22:08:50

ahh. Cool :)

anmonteiro22:08:58

there’s also a REST API for that too 🙂