Fork me on GitHub
#clojurescript
<
2017-02-17
>
fabrao00:02:51

Hello all, I麓m trying to use a resource called dialogPolyfill and it exports as dialogPolyfill or window['dialogPolyfill']. I included it before the app.js of my app, so how to use it? I tried with js/dialogPolyfill, is there any other way?

fabrao00:02:30

It says that is not defined

dvcrn01:02:28

Played a bit with vscode extensions and cljs and it seems to be a lot simpler than expected - https://github.com/dvcrn/vscodecljs Would love to see more extensions written in clojurescript guys 馃檪

renewdoit02:02:01

Has anyone realized from 1.9.456 onward, the destructure of map malfunctioned?

renewdoit02:02:33

I tried (let [{a :a} {:a 3}] a in REPL, it returns nil

renewdoit02:02:49

in 1.9.229 it works as expected

anmonteiro02:02:47

@renewdoit weird because you鈥檙e the 2nd person to report that today

anmonteiro02:02:57

your example returns 3 for me

anmonteiro02:02:09

can you make sure you have cleaned you build and try again?

renewdoit02:02:48

@anmonteiro I just checked it in cider repl and in a separated test, it runs fine in the test, but went wrong in cider.

anmonteiro02:02:44

sorry, but I don鈥檛 think that adds any information to the problem

renewdoit03:02:16

I think it looks likely a problem depends on cider's implementation. Not a clojurescript bug.

renewdoit03:02:30

I just reported it in cider channel. For myself, to make developement easier, I just switched to 1.9.229 now.

ilevd11:02:05

Is it possible to get current selected search result, when using Ctrl + F?

phil14:02:48

@renewdoit It actually also happened for me in a lein figwheel prompt too.

renewdoit14:02:45

@phil I configured my cider environment for using figwheel, then maybe it is a figwheel problem

not-raspberry14:02:59

Which UI library would you recommend today for apps/dashboards to use with reagent/re-frame? I don't care about older browsers and I am sick of Bootstrap and its buttons rendering too low (or pills rendering too high) in the line. I want a more high-level interface, less flexible but working for 80% of use cases. Semantic-UI (with https://github.com/gadfly361/soda-ash)?

phil15:02:05

@renewdoit Possibly, either way, downgrading clojurescript 'fixes' it for me.

deas16:02:47

Looks like I have hit an issue with the Closure compiler generating broken output from a node module. Any suggestion how a minimal repro should look like?

hlolli17:02:55

is clojure.core/resolve missing from clojurescript or goes by another name?

pesterhazy17:02:23

yeah I don't think it works in clojurescript

hlolli17:02:05

any tricks then to know if a symbol is bounded or not?

richiardiandrea17:02:08

@deas i would start from the quick start on the website and build from there

hlolli17:02:42

well, I just play it smart, and declare a symbol and base my logic on what it's bound to 馃檪

deas17:02:04

@richiardiandrea The online compiler service? If so, does it consume node modules?

emccue17:02:31

Is there a clojurescript compiler service like for closure?

emccue17:02:29

I ask mainly because I sometimes use cloud9 for working on things when I'm not with my own computer (which is often given school)

emccue17:02:09

Their host machines just run out of memory on any initial compile, which is unfortunate

bostonaholic17:02:21

@emccue you could use a CI platform like CircleCI to build your project then upload the artifact somewhere, S3 perhaps

richiardiandrea17:02:35

The project should be as bare as possible I guess

anmonteiro18:02:07

@deas if this was the issue you ran into, it鈥檚 merged into the Closure Compiler master now https://github.com/google/closure-compiler/pull/2283

deas18:02:01

@anmonteiro Does not look like a hosting issue to me. It's https://github.com/JedWatson/classnames/blob/master/index.js ending up compiled as var module$$foo$bar$node_modules$classnames$index = classNames; with classNames not being defined.

anmonteiro18:02:55

@deas it does seem like the same exact issue I linked

anmonteiro18:02:14

there鈥檚 a function classNames () { definition in that file

anmonteiro18:02:18

which is hoisted

benzap18:02:36

I keep running into this issue with the figwheel cljs repl. If I try and view a piece of data that is too big, my emacs cider repl starts to get all sluggish. Is there a way to clear the repl manually?

deas18:02:02

@anmonteiro Oh yes, guess you are right. Thanks!

anmonteiro18:02:07

@benzap M-x cider-repl-clear-buffer I believe

anmonteiro18:02:24

I normally just hit , at the CIDER REPL and search for clear

benzap18:02:44

ah perfect, thanks!

tmayse18:02:27

I'm wanting to connect to the Google Sheets API from Clojurescript. I've looked around for a CLJS wrapper, but haven't found one. I'm willing to start from scratch, but that would be a shame if I'm just missing something useful. Does anyone know of any projects that have connected to Google sheets using the external API (https://developers.google.com/sheets/api/)?

pesterhazy18:02:48

if tabletop is enough for you needs, it's pretty simple

tmayse18:02:17

Interesting. it might be, thank you

tmayse18:02:44

but it's not written for CLJS, but still a good start

pesterhazy19:02:12

well it depends if you are you looking at the server-to-server api or client-to-server

pesterhazy19:02:50

oh and there's http://sheetsu.com/ which could be useful?

sveri20:02:12

Hi, whats the simplest way to play some kind of a gong with cljs?

sveri20:02:28

I found this: http://jsfiddle.net/7EAgz/ and just used interop 馃檪

tmayse20:02:18

that makes sense. You could also use web audio to synthesize a tone: https://gist.github.com/qleonetti/03a9e15dedf0fd783451

sveri20:02:28

@tmayse Thanks, I found that too, but it looked like to much code for a simple beep

qqq22:02:24

I know that I don't have the optimal cljs debuging env yet. Is there an option for the following:

1) I get a exception/assertion failure in the browser.

2) Inside the browser, I want a stack trace of all function calls.

3) I want to be able to, for each function call, see the argument passed to it.
^^ in plain clojure, there is cursive which supports this. in cljs / browser debugging, is there anything which does the above ?

thheller23:02:46

@qqq chrome has a "pause on exception" option which jumps right into the debugger (in the sources tab)

qqq23:02:01

is there some tutorial/github repo that will walk me through setting up the optimal cljs/chrome dev tools debug env? so I can just copy it and have the "right thing"

thheller23:02:24

not much you need to do really

thheller23:02:45

it should just work

thheller23:02:51

@darwin did experiment with node --inspect by any chance? is it possible to get customFormatters hooked into there?