-
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
Add additional magit-section wrapping #55
Comments
Hi, Have you always had this problem, or did it start recently? Did you upgrade Magit recently? What version of it do you have? Does it happen in every repository? |
Sorry if I forgot to write that information
It started recently, one or two weeks ago.
Yes, i have updated magit to the latest version:
Yes. In “old" repositories I can see the TODOs section in |
I'm guessing that something was updated in Magit that broke this. I'll have to upgrade Magit and test. In the meantime, you may be able to work around it by downgrading Magit to the last version you had. |
I think this was broken in magit/magit@40616d7. I don't yet understand why, or how to fix it. I'm looking at the old code and trying to figure out what's missing now, but I don't see what it is. I'm calling |
Instead of using multiple inter-calling hooks, just fix up the parent child relations after the fact.
Maybe magit's code shouldn't signal an error in this case? If I understand correctly, before my change the lack of parent didn't cause a problem. |
Maybe so.
You're right, I don't think it did. @tarsius What do you think? |
Magit expects exactly one root section. I am surprised going against this expectations didn't cause things to fall apart more spectacularly. But there will be other issues. Just wrap the calls to the section inserters in |
Thank you, Jonas. |
Hi. I started to get this error when I use
M-x magit-todos-list
If I try with only magit and magit-todos enabled with the same command I get
I tried to run
M-x toggle-debug-on-error
on an empty init.el except for magit and magit-todos and I get the following stack trace:I have the issue with both mac os 10.11.6 and archlinux. I’m using emacs 26.1 and in both os I have ripgrep installed.
The text was updated successfully, but these errors were encountered: