This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-02
Channels
- # arachne (8)
- # beginners (48)
- # carry (4)
- # chestnut (2)
- # cider (12)
- # cljs-dev (3)
- # clojure (28)
- # clojure-belgium (2)
- # clojure-brasil (1)
- # clojure-greece (4)
- # clojure-russia (6)
- # clojure-spec (1)
- # clojurescript (32)
- # cursive (11)
- # defnpodcast (2)
- # euroclojure (1)
- # hoplon (43)
- # jobs (2)
- # jobs-rus (10)
- # off-topic (11)
- # om (32)
- # onyx (28)
- # overtone (5)
- # parinfer (4)
- # planck (11)
- # protorepl (2)
- # reagent (2)
- # spacemacs (3)
- # yada (5)
just got bitten by the implicit refer all in the page macro again. while importing some code from another project, i failed to account for the free variable p
below.
(elem :w (r 1 1) :h 66 :p p :c white)
this took a few mins longer than it would normally take me to figure out, however, since p was being bound to the paragraph fn and consequently throwing off the error message:
ui.cljs:105Uncaught Error: Error validating attribute of type length with value function (var_args){
var rest__9347_SHARP_ = null;
if (arguments.length > 0) {
var G__9351__i = 0, G__9351__a = new Array(arguments.length - 0);
while (G__9351__i < G__9351__a.length) {G__9351__a[G__9351__i] = arguments[G__9351__i + 0]; ++G__9351__i;}
rest__9347_SHARP_ = new cljs.core.IndexedSeq(G__9351__a,0);
}
return G__9350__delegate.call(this,rest__9347_SHARP_);}.
@jumblerg: to avoid that I do most of work on .cljs files, only using .hl for pages that only calls other namespaces doing as little as possible.
nah, it's like 5 minutes work to make a task that implements your own page
thing, transforms it into a hoplon page
decl
i’m not exactly sure what that change should be yet, i haven’t dug into the implementation, just making the general case for it.
i think maybe it should go the other way, though… page should take a :`refer :all` sort of thing.
there’s also a bug i recall ignoring some time ago that pops up when there are multiple pages in the same project