This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-11
Channels
- # adventofcode (7)
- # aws-lambda (1)
- # beginners (161)
- # cider (19)
- # cljsjs (5)
- # cljsrn (30)
- # clojure (80)
- # clojure-korea (2)
- # clojure-new-zealand (8)
- # clojure-russia (73)
- # clojure-sanfrancisco (1)
- # clojure-spec (14)
- # clojure-uk (12)
- # clojurescript (84)
- # cursive (7)
- # defnpodcast (8)
- # dirac (16)
- # events (2)
- # garden (7)
- # hoplon (178)
- # off-topic (2)
- # om (58)
- # om-next (2)
- # onyx (21)
- # pedestal (1)
- # planck (15)
- # protorepl (32)
- # re-frame (31)
- # untangled (1)
- # yada (5)
hey all has anyone tried connecting the proto-repl to a fighweel repl instance? does that work?
Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value)(...).Nc is not a function
@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! 🙂
@stevechan when hunting for externs issues under advanced mode, enable :pretty-print true :pseudo-names true compiler options, it will give you some context
I've encountered a strange cljs compilation error that I would like to share with the community.
I have recreated a minimal scenario if someone would like to see: https://github.com/28/openlayers-cljs-compile-error-repo
@28 If the error is accompanied by a stack trace, it would be very useful to include that
@28 probably a bug, I think David has mentioned before that there are still some rough edges in Windows
JIRA would be the way to do it
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
write-javascript
calls rel-output-path
to create the file path
@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
Ah, right, it is a Closure lib and not foreign lib
I.e line: https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/closure.clj#L448
@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
@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).
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))))
So, I've opened a jira for this: http://dev.clojure.org/jira/browse/CLJS-1868
just listening to your euroclojure defn podcast interview @dnolen 🙂
@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.
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?
Just spent the evening creating this: https://gist.github.com/rauhs/ac6349dd20f1799982a1906f9a59e7d6
Partial motivation: https://ryantsao.com/blog/virtual-css-with-styletron
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.
My attempt to sway developers to ClojureScript:
https://medium.com/degree9/how-it-feels-to-learn-clojurescript-in-2016-1372ed894ab5
@flyboarder @puppybits nice posts 🙂
@dnolen thanks that means a lot coming from you!
is anyone using boot, boot-reload, and pedestal together? i.e. using pedestal instead of pandeiro/boot-http
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 …