use watchfiles#1
Open
bollwyvl wants to merge 1 commit intopydoit:mainfrom
Open
Conversation
Member
|
Cool. thanks. Have not looked in detail but code looks much cleaner. Just that my idea was to fork this plugin and create a new one for And I wondering I if should call it What do you think? |
Author
|
Yep: lots of choices, just wanted to get stuff I had tinkered with out
there to start.
create a new one for watchfiles.
Yeah, that's the best part of splitting it out of core.
doit-watch instead of auto,
Yes, that makes sense.
|
rix0rrr
added a commit
to rix0rrr/doit_watch
that referenced
this pull request
Dec 9, 2023
This code is mostly a straight copy of pydoit/doit-auto1#1 and pydoit/doit-auto1#2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Elevator Pitch
This strawman PR replaces
ipynotifyandmacfseventswith the more-supportedwatchfiles, implemented in rust under the hood, which also works on windows.References
autoon Windows doit#17Code Changes
watchfileswatchfilesBreaking Changes
handle_eventis entirely different(change, path)pairs, wherechangeis one of1(add),2(delete), or3(modify)loop_callbackis removedPossible Work: on this PR or future
handle_event(event)signature could be emulatedloop_callbackbehavior could be restored withyield_on_timeout(it yields an empty set)Thanks again for
doit!