This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-13
Channels
- # bangalore-clj (1)
- # beginners (29)
- # boot (13)
- # braveandtrue (5)
- # clara (5)
- # cljs-dev (42)
- # cljsrn (7)
- # clojure (55)
- # clojure-france (46)
- # clojure-nl (11)
- # clojure-portugal (1)
- # clojure-russia (268)
- # clojure-spec (26)
- # clojure-uk (32)
- # clojurescript (173)
- # clr (2)
- # core-async (46)
- # cursive (22)
- # datomic (33)
- # devcards (1)
- # emacs (5)
- # events (8)
- # figwheel (2)
- # flambo (4)
- # instaparse (8)
- # jobs (11)
- # klipse (46)
- # lein-figwheel (3)
- # london-clojurians (2)
- # nrepl (1)
- # off-topic (29)
- # om (4)
- # om-next (8)
- # pedestal (3)
- # rdf (4)
- # re-frame (51)
- # reagent (104)
- # remote-jobs (1)
- # rum (4)
- # schema (2)
- # specter (19)
- # untangled (16)
- # vim (52)
@viebel decided to take another look at my macro related issue, and here's something interesting I've found: https://tinyurl.com/hsmx6we
I’m a bit out of context
Could you please refresh my memory
I rememeber the general topic
But what was the specific issue
I remember somethign that was running fine on lumo but failed on klipse
Now I remember
what I've discovered now may be a hint to you, since you're familiar with how klipse loads / compiles / evals namespaces
I hope so
and I’m verry thankful to you
Will try to see if it helps
What is your exact use case?
I mean in what context do you want to load your library inside klipse?
Oh. I remember
I think that if you use the caching feature of the klipse theme it should work
@viebel 2 things: first, it seems to work now (and is also a lot faster!), but klipse tries to evaluate the initial expressions before the require-statement
is evaluated. Second, despite working with lumo, the way klipse loads namespaces is probably still messed up somehow
1. Can you upload somewhere the html where you see that the initial expressions are evaluated before require-statement
?
2. 100% agree - Still hoping to solve it. I tried to add ?verbose=1
in order to see the exact loading of the namespaces. But still wasn’t able to solve it
you can see it happen here: http://moxaj.github.io/mikron/mikron.core.html
it's pretty easy to guess why it happens: my require-statement
takes longer than 3 seconds, which I believe is the delay for auto evaluation
Could you add a (js/console.log “a”)
in the require
snippet and (js/console.log “b”)
into the 2nd snippet?
And I’m in the train with a very bad cellular network
Write whatever you discover here and I’ll take a look when I get home
Oh, I see that the require statement failed
you can make it visible from the browser console
#error {:message "No such macros namespace: cljs.spec, could not locate cljs/spec.clj or cljs/spec.cljc", :data {:tag :cljs/analysis-error}}
But if I re-eval the require statement, the error disappears
I mean, in the browser dev tools