Fork me on GitHub
#cider
<
2019-02-01
>
pre00:02:48

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?

eval-on-point00:02:03

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.

pre00:02:48

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.

eval-on-point01:02:28

Oh, I have no idea. Drank too much cider

10
futuro04:02:31

Does anyone know how to specify a deps.edn alias for cider-jack-in?

dominicm05:02:42

Set cider-clojure-cli-global-options

futuro14:02:54

Swanky, thank you

benedek07:02:37

@pri this error usually happens if your emacs tries to load some compiled el that is not compatible with it

benedek07:02:31

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

Patrick Winter15:02:31

@myguidingstar Funny I've added the unstable channel but it still installed 2.8.1

Patrick Winter15:02:48

nix-env -f -iA leiningen did the job

Patrick Winter15:02:28

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.

dpsutton15:02:30

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

Patrick Winter15:02:45

āžœ ~ cat .lein/profiles.clj 
{:repl {:dependencies [[nrepl/nrepl "0.5.0"]]}}

Patrick Winter15:02:55

Is still present.

dpsutton15:02:59

yeah. ditch that

Patrick Winter15:02:27

Ah yeah, this was only required with leiningen 2.8.1.

Patrick Winter15:02:07

Works perfectly fine again šŸ˜…

dpsutton15:02:06

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.

myguidingstar16:02:35

@patrickwinter I forgot to mention nix-channel --update

myguidingstar16:02:08

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

Chase17:02:14

i love the eval-defun-to-comment feature in cider. Is there a way to get that same functionality but with pprint?

dpsutton17:02:17

cider-pprint-eval-defun-to-comment

Chase17:02:36

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.

Chase17:02:40

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

dpsutton17:02:12

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

plexus04:02:15

Sorry about that, all my open source time has been going to Kaocha...

dpsutton17:02:43

you can submit it if you want @chase-lambert. It's a change to the handler gets the report

Chase18:02:58

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

dpsutton18:02:04

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

eval-on-point18:02:44

Do people actually memorize key chords like that?

dpsutton18:02:03

not really. if you use it a lot either your hands learn the muscle memory or you remap it to something more convenient

šŸ’Æ 5
eval-on-point18:02:47

I would probably buy a footpedal and map it to control if I were doing stuff like that regularly

dpsutton18:02:10

that will put you in an exclusive club šŸ™‚

didibus18:02:43

I'd highly recommend Spacemacs if you're planning on using these more advanced key chords (as opposed to using M-x)

didibus18:02:30

Its mnemonic space based bindings make things more like keyboard based menu navigation

didibus18:02:42

Or at the very least, use which-key https://github.com/justbur/emacs-which-key

šŸ‘ 5
didibus18:02:30

I recommend using it in Holy mode (unless you want vim bindings). In which case, SPC is replaced by M-m

didibus18:02:27

And SPC m becomes M-enter

eval-on-point18:02:46

wow those are dope

eval-on-point18:02:55

thanks I will try them out tonight at home

mseddon21:02:48

@mitchell_clojure emacsen are memory muscle. Use it every day and you will soon be be annoyed by everything else ;)