This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-10-24
Channels
- # boot (183)
- # business (3)
- # clojure (65)
- # clojure-argentina (1)
- # clojure-china (1)
- # clojure-conj (2)
- # clojure-japan (2)
- # clojure-russia (5)
- # clojure-ukraine (5)
- # clojurescript (139)
- # community-development (1)
- # core-async (8)
- # core-matrix (1)
- # cursive (7)
- # datomic (2)
- # events (4)
- # hoplon (108)
- # ldnproclodo (1)
- # lein-figwheel (1)
- # liberator (1)
- # off-topic (76)
- # om (37)
- # onyx (12)
- # overtone (1)
- # testing (8)
You’ll never believe what hoplon can do to your google map...
clojure.lang.ExceptionInfo : failed compiling file:src/mk/fe/common/menu.cljs
clojure.lang.ExceptionInfo : No matching method found: indexOf for class clojure.lang.Symbol at line 92 src/mk/fe/common/menu.cljs
java.lang.IllegalArgumentException : No matching method found: indexOf for class clojure.lang.Symbol
Error on file src/mk/fe/common/menu.cljs, line 92, column 5
i'm having troubles with the hoplon "getting started"
anyone available to help?
(def history (cell [])) (add-watch clicks :history #(swap! history conj %3)) (cell= (print history))
appears to do nothing in chrome?
firefox too
(def history (cell [])) (add-watch clicks :history #(swap! history conj %3)) (cell= (pr :thingy history))
just gives me
further clicks do not give extra debug
hi @thedavidmeister would you care to gist your whole file? i can try
Testing on safari, and it seems to work fine.
ill try safari
lots of clicks, no debug 😞
i want to say something very similar happened to @statonjr recently but we got to the bottom of it
i think it was caused by cljs repl
the live reload thing?
it was trying to print to the repl connection instead of the console
na there's an actual repl task that you can connect
but it redirects output to the repl connection instead of the console
do you have anything about a repl in your build.boot?
do i turn that off in build.boot
(deftask dev "Build estimate-work for local development." [] (comp (serve :port 8000 :handler 'estimate-work.handler/app :reload true) (watch) (speak) (hoplon) (reload) (cljs-repl) (cljs)))
try commenting out the line that says (cljs-repl)
that works
awesome
glad i got on chat >.<
glad it worked
so what does the repl do exactly?
there is a function in cljs for setting the print function.... the function things like prn and println should use
hoplon sets it to console log
but the repl machinery then also sets it, to something for piping output to the repl connection
i mean, in a more basic sense
how would i use the cljs repl?
if hoplon wasn't conflicting with it
https://github.com/adzerk-oss/boot-cljs-repl has detailed instructions
soz, i'm a noob
but basically, you connect to the running clojure repl, and run a function there that drops you into a cljs repl
where forms you type get evaluated in the browser
"connect to"?
right
oh, there's a boot command
when you run boot repl
it starts a repl, but that also starts a repl server
that you can connect to from other terminals with boot repl -c
aka the 'repl client'
i do stuff in the browser
and it is visible in terminal?
the other way around
like yuo would type (js/alert "hi")
in your terminal, and see an alert in the browser
personally i think it's not worth all the complexity, compared to live reload
because i can't do that in the javascript console any more
correct
well, i think it's fine from my perspective
i just didn't know about it
you are on a mac, right?
really killed my buzz going through the tutorial
yeah on a mac
https://github.com/mfikes/planck might interest you
spent like 3x longer on this repl thing than the actual tutorial
yeah that sucks
how did you get your initial build.boot btw?
i just ran a lein command
admittedly not the one it said at the start
i wanted to get a server backing
and the tutorial said run the client only buidl
*build
would you mind adding a note about what you saw and how to fix it, at the place where it stumped you?
you are victim #2, sadly
does that sound right?
I just paraphrased my understanding of what you said @alandipert
:thumbsup: , thanks!
would also be curious to know any other ideas you might have for improving the material, i hope to build out the wiki more this weekend
it is a little sparse
i'm going to play around with hoplon a bit more though
it does look really good
it looks like it fits a use-case i have really well
awesome
i'm off for now, thanks again for reporting the issue
np, thanks for fixing it!
@alandipert: I will remove the cljs-repl
from the hoplon-castra
template too, it will cause the same kind of trouble. Or maybe add the cljs-console
to the getting-started and templates. What do you think?
in hoplon we could definitely do something more subtle than just set print fn to console log
we could get the preexisting print fn if one was configured and write to it as well as to the console
Yeah, I'm not sure of how cljs-repl works at all, I only used it enough to make sure that if someone typed (.alert js/console "Hi")
it would work 😉
maybe we should do direct console calls in the tutorial instead of using println
not a bad idea to show interop anyway