This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-29
Channels
- # adventofcode (4)
- # beginners (113)
- # boot (165)
- # cider (192)
- # cljsrn (82)
- # clojure (148)
- # clojure-austin (6)
- # clojure-russia (22)
- # clojure-spec (45)
- # clojure-uk (19)
- # clojurescript (153)
- # core-async (5)
- # cursive (7)
- # datomic (2)
- # defnpodcast (2)
- # emacs (1)
- # hoplon (617)
- # instaparse (10)
- # lein-figwheel (19)
- # luminus (2)
- # off-topic (12)
- # om (3)
- # onyx (36)
- # pedestal (1)
- # protorepl (43)
- # re-frame (8)
- # ring (7)
- # specter (17)
- # testing (2)
- # untangled (117)
- # yada (12)
in cider, when I get an error, it shows "Show: Clojure Java Repl Tooling Duplicates All" -- with Clojure/Java/Repl selected by default. I want only Clojure to be selected by default. Is there a way to configure this in Emacs?
(defcustom cider-stacktrace-default-filters '(tooling dup)
"Frame types to omit from initial stacktrace display."
:type 'list
:group 'cider-stacktrace
:package-version '(cider . "0.6.0"))
5 matches for "cider-stacktrace-toggle '" in buffer: cider-stacktrace.el 439: (cider-stacktrace-toggle 'java)) 444: (cider-stacktrace-toggle 'clj)) 449: (cider-stacktrace-toggle 'repl)) 454: (cider-stacktrace-toggle 'tooling)) 459: (cider-stacktrace-toggle 'dup))
so if you did (setq cider-stacktrace-default-filters (append cider-stacktrace-default-filters '(java repl tooling)))
you should be good to go
@dpsutton: okay, this worked! how did you figure this out? I know enough elisp to write my own defuns and hydras, but I couldn't figure out this cider issue
and now i know to update the validation on that defcustom to make sure its easy to know what values it can take
i guess i should google for 'cider ring' rather than 'cider compojure' which i've done till now, will come back here if still stuck...
fwiw: got it working by adding :nrepl {:start? true}
in :ring
in project.clj
, but autocompletion with company mode doesn't work 😕
(i don't plan on but) you can't run things interactively to muck with server's state from the repl in emacs then i guess right?
i'm not sure if you are dealing with session stuff where inspecting the running instance may be more important
@nikki just guessing but if you connect instead of jacking in you need to add the middlewares yourself
I'm using cider for my clojure development. I need to pick a unit testing framework. The main criterion is "works well with cider". Which one should I use?
I think everyone recommends https://clojure.github.io/clojure/clojure.test-api.html
CIDER plays nice with this. I think sean might be working on some integration with another testing framework but I haven't heard about it in a little while
@dpsutton: you helped me with the cider error reoprt hide java/repl issue last night; I trust your advice; clojure.test it is 🙂
I've never worked inside of the testing side of CIDER so I don't have any knowledge other than commonly repeated advice here
the one thing I feel haskell has over clojure is that I'm much more willing to refactor in haskell, but with a decent testing framework, I may be able to refactor in clojure too
in C, there is an "other-file" which jumps between .h and .c; in cider, is there an "other file" for jumping between src/... and test/... ?
https://github.com/clojure-emacs/cider/blob/master/doc/running_tests.md <-- I'm reading this
and it seems like it'll be easier if I just setup it up as foo/bar.clj vs foo/bar_test.clj
if you have this installed, > C-c p t Toggle between an implementation file and its test file.
Anyone else experiencing major completion slowdowns with the melpa version over the last few days?
When I start program with Cider what is the default lein profile it uses? I assumed that it would use dev profile, but it doesn't seem so
I have web server project and I put some ssl middleware to the ring setup in the prod side, but now sometimes but not always it seems that those setups are used when starting process with Cider.
Can anyone enlighten me - I do not understand where printer
comes from here: https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/out.clj#L57
(defmacro with-out-binding
"Run body with v bound to the output stream of each msg in msg-seq.
Also run body with v bound to `original-out`.
type is either :out or :err."
[[v msg-seq type] & body]
`(do (let [~(with-meta v {:tag Writer}) (case ~type
:out original-out
:err original-err)]
~@body)
(doseq [{:keys [~'session] :as ~'msg} ~msg-seq]
(let [~(with-meta v {:tag Writer}) (get @~'session
(case ~type
:out #'*out*
:err #'*err*))]
(try (binding [ie/*msg* ~'msg]
~@body)
;; If a channel is faulty, dissoc it.
(catch Exception ~'e
(unsubscribe-session ~'session)))))))
hrm… perhaps my mental macro expansion is not up to snuff… I’m going to play with that in a repl
oh wait… I get it. ~(with-meta v {:tag Writer})
expands to a binding with the meta already attached
I’m interested in fixing this: https://github.com/boot-clj/boot/issues/544
well, this is interesting. I have a proof-of-concept fix for this bug: https://github.com/clojure-emacs/cider/issues/1588
The only snag is that I’m getting the stderr output in the repl buffer before the prompt that triggers writing to stderr
@dpsutton okay, here’s a diff https://github.com/clojure-emacs/cider-nrepl/compare/master...bhagany:repl-err
i think java.lang.System/out
is also a Printstream so I'll see if I can't use this idea to fix the bug https://github.com/clojure-emacs/cider/issues/1896
I would call #1896 almost a dupe of #1588. The only difference is stdout vs stderr. My branch should “work” for #1896 as well.
well, if as you refine it you can test it against that, I'm sure they'd love a pull request
here’s what I end up with, just to be as clear as possible
something
user> (.println (java.lang.System/out) "something")
nil