This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-05
Channels
- # admin-announcements (10)
- # beginners (18)
- # boot (29)
- # capetown (2)
- # cider (46)
- # cljs-dev (1)
- # cljsrn (69)
- # clojure (126)
- # clojure-android (9)
- # clojure-gamedev (3)
- # clojure-greece (16)
- # clojure-poland (13)
- # clojure-russia (45)
- # clojure-spec (27)
- # clojure-uk (21)
- # clojurescript (99)
- # cursive (1)
- # datascript (1)
- # datomic (42)
- # functionalprogramming (10)
- # hoplon (47)
- # instaparse (12)
- # jobs (5)
- # jobs-rus (9)
- # keechma (22)
- # lein-figwheel (8)
- # leiningen (5)
- # luminus (1)
- # mount (7)
- # off-topic (1)
- # om (15)
- # onyx (47)
- # other-languages (14)
- # planck (28)
- # proton (8)
- # re-frame (30)
- # reagent (15)
- # remote-jobs (3)
- # slack-help (2)
- # untangled (9)
- # yada (6)
@malabarba: reopening the file did help. Thanks!
could anyone help me with specifying an indent spec?
the docs are a bit confusing
When I use cider with boot, cider-find-var
jumps to a path in my boot tempdir. Is there a way around that?
looks like this should be handled by https://github.com/clojure-emacs/cider-nrepl/pull/270
hm... I'm using boot 2.5.5, cider/cider-nrepl "0.12.0" and cider 20160629.946
still jumps to the tempdir
@malabarba: Did you have any ideas on getting *nrepl-server*
to mirror its messages to *cider-repl*
?
I’m getting this error now when starting cider:
[nREPL] Establishing direct connection to localhost:49716 ...
error in process filter: [nREPL] Direct connection failed [2 times]
i have no idea what might have caused it. I haven’t modified my emacs configuration in months
@pesterhazy: It works fine for me. Are you sure these are boot tempdir and not clojurescript tempdirs? Also, maybe try 0.13.0-snapshot
(add-hook 'cider-connected-hook
(lambda ()
(save-excursion
(goto-char (point-min))
(insert
(with-current-buffer nrepl-server-buffer
(buffer-string))))))
It'll just insert on the repl buffer everything that's on the nrepl buffer when you connect
What if it never connects? When something goes terribly wrong, e.g. with the dependencies, sometimes the REPL fails to even start, and I just end up waiting five minutes before I check *nrepl-server*
and realize that the *cider-repl*
buffer is never going to open. (This is the primary reason that the default behavior annoys me.)
That’s probably true as well, but since the REPL for a large project can take several minutes to start up, I’ll be in the middle of other editing by that point.
In fact, I think the message is the entire stacktrace, so it usually resizes my whole window to make the echo-area fit the stack trace. It's quite hard to miss ^^
Yes, I think that would be good default behavior. I would still prefer the REPL buffer to open immediately, so it can show log messages even if the REPL server hasn’t properly started, but I can see why other people wouldn’t want that.
It's not that people wouldn't want that. I think it's more that it would complicate code.
The repl buffer is created when the repl connection process is started. Separating the two would not be worth the complications.
And we can't make the repl connection any sooner than we already do, because that's up to lein/boot, not us.
I am really very knowledge-less in the field of elisp, but it seems to me that it wouldn’t be too hard to make cider-jack-in
create a buffer named *cider-repl*
, and then replace the code that creates the buffer with code that uses the existing buffer (or creates a new one, if the first one has been killed by the user in the interim).