This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-04
Channels
- # admin-announcements (6)
- # alda (1)
- # announcements (3)
- # aws (4)
- # beginners (233)
- # boot (82)
- # cider (11)
- # cljsjs (21)
- # cljsrn (7)
- # clojure (262)
- # clojure-japan (1)
- # clojure-russia (129)
- # clojure-sg (2)
- # clojure-taiwan (2)
- # clojurecup (23)
- # clojurescript (162)
- # clojurex (3)
- # core-async (18)
- # cursive (81)
- # datavis (183)
- # datomic (23)
- # emacs (2)
- # funcool (25)
- # ldnclj (82)
- # lein-figwheel (3)
- # om (196)
- # onyx (74)
- # parinfer (7)
- # portland-or (12)
- # re-frame (60)
- # reagent (48)
- # slack-help (1)
- # yada (9)
@kenny: you don't really connect to boot cljs repl. You connect to boot's clj repl and then run (adzerk.boot-cljs-repl/start-repl)
from there and it switches the current repl to talk to the browser.
(things defined/refered from build.boot
are visible from boot.user
namespace boot cljs repl starts in, so you can define a convenience function that calls that and/or refer that var)
Minor annoyance: I keep getting a reflection warning for printStackTrace
whenever I print a stacktrace
It would also be ideal if, when cursor is positioned at the end of a hyphenated name-like-this
, Cntl Backspace
removed the whole thing in one go. Similar to the turtling issue (now fixed but only with key re-binding).
@rauh: why not just use the pst function?
@roelof I get nagged about new versions of IDEA. I'm not exactly sure what happens with plugins. I'm still on 14.1.5 of IDEA.
I ask because you said that one of these days a new version of cursive will come out and I hope my template problem is solved
@alexmiller: It's when I use Cursive's own Print last exception
function that I get the reflection warning.
I did once try to get a REPL from within Cursive but gave up after an out of memory error. I can get a lein repl
going from a windows console easily enough. On my 'to do list' is to have a REPL that comes up and is already in a particular namespace (where I do the 4 Clojure Koans). Items in my 'to do list' are sometimes represented as SO questions: http://stackoverflow.com/questions/33982533/clojure-boot-repl-in-a-particular-namespace
@rauh: gotcha, thx!
@jaen: I run cljs-repl
and then boot repl -c
and (start-repl)
in the REPL. When I open the REPL pane in IntelliJ it is still Clojure. I can tell this by executing (+ 1 "1")
. This would work in cljs and show a warning but in Clojure I just get a ClassCastException.
Hm, interesting, I'll have to re-check, but I'm pretty sure Cursive was smart enough to change to cljs repl automatically
(deftask dev []
(comp
(watch)
...
(bcr/cljs-repl)
(bc/cljs ...)
...)
(defn cljs-repl! []
(bcr/start-repl))
@roelof: I think IntelliJ checks in the backgrounds for updates to plugins
Clojure 1.7.0
(cljs-repl!)
<< started Weasel server on ws://127.0.0.1:37381 >>
<< waiting for client to connect ... Connection is ws://localhost:37381
Writing boot_cljs_repl.cljs...
connected! >>
To quit, type: :cljs/quit
=> nil
If I run it first I just get
Error connecting to 127.0.0.1:37478 - class java.net.ConnectException: Connection refused
One thing off the top of my head that might cause it is you have a wrong .nrepl-port
file generated.
Hm, interesting. Can you pastebin your build.boot
and printscreen your run configurations?
build.boot http://pastebin.com/g0pfqBtH
Run configs: http://imgur.com/MrsH16j
I can do this: boot dev
, boot repl -c
, (cljs-repl)
and I get a cljs-repl in the console but not in the REPL pane.
Are you 100% positively sure you are running the same project in Intellij and in the terminal?
What URL do I connect to in the browser? When running boot dev it does not serve my project.
Stuck at:
started Weasel server on >>
<< waiting for client to connect ... Connection is
Writing boot_cljs_repl.cljs...
Well, I suppose that's something to bring up in #C053K90BR; what I described always worked for me with boot+Cursive.
I think boot hanging at Writing boot_cljs_repl.cljs...
meant something, but can't remember what it was.
Here is a screencast of what is happening: https://youtu.be/5rA_wP7PZEI
Hah, I suppose there could be. I don't remember it being that much of a problem to get it working for me, but I agree you have to figure it out looking at a few separate things, which is less than ideal.
@kenny: by the by, I suggest you add
[org.clojure/clojure "1.7.0" :scope "provided"] ; or whichever version you're using
[org.clojure/clojurescript "1.7.170"]
should probably solve the version conflicts.