This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-10-20
Channels
- # admin-announcements (2)
- # beginners (38)
- # boot (12)
- # business (2)
- # cbus (2)
- # cider (8)
- # cljs-dev (32)
- # clojure (154)
- # clojure-brasil (43)
- # clojure-czech (3)
- # clojure-dev (5)
- # clojure-germany (1)
- # clojure-japan (2)
- # clojure-nl (2)
- # clojure-poland (9)
- # clojure-russia (29)
- # clojure-sg (12)
- # clojurescript (147)
- # clojurex (22)
- # community-development (2)
- # cursive (8)
- # events (3)
- # ldnclj (30)
- # ldnproclodo (1)
- # leiningen (1)
- # luminus (34)
- # off-topic (6)
- # om (255)
- # re-frame (1)
- # reagent (22)
- # rum (2)
- # yada (1)
@dnolen: Tried deraen’s patch on a small personal project, but unfortunately having some problems when requiring cljs.js
. Here is a minimal project to reproduce the problem: https://github.com/mneise/cljs-1437-test
Tried it with and without the patch and only got those errors once I applied the patch.
Strange. Only change to a cljc file is adding one function. Most of changes on closure.clj.
Probably related to this line: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/js.cljs#L23
If you compare the dependencies included in cljs_deps.js
you can see that there are two missing: cljs.core$macros
and clojure.walk
.
I think this is related to changing how dependencies are added during build process. Before, files were compiled and the compiled JS was checked for goog.require and goog.provide and then those CLJS ns were compiled.
After the change, only ns form is read from cljs files.
@maria thanks for the check! I recall that cljs.js needs special deps handling same as node.js
@juhoteperi: maybe this isn't there any longer? ^
@dnolen: There's different kind of special handling for cljs.js. get-compiled-cljs
and cljs-source-for-namespace
do special things.
get-compiled-js
was used in cljs-dependencies
and then dependencies were read from the compiled JS
@juhoteperi: right but it seems something is getting skipped?
@dnolen: Well the new code doesn't compile namespaces so it doesn't see dependecies which are generated from code using js/goog.require
Hrm not sure I understand yet. But I'll probably be trying this case out myself later today.
@dnolen: ^ you were right yesterday: "we probably need to setOptions
somewhere". It was initOptions
Then, I only have one other in the pipeline (re: node shim) which needs some peer testing
could use some help looking into http://dev.clojure.org/jira/browse/CLJS-1472
it’s the only one other than the dependencies thing I really care about getting into the next release
@dnolen: the patch mentions files that look like this: BCE03FE.js
I'm familiar with them but can't find where those names are created, or pin point why.
@bensu: Sorry to jump in, but I think those names are generated here: https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/closure.clj#L1235