Skip to content

Comments

Fix/bug fixes#5

Merged
freref merged 15 commits intomasterfrom
fix/bug-fixes
Feb 19, 2025
Merged

Fix/bug fixes#5
freref merged 15 commits intomasterfrom
fix/bug-fixes

Conversation

@freref
Copy link
Owner

@freref freref commented Feb 19, 2025

No description provided.

whyvn and others added 9 commits January 8, 2025 13:34
syntax/compilation errors in `removeFile`, and remove `offset` since its information is stored in `self.paths.items.len`
doesnt compile but the idea is that it would be more safe to update the watch descriptors of the previous files so that we can check valid descriptors in the event loop
i think its safe not to even check if the wd is below offset, it would be much faster and if inotify is sending it than it must already be valid. ill leave this commit as the basis for an idea though
creates a bit of a bug where the wd will only be updated once another file is modified
remove artifact from poll testing
const flags = eventFlags[i];
if (flags & c.kFSEventStreamEventFlagItemModified != 0) {
self.callback.?(self.context, interfaces.Event.modified);
self.callback.?(self.context, .{ .kind = .modified, .index = i });
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the index for events, not for files

@freref
Copy link
Owner Author

freref commented Feb 19, 2025

Merging the bug fixes without returning index of the file because I'm unsure of the best implementation, made issue #6 to track this issue

@freref freref marked this pull request as ready for review February 19, 2025 22:37
@freref freref merged commit f01a4b6 into master Feb 19, 2025
6 checks passed
@freref freref deleted the fix/bug-fixes branch February 19, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants