Fork me on GitHub
#clojurescript
<
2016-12-11
>
stevechan01:12:22

I use the [cljsjs/moment “2.9.0-0”] and [cljsjs/jquery "2.1.4-1"]

stbgz01:12:56

hey all has anyone tried connecting the proto-repl to a fighweel repl instance? does that work?

stevechan01:12:35

I’t work ok

stevechan01:12:43

thanks all 😄

stevechan02:12:19

Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value)(...).Nc is not a function

jrheard02:12:32

@stevechan i’m heading out the door, so i can’t stick around to actually help answer your questions, but: i think you’ll have much better luck getting help in slack if you include more context+information in your questions. right now, we have “here is an error message i am seeing” and a screenshot, which is a good start - but it would be very helpful if we could also see the clojurescript code you’ve written that’s generating this error, and if you included more information like “i’m trying to do X and Y, but i’m seeing Z; i’ve tried A and B to fix it, but those haven’t worked” - etc. it looks to me like you’re seeing an issue where some minified javascript is throwing a “foo is not a function” error - but it’s difficult to give advice on how to fix that error if we don’t have any other information. ok, heading out, good luck! 🙂

stevechan02:12:14

I use jq and daterangepicker in production

stevechan02:12:14

and my jq use the cljjs : [cljsjs/jquery “2.1.4-0”]

stevechan02:12:45

r is reagent 😄

stevechan02:12:35

I think the erro is form reagent and jq , may be version problem

darwin03:12:57

@stevechan when hunting for externs issues under advanced mode, enable :pretty-print true :pseudo-names true compiler options, it will give you some context

stevechan04:12:53

I use reagent + AdminLTE, I’t erro

stevechan04:12:07

It’s work now in production 😄

2811:12:59

I've encountered a strange cljs compilation error that I would like to share with the community.

2811:12:50

I have recreated a minimal scenario if someone would like to see: https://github.com/28/openlayers-cljs-compile-error-repo

juhoteperi11:12:13

@28 If the error is accompanied by a stack trace, it would be very useful to include that

2811:12:49

Yup, Im working on it

2812:12:31

I've added an example stacktrace.

anmonteiro12:12:27

@28 probably a bug, I think David has mentioned before that there are still some rough edges in Windows

2812:12:25

I guess so, there was a fix in cljs regarding path on win but it was like 5 years ago.

2812:12:49

The question is what should I do next?

2812:12:00

How can I report this? Only on jira?

anmonteiro12:12:05

JIRA would be the way to do it

2812:12:03

Well I will try to do that.

juhoteperi12:12:37

I think this change touched the problematic code, so it might be good to check with cljs master also: https://github.com/clojure/clojurescript/commit/97d2d61e78ce747d02d0e5b2ced706f6fb68ec4e

juhoteperi12:12:01

write-javascript calls rel-output-path to create the file path

2812:12:23

Hm, I've tried with master now, no luck again.

2812:12:39

Same error.

thegeez13:12:14

@28 when running on Ubuntu I see "Copying jar:file:/..foo.../openlayers-3.15.1.jar!/cljsjs/..bar../webglmaprenderer.js to out/file:/..foo../openlayers-3.15.1.jar!/cljsjs/..bar../webglmaprenderer.js". The colon in the path breaks on Windows. The generated main.js also contains: "goog.addDependency("../file:/..foo../openlayers-3.15.1.jar!/cljsjs/openlayers/development/ol/events/event.js", ['ol.events.Event'], []);" I think the cljs compiler does not account for the possibility of Closure compatible libraries to be in jar files

juhoteperi13:12:40

Ah, right, it is a Closure lib and not foreign lib

2813:12:55

Yea, I've also talked about this on irc, and we made a similar conclusion

2813:12:24

Someone actualy suggested that maybe slash/backslash is the problem.

thegeez13:12:41

@28 I think the problem is here https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/closure.clj#L1472 the openlayers lib is a closure lib, but the file should go through the path-from-jarfile in the :else branch

2813:12:17

So, what to do next?

rauh13:12:49

@28 If you just want to continue working then you could probably just extract the data and put it in your src directory (for now).

2813:12:25

Well, for my project I've switched to linux box, so i avoided the issue.

2813:12:46

But what to do with this "bug"?

2813:12:10

Should I go to jira and open the issue.

thegeez13:12:42

@28 yes this bug should go into jira

thegeez13:12:26

On windows you can try adding this in build.clj:

(alter-var-root #'cljs.closure/rel-output-path
                (fn [orig-fn]
                  (fn [js & args]
                    (apply orig-fn (dissoc js :closure-lib) args))))

2813:12:48

Ok, I will open the issue.

2813:12:01

Hm, interesting.

2813:12:18

I will try that.

2814:12:00

Can anyone tell me is it a well formatted report, since this is my first one. :)\

dnolen14:12:56

@gowder undesirable since spec is 100% optional

robert-stuttaford14:12:34

just listening to your euroclojure defn podcast interview @dnolen 🙂

dnolen15:12:22

@28 looks fine, feel free to submit a patch for the issue 🙂 It looks like a newbie friendly one. Jump in #cljs-dev if you have questions.

2817:12:33

Thanks @dnolen I will start working on it.

exupero19:12:44

Try the #om-next channel.

samcf19:12:13

thanks @exupero i'll move it there

rauh20:12:37

ANN: Ever wanted to write inline css styles that allow pseudo selectors (`:hover`), media queries, auto-prefixing of attributes and automatically generated the smallest amount of css?

rauh20:12:04

Production overhead: 0kb (gzip'ed 🙂 )

rauh20:12:31

Completely figwheel compatible and updates on the fly as you save.

puppybits20:12:40

I finished a rough draft of my post to try to convince Angular devs to move to React and React devs to move to ClojureScript. https://medium.com/p/46925c7efd47 I'm going to post it tomorrow. I'd love to hear if anyone has feedback on it. If you add private comments to the Medium it will also credit you in the post.

flyboarder21:12:04

My attempt to sway developers to ClojureScript:

flyboarder23:12:08

@dnolen thanks that means a lot coming from you!

hagmonk23:12:40

is anyone using boot, boot-reload, and pedestal together? i.e. using pedestal instead of pandeiro/boot-http

hagmonk23:12:33

basically I have a cljs app that needs a backend and I wanted to use pedestal, but it looks like I might have to give up on boot-reload if I want that …

pandeiro23:12:12

@hagmonk boot-reload has its own httpkit backend for doing the web socket connection it needs; your choice of server framework is irrelevant as long as you can serve your frontend files

pandeiro23:12:16

Also, you may find more info in #boot

hagmonk23:12:36

ah, that makes sense, I see where that’s going … I’ll ask in #boot. thx.