-
Notifications
You must be signed in to change notification settings - Fork 48
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
Process magit-todos--scan-with-git-diff failed #153
Comments
When did it start happening? What happens if you disable |
I'm not sure. It can't have been more than some days ago. It doesn't happen on my other machines, but I have very similar setups. How would I disable that? All I have in my init related to magit-todos is: (magit-todos-mode)
(setq magit-todos-keywords-list (mapcar #'car hl-todo-keyword-faces)) |
Also, why are you setting the keywords that way when Lines 245 to 266 in d85518d
|
Disabling nice seems to remove the errors. As for why, I'm not sure, might just be leftover config from forever ago. I've had this set up for years and never touched it after the first time. |
I'm guessing that disabling the use of I'm guessing it might have been caused by this commit: 8da7a8e But it probably only happens under certain conditions. So please re-enable the use of |
Okey, here's the log from messages:
The main there being the result of magit-main-branch. Also I just noticed that I set (setq hl-todo-keyword-faces '(("KLUDGE" . "#d0bf8f")
("HACK" . "#d0bf8f")
("TODO" . "#D98C32")
("FIXME" . "#EF681F")
("WTF" . "#F8240E"))) |
Ok, please run this command in that repo (ensuring that the same branch is checked out as when the error happened):
Ok, FYI, if In other words, this is the classic admonition to not use |
FWIW this is the repo: https://github.com/shinmera/multiposter |
What branch or commit do you have checked out when the error occurs? |
Current HEAD of main, which is the commit I just posted. |
I updated all emacs packages on this system and the error seems to have disappeared. I thought I updated the other system I saw the behaviour on already, but I guess I'll try again when I have access to it again later today and will report back. |
I am unable to reproduce the problem. Using Emacs 29.1:
The magit-status buffer is shown and there are no errors in the messages buffer. If I add a to-do item to one of the Lisp files and refresh the status buffer, the todo is shown, and still no errors. |
Ok. Make sure to delete old versions of packages, too. And please use this script to try to reproduce the problem in a clean config: https://github.com/alphapapa/with-emacs.sh |
Okey, the other machine was updated but had autoremovable packages. I guess there must have been interference from a previous version of something or another. Many apologies for the noise, and thanks a lot for the help debugging this! |
You're welcome. Thanks. |
Fixes #153. Reported-by: Yukari Hafner <https://github.com/Shinmera>
@Shinmera Well, the same error finally happened to me, when I was in an orphan branch in one of my projects' repos. I just pushed a fix for it: a61d6af If you can, please let me know if it fixes the problem for you. Or if you can't reproduce the problem first in order to test it, let me know if anything seems to break, and if not, I'll release it as a bug fix. Thanks. |
Fixes #153. Reported-by: Yukari Hafner <https://github.com/Shinmera>
Hit this during a rebase. The mentioned fix does not fix it for me. |
@accelbread I appreciate your report, but I'm afraid I can't do anything without a reproducible test case. There is too much variation between platforms and the various software versions to know what is going on. If you can produce one, e.g. using this comment as an example, maybe it can be solved. As well, the fact that it happened during a rebase could imply a transient problem caused by one scanner or the other seeing worktree files in an inconsistent state, or something like that; if the problem went away, then that may just have to be good enough for now. |
Fixes #153. Reported-by: Yukari Hafner <https://github.com/Shinmera>
Fixes #153. Reported-by: Yukari Hafner <https://github.com/Shinmera>
I found this bug again and am pushing a fix for it in v1.7.1. @accelbread Maybe the bug you're encountering is a different one or has a different cause. If it happens to you again after upgrading to v1.7.1, please file a new report. |
Hi, I'm getting a very strange error on every magit operation I do, making it quite annoying.
*messages*
shows the following:I have no idea what that relates to or where I should look in my environment to figure out what's going on. Any pointers?
The text was updated successfully, but these errors were encountered: