Error when trying to start a REPL in emacs

I was following How to Use Emacs, an Excellent Clojure Editor | Clojure for the Brave and True , but when the book said to open a clojure REPL in emacs using cider-jacked-in, I got this error: internal-macroexpand-for-load: Eager macro-expansion failure: (wrong-number-of-arguments (3 . 4) 2) . I tried installing it again and updating my packages but it did not work

Are you running Emacs with ‘–debug-init’ argument? The error mentioned by you is generic and there should be more.

Try to debug it further with this approach init file - How to get a stack trace for "Eager macro-expansion failure:" - Emacs Stack Exchange

Welcome! Has this been resolved over at the r/emacs already? If not, try M-x toggle-debug-on-error and this will put you in the debugger when emacs ran into the error. You’ll see the stacktrace and that gives you more context about the error.

What version of Emacs are you using?

Yeah my suspicion is that you could potentially be using an older version of Emacs that newer versions of Cider don’t support. How have you installed Emacs? Which operating system do you use, and which package manager have you used (if you have used one)?

Index of /gnu/emacs/windows/emacs-29 I downloaded 29.4 from this link

This is the text I get using that debugger

error("Eager macro-expansion failure: %S" (wrong-number-of-arguments (3 . 4) 2))
  internal-macroexpand-for-load((define-obsolete-variable-alias 'cider-default-repl-command 'cider-jack-in-default) nil)
  load-with-code-conversion("c:/Users/FireLuc33/AppData/Roaming/.emacs.d/elpa/c..." "c:/Users/FireLuc33/AppData/Roaming/.emacs.d/elpa/c..." nil t)
  command-execute(cider-jack-in record)
  execute-extended-command(nil "cider-jack-in")
  (with-no-warnings (execute-extended-command current-prefix-arg chosen-item-name))
  (unwind-protect (with-no-warnings (execute-extended-command current-prefix-arg chosen-item-name)) (smex-rank chosen-item))
  (if smex-custom-action (let ((action smex-custom-action)) (setq smex-custom-action nil) (funcall action chosen-item)) (unwind-protect (with-no-warnings (execute-extended-command current-prefix-arg chosen-item-name)) (smex-rank chosen-item)))
  (let* ((chosen-item-name (smex-completing-read commands initial-input)) (chosen-item (intern chosen-item-name))) (if smex-custom-action (let ((action smex-custom-action)) (setq smex-custom-action nil) (funcall action chosen-item)) (unwind-protect (with-no-warnings (execute-extended-command current-prefix-arg chosen-item-name)) (smex-rank chosen-item))))
  smex-read-and-run(("toggle-debug-on-error" "cider-jack-in" "package-install" "package-refresh-contents" "cider-jack-in-cljs" "customize-apropos-groups" "cider-jack-in-clj" "replace-string" "package-list-packages" "cd" "5x5" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "xdb" "calc" "diff" "dirs" "ffap" "gnus" "grep" "help" "ielm" "info" "life" "mail" "mpuz" "ping" "pong" "smex" "talk" "term" "undo" "yank" "zone" "align" "chmod" ...))
  (if (smex-already-running) (smex-update-and-rerun) (and smex-auto-update (smex-detect-new-commands) (smex-update)) (smex-read-and-run smex-ido-cache))
  smex()
  funcall-interactively(smex)
  command-execute(smex)

I got it working!
I just installed the newest version of helm-cider via the emacs package installer. Just had to do M-x install-package RET cider RET

1 Like