Fork me on GitHub
#clojurescript
<
2015-06-06
>
bhagany00:06:57

Re: Figwheel naming - the readme used to have this explanation: File Eval Gui Loop > FEGL > FEGUIL > "figwheel"

zoldar10:06:54

Does anyone have problems loading material fonts from figwheel server with re-frame template? Chrome and FF fail to load them for me.

ul10:06:43

of course they fail. in index.html they are under assets prefix, but on disk under vendor

zoldar10:06:56

I mean fonts from re-com that I've added when creating the re-frame project

zoldar11:06:42

@ul but when I point the assets the URL directly, they are loaded alright

ul11:06:05

wait a minute, i will create project from template and recheck

zoldar11:06:13

the FF tells me that the font is "rejected by a sanitizer", whatever that means

zoldar11:06:52

I've tried searching the possible cause but explanations are vague

zoldar11:06:12

in Chrome it's "failed to decode downloadable font"

ul11:06:13

i confirm

ul11:06:22

both browsers report that font file is broken

zoldar11:06:25

the demo here is working: http://re-demo.s3-website-ap-southeast-2.amazonaws.com/#/button - the only difference I see initially is the content-type there being application/octet-stream

zoldar11:06:48

don't know if that's even relevant

borkdude11:06:20

@zoldar: you have to set the content type yourself on s3 I think

ul11:06:15

hashes differ: a2a1ba89e7f9d29f7d5aee76e8b9f7ab 2f1ba61f904c3a7b9a9bc7e1463c723d assets/fonts/Material-Design-Iconic-Font.woff

ul11:06:57

with file from re-com demo everything works

ul11:06:05

i think you should file an issue

zoldar11:06:34

@ui will do it later, thanks for help

ul11:06:56

@mikethompson: see ^^^, re-frame +re-com template fonts are broken

estsauver12:06:08

Transit-cljs doesn’t preserve metadata does it?

dnolen13:06:35

estsauver: transit-format itself doesn’t specify anything about metadata, so no.

dnolen14:06:23

@estsauver: it came up, but a lot of languages don’t support a notion of metadata so it would complicate implementations for all except Clojure/ClojureScript

estsauver14:06:36

Yah, makes sense.

gadfly36117:06:22

re: re-frame-template, @ui I tried to replace the .woff file in template with the one from re-com demo and I still am getting broken_font/views.js notice. (The notice goes away on refresh of page, but not if you make change to source files).

mfikes19:06:37

Reagent fans: It works with React Native: https://github.com/chendesheng/ReagentNativeDemo

dnolen19:06:51

:thumbsup:

ul19:06:59

@gadfly361: strange, i've replaced and font loaded w/o errors displaying icons normally

jmckitrick19:06:01

Is there any way to make Firefox as functional as Chrome for React debugging and Clojurescript in general?

gadfly36119:06:07

@ul thanks for confirmation! I'll try again a little later.

mfikes19:06:39

dnolen: It is technically interesting that that Reagent React Native demo works by having the React Native packager load the entirety of ClojureScript’s Google Closure + application CLJS code “flat” JavaScript as a single encapsulated CommonJS module, alongside the other React Native CommonJS modules. (Backwards or reverse of the approach that @maria's GSoC will lead to.)

mfikes19:06:49

(That works, but it seems to preclude Closure DCE, along with probably other consequences.)

dnolen19:06:14

@mfikes: so just :simple optimizations + a require?

mfikes19:06:31

@dnolen: Looks like :optimizations :whitespace. The interesting technical bit is our friend appearing in the midst of the React Native packager output: https://gist.github.com/mfikes/75f63f90a024393a3543

dnolen19:06:20

@mfikes: ah so you’re creating a little wrapper so React Native can load it, or did React Native do that for you?

mfikes19:06:11

@dnolen: I didn’t create it. simple_smile I’m dissecting what https://github.com/chendesheng created.

dnolen19:06:42

is this the thing from the recent presentation?

mfikes19:06:54

@dnolen: I don’t fully comprehend how it works.

mfikes19:06:18

@dnolen: There has been a long-standing Reagent ticket asking for React Native support. Finally chendesheng just did it. https://github.com/reagent-project/reagent/issues/119

mfikes19:06:04

One consequence of chendesheng’s approach is that it probably precludes REPL support as the application code is ensconced in a protective CommonJS closure.

gadfly36122:06:33

@ul: After trying it again, I am able to get the icons to show as expected - thanks! I will push out a new version of re-frame-template today. CC: @mikethompson @zoldar

zoldar22:06:38

@gadfly361: great that it got sorted. I'm just about to sit down and play around with re-frame + re-com simple_smile

skuro23:06:46

if I have [org.clojure/core.async "0.1.346.0-17112a-alpha”] in my dependencies, but figwheel still complains with No such namespace: clojure.core.async, what could I be doing wrong?

zoldar23:06:38

@skuro it's cljs.core.async for clojurescript

skuro23:06:26

@zoldar: needed another pair of eyes, thanks!

zoldar23:06:59

@skuro: heh, same timezone

skuro23:06:06

@markstang: hey there, nice to see you around here simple_smile

markstang23:06:47

@skuro 😀 you too! cljs + alfresco?

skuro23:06:30

just cljs at the moment