This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-25
Channels
- # announcements (6)
- # asami (1)
- # babashka (80)
- # beginners (89)
- # bitcoin (1)
- # calva (30)
- # cider (33)
- # clj-kondo (1)
- # cljsrn (45)
- # clojars (5)
- # clojure (60)
- # clojure-australia (1)
- # clojure-dev (9)
- # clojure-europe (133)
- # clojure-italy (7)
- # clojure-nl (6)
- # clojure-uk (44)
- # clojurescript (11)
- # conjure (1)
- # data-oriented-programming (2)
- # datahike (13)
- # datascript (4)
- # datomic (19)
- # deps-new (29)
- # depstar (5)
- # duct (39)
- # fulcro (8)
- # girouette (1)
- # helix (10)
- # honeysql (17)
- # jobs (5)
- # jobs-discuss (2)
- # leiningen (6)
- # lsp (51)
- # malli (60)
- # meander (37)
- # membrane (8)
- # off-topic (31)
- # overtone (3)
- # pathom (36)
- # re-frame (8)
- # reagent (30)
- # remote-jobs (2)
- # sci (1)
- # sql (32)
- # startup-in-a-month (3)
- # testing (3)
- # tools-deps (7)
- # xtdb (7)
> Is there a way to jump to the "code at point" from the stacktrace printed in the REPL buffer using a keyboard shortcut?
Does anyone know how to clear all the repl output so I get a brand spanking totally clear buffer? I tried C-c C-o
but it just prints ;output cleared
and leaves all the previous mess I printed.
use a prefix with that. C-u C-c C-o
> (cider-repl-clear-output &optional CLEAR-REPL)
> Delete the output inserted since the last input.
> With a prefix argument CLEAR-REPL it will clear the entire REPL buffer instead.
perfect! Thank you 🙂
Hi all, I would like to contribute a documentation change regarding cider-path-translations
, the documentation refers to the "In the example above, the .m2
directory is mounted at /root/.m2
and the source at /src
" but the example is not correct. What's the best repo to open the issue and a pull request? https://github.com/clojure-emacs/cider/blob/master/doc/modules/ROOT/pages/config/basic_config.adoc#translate-file-paths
I would also like to extend the example with the use of eval
pseudo-variable to use (clojure-project-dir)
instead of a fixed project path. This is useful when having the .dir-locals.el
shared across a team that have the cloned repo in different locations
yeah i wish there was a second dir-locals that could be gitignored that each person could use
so that kind of thing could go in there. what's wrong with the example though? I thought it was right. root/.m2 and src/ should be translated to users/foo and users/foo/project
I'm more used to translate paths that are meaningful to the development, not any path under /root/
i made that feature and it was pretty tailored to my then current work setup of working in a docker image. if you want to adapt it and make it more flexible/general go for it
after checking https://github.com/clojure-emacs/docs.cider.mx I now understand that the actual documentation comes from cider main repo
We're using docker too, and a group of Linux and macOS devs, and came with this one - https://gist.github.com/iperdomo/88f3156dbb79fe99bc440d1700bb7162#file-dir-locals-el-L3-L8
in the case of linux users the reported user is not root
but akvo
... what I'm proposing is a general example on how to use eval
to get clojure-project-dir
call working
in docker i figured the user would be consistent. you are all presumably using the same docker configs
and i think we ended up just making a template file that was committed and then having everyone make their own (git ignored) dir locals
I'm a basic emacs user (use it for CIDER only), so the whole eval
and .dir-locals.el
is new to me
note that eval
is also mentioned in other config documentation - https://github.com/clojure-emacs/cider/blob/master/doc/modules/ROOT/pages/config/project_config.adoc#project-specific-configuration
yeah. its an option. we just went with the far simpler template and make your own dir locals
do you think it would be interesting/beneficial to contribute that approach of using eval
?
re-reading the documentation again, what confused me was this In the example above, the .m2
directory is mounted at /root/.m2
but the example is the root
folder is mounted as the host's home folder
perhaps making explicit reference to /root/.m2 -> /Users/foo/.m2 makes that sentence less confusing?
sure. fundamentally its just prefix matching. so whatever prefix you want, go for it
Ok, issue and pr open - happy to change, improve it if needed - https://github.com/clojure-emacs/cider/pull/2989
@danieleneal there’s also cider-repl-clear-buffer
. I’m not sure if it’s bound by default but I have it bound to C-c M-o.