-
-
Notifications
You must be signed in to change notification settings - Fork 404
Draft: Implement watching file paths via oslib.watch
#5068
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
Draft
arturaz
wants to merge
24
commits into
com-lihaoyi:main
Choose a base branch
from
arturaz:improvement/fs-watching
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8ec73a8
WIP: fs-watching
arturaz 7a2eace
Merge remote-tracking branch 'upstream/main' into improvement/fs-watc…
arturaz b4af95f
[autofix.ci] apply automated fixes
autofix-ci[bot] e7faaa8
fixes
arturaz 1000593
Merge remote-tracking branch 'upstream/main' into improvement/fs-watc…
arturaz 4175938
Merge remote-tracking branch 'origin/improvement/fs-watching' into im…
arturaz 3e7c22c
Forward porting from 0.12.x branch.
arturaz 51cbab5
[autofix.ci] apply automated fixes
autofix-ci[bot] 895c077
Merge remote-tracking branch 'upstream/main' into improvement/fs-watc…
arturaz 14b94ef
Merge remote-tracking branch 'refs/remotes/origin/improvement/fs-watc…
arturaz c331c46
[autofix.ci] apply automated fixes
autofix-ci[bot] 2726072
Catch if `writeToWatchLog` tries to write to a closed file.
arturaz 8b76abf
Merge remote-tracking branch 'refs/remotes/origin/improvement/fs-watc…
arturaz 9021c19
CI test debug
arturaz 2dcf557
CI test debug
arturaz dfbba1f
debug watch tests with sleeps
arturaz 1b797e9
Move stale checking after we start the watch
arturaz ad139ab
[autofix.ci] apply automated fixes
autofix-ci[bot] 69390dd
Refactor setIdle
arturaz 2a84a72
Make tests more robust.
arturaz 50bfa30
Merge remote-tracking branch 'refs/remotes/origin/improvement/fs-watc…
arturaz a4de281
[autofix.ci] apply automated fixes
autofix-ci[bot] 35deeed
Revert `run-tests.yml`
arturaz 8851638
Merge remote-tracking branch 'refs/remotes/origin/improvement/fs-watc…
arturaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,6 +97,11 @@ case class MillCliConfig( | |
doc = """Watch and re-run the given tasks when when their inputs change.""" | ||
) | ||
watch: Flag = Flag(), | ||
@arg( | ||
name = "watch-via-fs-notify", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's shorten this to |
||
doc = "Use filesystem based file watching instead of polling based one (defaults to true)." | ||
) | ||
watchViaFsNotify: Boolean = true, | ||
@arg( | ||
short = 's', | ||
doc = | ||
|
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually need these two additional marker traits? It seems to me that working directly with
Watchable.Path
andWatchable.Value
will be enough. There aren't any compatibility/extensibility concerns since all this stuff isprivate[mill]
anyway