Fork me on GitHub
#emacs
<
2019-05-11
>
practicalli-johnny09:05:42

The Emacs setup in http://BraveClojure.com is very old and out of date, particularly for CIDER. Suggest you look at http://www.cider.mx/en/latest/installation/. Or if you use Spacemacs, take a look at https://practicalli.github.io/spacemacs/

Idan Melamed19:05:28

I installed zsh for now... But would like to uninstall it and still be able to run the REPL from Emacs

dpsutton19:05:20

can you m-x toggle-debug-on-error?

dpsutton19:05:36

if you can get a stacktrace of where its trying to use zsh that would be helpful

dpsutton19:05:25

@idanmel where did you get your emacs setup?

Idan Melamed19:05:35

should I paste the error here?

Idan Melamed19:05:42

I got it from "brave and true"

Idan Melamed19:05:00

I Think I'll just keep zsh installed for now... Everything seems to work when it's installed

dpsutton19:05:01

are you on osx?

dpsutton19:05:13

ok. i'm guessing this is because you still have a .zshrc file laying around. I hypothesize that if you rename this file this problem goes away

dpsutton19:05:51

there's a package exec-path-from-shell that loads shell info stuff but actually isn't aware that you no longer have zsh involved. I bet there's some aliases involved that assume zsh is present and this breaks

dpsutton19:05:06

i'm interested to know if my guess is close 🙂. Let me know

Idan Melamed19:05:00

I uninstalled zsh and renamed .zshrc, and it didn't do the trick

dpsutton19:05:55

can you restart?

dpsutton19:05:46

also, can you eval this elisp code? (cider--resolve-command cider-lein-command)

dpsutton19:05:58

so we can see what CIDER thinks its supposed to be invoking

Idan Melamed19:05:19

wher do I eval it?

dpsutton19:05:11

hit m-: and paste it into the prompt at the bottom

dpsutton19:05:28

alternatively, you can paste it into the scratch buffer which is set up as an elisp file

Idan Melamed19:05:46

it evals to /home/my-username/bin/lein

dpsutton19:05:08

did you try the m-x toggle-debug-on-error?

dpsutton19:05:12

lets see the stacktrace

Idan Melamed19:05:34

Thanks for the help... It's working when zsh is installed, I'll just keep it at that and call it a night for now

Idan Melamed19:05:42

Getting late for me

Idan Melamed19:05:50

Good night and thanks again 🙂

practicalli-johnny09:05:42
replied to a thread:

The Emacs setup in http://BraveClojure.com is very old and out of date, particularly for CIDER. Suggest you look at http://www.cider.mx/en/latest/installation/. Or if you use Spacemacs, take a look at https://practicalli.github.io/spacemacs/