-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
This is a pretty minor bug that I noticed but thought was worth reporting.
Steps to reproduce
- Customise
magit-todos-updateto eithernil(manual updates) or a number of seconds to cache. - Run manual
magit-todos-updateto scan for TODOs. - An error occurs while running the process (for example,
rgreports permission denied error for a file in the repo working directory).
Expected behaviour
Afterwards, refreshing magit status will continue to not automatically scan for to-dos (as per the magit-todos-update selection).
Observed behaviour
Afterwards, refreshing magit status will trigger a new scan each time, behaving as if magit-todos-update was set to t.
Analysis
- Local variable
magit-todos-updatingis set totbefore evaluatingmagit-todos--async-start-process. It is only set tonilagain by thefinish-funccallback (and this only runs if the process succeeds.) - If there's an error then the
magit-todos-updatingstaystuntil/unless the scan process re-runs and succeeds. This causes the magit status callback to be treated as a manual update each time.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working