Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lisp error: (void-variable age-default-identity) in chezmoi-ediff #33

Open
joelpet opened this issue May 25, 2024 · 0 comments · May be fixed by #36
Open

Lisp error: (void-variable age-default-identity) in chezmoi-ediff #33

joelpet opened this issue May 25, 2024 · 0 comments · May be fixed by #36

Comments

@joelpet
Copy link

joelpet commented May 25, 2024

After upgrading chezmoi.el from 8a4d683 to 1389782, I started encountering the following error:

Debugger entered--Lisp error: (void-variable age-default-identity)
  chezmoi-ediff("~/.emacs.d/straight/repos/straight.el/install.el")
  funcall-interactively(chezmoi-ediff "~/.emacs.d/straight/repos/straight.el/install.el")
  call-interactively(chezmoi-ediff nil nil)
  command-execute(chezmoi-ediff)

This error occurs after invoking chezmoi-ediff and selecting a file.

Here is a condensed version of the relevant part of my configuration:

(use-package chezmoi
  :straight (chezmoi :files (:defaults "extensions/chezmoi-ediff.el"
                                       "extensions/chezmoi-magit.el")))

(use-package chezmoi-ediff
  :straight nil ; part of chezmoi
  :bind
  ("<leader> f d e" ("Ediff…" . chezmoi-ediff)))

(use-package chezmoi-magit
  :straight nil ; part of chezmoi
  :bind
  ("<leader> f d g" ("Magit status" . chezmoi-magit-status)))

Here is the pertinent code from chezmoi-ediff.el:

(age-always-use-default-keys (and (equal ident age-default-identity)
					   (equal (if (equal 1 (length recips))
						      (car recips)
						    recips)
						  age-default-recipient)))

The age-default-identity symbol is defined as a customizable variable over at github.com/anticomputer/age.el#L82, but age.el is never required by chezmoi-ediff.el.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant