idk if you found a solution but i just had the same problem after a mass package update i did. To solve it, I deleted magit-* from .emacs.d/elpa (i.e. all the cached files), restarted emacs and after it re-downloaded magit, problem was gone.
Emacs
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
You didn't mention which Emacs Version, package manager, etc.
A very good point and stupid of me. added. That said, if someone else has seen this error they'll recognise it.
https://github.com/magit/magit/discussions/4997#discussioncomment-7050963
What's needed is a reproduction case. There are people claiming the bug affects them with both package.el and Straight. I've not encountered the bug myself, and frankly can't be bothered to dig into it if the people who are seeing it can't provide a repro.
Then dont. This was merely asking if someone has solved it. Thanks for the link.
A. Upgrade all the upgradable packages.
B. Downgrade to a known-good set of packages.
C. File a bug report (but only after trying A).
Those are your choices.
Downgrading to a "known set" of good packages is a lot of work requiring time galore.
The other option is someone else has come across this and has a solution.