This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-29
Channels
- # aatree (1)
- # admin-announcements (7)
- # announcements (3)
- # beginners (125)
- # boot (164)
- # braid-chat (8)
- # cider (26)
- # cljsrn (37)
- # clojars (3)
- # clojure (162)
- # clojure-argentina (1)
- # clojure-art (2)
- # clojure-berlin (5)
- # clojure-czech (3)
- # clojure-ireland (1)
- # clojure-miami (1)
- # clojure-norway (9)
- # clojure-russia (47)
- # clojurebridge (1)
- # clojurescript (151)
- # community-development (1)
- # conf-proposals (80)
- # core-async (15)
- # core-matrix (1)
- # cursive (66)
- # datomic (26)
- # emacs (17)
- # events (10)
- # funcool (59)
- # hoplon (43)
- # incanter (2)
- # jobs (10)
- # ldnclj (8)
- # lein-figwheel (18)
- # luminus (1)
- # off-topic (19)
- # om (144)
- # onyx (167)
- # overtone (9)
- # parinfer (12)
- # pedestal (1)
- # proton (158)
- # re-frame (139)
- # reagent (48)
- # test-check (19)
- # testing (43)
hey @laforge49 I’m printing session whenever I login in the castra-chat demo (not castra-notify-chat) and I’m seeing a session-id in session . Could you clue me in on where session-id is being set? I can’t find any real instance of “session-id” in castra-chat or castra itself. So I’m at a bit of a loss.
Oh wait, I've got it. I suspect that at one point a while back you ran castra-notify-chat or castra-notify-random. Since all these programs use the same url, localhost:8000, they share the same session cookie. Try deleting your cookies in the web browser or changing browsers.
@levitanong: see above
... @laforge49 I feel like a fool. That's exactly what it was! Thanks again!
Now I'm back with my own stupid errors. Here's the project: https://github.com/aatree/aademos/tree/master/w3c-worker
Compiling Hoplon pages... ò count\index.cljs.hl Compiling ClojureScript... ò index.html.js adzerk.boot_cljs.util.proxy$clojure.lang.ExceptionInfo$ff19274a: ERROR: Wrong number of args (1) passed to: core/eval7844/defc--7985 at file hoplon\app_pages\indexDOT_html.cljs, line 5, column 1 data: {:file "hoplon\\app_pages\\indexDOT_html.cljs", :line 5, :column 1, :tag :cljs/analysis-error, :from :boot-cljs} adzerk.boot_cljs.util.proxy$clojure.lang.ExceptionInfo$ff19274a: Wrong number of args (1) passed to
Fixed. (defc counter) threw this error. Changed it to (defc counter 1) and now everything is fine.
@micha Here is my complaint: How do I get to see the indexDOT_html.cljs file containing the error????
OK, I do see that the line number in the error message matches up with the line in the .hl file causing the error.
First attempt at converting js to cljs. Here's the js if(typeof(w) == "undefined") { w = new Worker("demo_workers.js"); } w.onmessage = function(event) { document.getElementById("result").innerHTML = event.data; }; And here is what I have, which does not seem to do anything: (defc counter nil) (def w (atom nil)) (defn start-worker [] (if (not @w) (reset! w (js/Worker. "demo_workers.js"))) (set! (.-onmessage w) #(reset! counter (.event %)))) Now I have confirmed that the webworker IS created. I've also confirmed that the demo_workers.js file works. So I think there is something wrong with my call to set! Any ideas? Thanks!
This was unexpectedly easy! Here's the code that works: (defc counter nil) (def w (atom nil)) (defn start-worker [] (if (not @w) (reset! w (js/Worker. "demo_workers.js"))) (set! (.-onmessage @w) #(reset! counter (.-data %))))
@laforge49: you should be able to click on the error in your browser
or you can expand a stack trace in the js console and go to a line corresponding to some other stack frame
yes, but I had no idea what the line should be. and it was just not doing anything. no error. First time converting js.
Oh, you're talking about the previous error. Well, that was not a js console error.
Anyway, I looked very closely at the error and realized the line numbers match the .hl file
It just takes time to be able to read them messages. First glance and it really threw me 'cause it was talking about a file I didn't have.