This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-28
Channels
- # aatree (3)
- # alda (8)
- # avi (21)
- # beginners (37)
- # boot (193)
- # cbus (1)
- # cider (29)
- # cljs-dev (8)
- # cljsjs (3)
- # cljsrn (20)
- # clojure (76)
- # clojure-dev (13)
- # clojure-miami (20)
- # clojure-portugal (2)
- # clojure-russia (220)
- # clojure-sg (2)
- # clojurebridge (5)
- # clojurescript (94)
- # community-development (14)
- # conf-proposals (110)
- # core-async (12)
- # cursive (12)
- # datascript (6)
- # datomic (14)
- # dirac (72)
- # emacs (49)
- # hoplon (86)
- # jobs (33)
- # jobs-discuss (1)
- # ldnclj (6)
- # lein-figwheel (1)
- # off-topic (56)
- # om (139)
- # onyx (29)
- # pedestal (17)
- # proton (23)
- # re-frame (45)
- # reagent (35)
- # ring-swagger (4)
- # test-check (1)
- # testing (8)
- # yada (11)
Do you have troubles with cljs ? I have different projects with the same client server architecture and bootfile posted in #C053K90BR
When I delete the target dir after java update there is no warning when launching the task
it seems like it compiles but I get I get "ReferenceError: project1 is not defined" in the js console
@dnolen: ok nvm this is not the prolem. Somehow when switching projects on the same port the browser keeps looking for the previous project
I did a reboot after the rollback and the fact that there was a java update right before the problem occurs was a coincidence
simple workaround when working on simultaneous projects is to disable cache -> refresh -> enable cache again
I have some trouble using @cemerick 's friend library with slacks oauth2. Following instructions for a oauth2 plug-in here: https://github.com/ddellacosta/friend-oauth2/wiki and it seems that slack has the same mechanism as Google oauth2 with a code and state param that get sent to a redirect url.
I've set-up an ngrok tunnel to my local so I can visit the page and go to slack and authorize the requested scope. The slack page then sends a 302 to the ngrok with code and state params but that seems to do another 302 looping forever. I must have done something wrong with the configuration but I have trouble figuring out what.
Sorry bbss, I’ve been terribly neglectful of that library lately
but in any case, if you give me more information about what the problem is, I can help—as it is it’s hard to tell what you are experiencing.
(or try to help at least)
…although, if you aren’t wedded to friend yet I would consider something else, check out buddy too
I can make a snippet of what I have, I am fairly new to ring and such, so no, not wedded to friend.
so, those are two totally different discussions but first of all why don’t you try giving me a gist or whatever of what you have, and describe your problem further, and I’ll see what I can do. BTW this probably belongs in #C03S1KBA2 vs #C03S1L9DN, but we can also take it to DM
looking, will ping you directly
I put it in clojurescript because I figured it might be related to that I am hosting the page as an spa not by server side rendered html.
yenda: I don’t want to say anything that sweeping or speak for the Clojure community there. Just my opinion that it’s worth reviewing all the options that are out there.
and having used buddy elsewhere, I like it
I tried friend when I first started clojure but I gave up I had too much to learn first, I'll be needing some auth library soon
yeah, I don’t necessarily want to make any claims about which one is better—as I said, good to review both (and anything else that is out there that I’m unfamiliar with) and see what you like
hi. guys. do we have anyone maintaining http://clojuredocs.org?
when i was checking golang, the sample code on the page is editable and you can change it and run it to see the difference
so i am thinking, not sure if it's possble, can we enable clojurescript in the page, we don't even need to eval the code, so it's no risk. we just need to have it translate to js and let js run inside browser
@yenda: contrary to roberto - I'm in the buddy camp because I couldn't wrap my head around friend.
If you're familiar with Ruby ecosystem a good comparison would be that friend is more like devise (tries to everything) while buddy is more like sorcery (a set of building blocks for auth).
2015 state of clojure/clojurescript results: http://blog.cognitect.com/blog/2016/1/28/state-of-clojure-2015-survey-results
Running thru the quickstart. Is there any reason the browser repl wouldn't work over the internet (as opposed to via localhost)?
I'm attempting to start the repl on an ec2 instance. I'm at the point where my browser is successfully fetching every resource except this one (according to chrome dev console) :
http://<ip address>:8080/repl?xpc=<...omitted...>robots.txt%22%7D
console points to crosspagechannel.js:486
Meanwhile the repl just hangs with the message Waiting for browser to connect ...
This is Java 8, cljs 1.7.228. I'm using a nonstandard port (8080) for the repl.
@jaen not sure, checking… but wouldn’t the fact that the browser is able to retrieve all other resources indicate it’s not a problem with binding?
Also looking at the source I can't seem to find an option to specify hostname to bind to.
@jaen so perhaps crosspagechannel.js
is just implicitly hardcoded to localhost? (I’m just beginning to browse through that file.)
This here suggest it's binding to localhost
- https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/repl/browser.clj#L289
so maybe try (assoc (cljs.repl.browser/repl-env) :host "0.0.0.0")
for your browser REPL?
It was user error all along! (Meaning, I had mistyped an IP address.) Increment the stupid counter. (Thanks again @jaen)
On the State of Clojure(script) summary it mentions that a lot of people feel it is hard to debug generated JS but doesn't source maps solve that? I have not had major difficulties. Or at least it is not any harder than normal js
@kamn yeah as @jaen is alluding - I think they don’t mean step debugging they mean JS printing of CLJS values
the former would be surmountable if JS source map support in browsers actually respected column information
@jaredly I suspect there are a couple of simple enhancements that can be made - somebody just has to do it
I think this would mostly be an issue of not emitting enough source map info at key points
and it should be determined whether that is a bug in a browser X or Y or a friendly attempt at guessing in browser X or Y
which is why I haven’t looked at it myself - quite of bit of sleuthing to do that doesn’t have much to do with writing code
@dnolen: Are there JIRA stories for source map enhancement?
@spinningtopsofdoom: there aren’t since nobody has actually done the research to actually describe some specific task(s)
happy to see someone do the leg work necessary to actually enumerate all the various ways in which source mapping is going wrong
I'd be happy to work on fixing source maps but haven't run into any problems myself. @jaredly I'd be happy to help you if you could give me broken source map examples
Thanks I always thought it was more involved then that