This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-01
Channels
- # aleph (1)
- # announcements (2)
- # aws (3)
- # bangalore-clj (1)
- # beginners (136)
- # boot (3)
- # calva (89)
- # cider (44)
- # cljdoc (1)
- # cljs-dev (31)
- # clojure (101)
- # clojure-europe (3)
- # clojure-italy (52)
- # clojure-nl (7)
- # clojure-spec (12)
- # clojure-uk (34)
- # clojurescript (62)
- # community-development (46)
- # cursive (25)
- # datomic (6)
- # duct (26)
- # events (6)
- # figwheel-main (4)
- # fulcro (25)
- # graphql (2)
- # jackdaw (4)
- # jukebox (3)
- # kaocha (57)
- # leiningen (31)
- # off-topic (3)
- # onyx (4)
- # other-languages (22)
- # pathom (18)
- # re-frame (9)
- # reitit (3)
- # shadow-cljs (60)
- # spacemacs (9)
- # speculative (22)
- # sql (39)
- # tools-deps (45)
- # vim (37)
longtime ubuntu/emacs/lein/cider user here; I upgraded my setup to emacs 26 and cider 0.20 and can't cider-jack-in anymore. "error in process filter: Symbol's function definition is void: clj-refactor-mode". My lein version is 2.8.3. What am I missing?
on clj-refactor's readme: clj-refactor 2.4 is compatible with CIDER 0.17 and 0.18. Change the cider-nrepl dep to 0.17 if you're using CIDER 0.17.
Does that mean cider 0.20.0 is broken and unusable? I'm not pulling cider-refactor-clj directly and assume, from previous issues with upgrades, that cider is bundling this upstream.
@pri this error usually happens if your emacs tries to load some compiled el that is not compatible with it
try to clean (delete and then reinstall) clj-refactor or all the related packages rather to make sure you get rid of those old elc files
@myguidingstar Funny I've added the unstable channel but it still installed 2.8.1
nix-env -f
did the job
It seems like I am out of luck. CIDER worked for a few hours but now I get Exception in thread "main" java.lang.RuntimeException: No such var: nrepl.transport/uri-scheme, compiling:(/tmp/form-init4741324511529165922.clj:1:2695)
when cider-jack-in
or lein repl
.
did you remove the specified version of nrepl? I remember you put a certain version in your profiles or something. CIDER should take care to inject this correctly without any prodding
ā ~ cat .lein/profiles.clj
{:repl {:dependencies [[nrepl/nrepl "0.5.0"]]}}
Is still present.
Ah yeah, this was only required with leiningen 2.8.1.
Works perfectly fine again š
@dpsutton thanks a lot.
no worries. its a bummer the transition from this took so long. It took so much work from bbatsov to straddle both libs, get lein, boot, etc, to accept patches.
@patrickwinter I forgot to mention nix-channel --update
also, maybe you'll want to have nixpkgs.leiningen instead of pkgs.leiningen in your configuration.nix
. I often do that for packages that often get updates, like programming tools or web browsers
i love the eval-defun-to-comment feature in cider. Is there a way to get that same functionality but with pprint
?
ahh yeah! thanks. C-c C-v C-f C-c C-d
Now that's a key chord! lol. But when I execute it, nothing actually happens.
It might be better for me to just keep using C-c C-p to pprint it into what seems to be a cider result
buffer and yanking it from there
i think there's a bug in it right now. @plexus was looking into it the other day and i assumed he would submit a PR
you can submit it if you want @chase-lambert. It's a change to the handler gets the report
no worries. I'm just proud that I can actually find the cider github and even find the source code of the function at this point. Submitting a PR fix is on a whole different level of my abilities. hahaha
navigating in emacs is very easy once you learn a few things. look up how to navigate around and debug and then you're halfway to being an expert in any emacs package
Do people actually memorize key chords like that?
not really. if you use it a lot either your hands learn the muscle memory or you remap it to something more convenient
I would probably buy a footpedal and map it to control if I were doing stuff like that regularly
I'd highly recommend Spacemacs if you're planning on using these more advanced key chords (as opposed to using M-x)
Its mnemonic space based bindings make things more like keyboard based menu navigation
Here's tje spacemacs bindings https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Blang/clojure/README.org#key-bindings
I recommend using it in Holy mode (unless you want vim bindings). In which case, SPC is replaced by M-m
wow those are dope
thanks I will try them out tonight at home
@mitchell_clojure emacsen are memory muscle. Use it every day and you will soon be be annoyed by everything else ;)