-
Notifications
You must be signed in to change notification settings - Fork 247
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
Use one fsevent_watch
process per listener instead of one per dir
#470
Conversation
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.
Some files could not be reviewed due to errors:
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7
Yeah, we should definitely fix this. |
56fb995
to
5764592
Compare
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.
Some files could not be reviewed due to errors:
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7
5764592
to
2952cb8
Compare
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.
Some files could not be reviewed due to errors:
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7
2952cb8
to
7722b1b
Compare
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.
Some files could not be reviewed due to errors:
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7
7722b1b
to
6711547
Compare
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.
Some files could not be reviewed due to errors:
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7
6711547
to
e094dba
Compare
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.
Some files could not be reviewed due to errors:
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7
e094dba
to
188579a
Compare
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.
Some files could not be reviewed due to errors:
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7
188579a
to
6c16cb2
Compare
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.
Some files could not be reviewed due to errors:
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml
Warning: unrecognized cop Lint/LiteralInCondition found in .rubocop.yml Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7
rel_path = new_path.relative_path_from(dir).to_s | ||
_queue_change(:dir, dir, rel_path, recursive: true) | ||
def _process_changes(dirs) | ||
dirs.each do |dir| |
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.
I'm aware there are two loops here but for the average use case, this is going to consist of only a couple of directories that change each time.
@ioquatix Would you mind reviewing this? Thank you so much! 🙇 |
I will review it tonight. |
Thank you so much 👍 |
Using local branch: #471 |
I'm running into wacky amounts of CPU usage and want to rule this out as a cause: rails/rails#26158 guard/listen#470
Related: rails/rails#26158, rails/rails#37269
This is an attempt to resolve the problem of too many
fsevent_watch
events being spun up on OSX since the number of processes increases with the number of directories being watched.