-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Bring watch back #415
Bring watch back #415
Conversation
@mertkahyaoglu I tested this locally.. and.. 🎉 Looks like, you've solved the problem..!! 👍 |
The not-so-good-news: Some other new bugs this will introduce
|
@ashmaroli Thanks for testing. Happy to hear that 🎉 I will look into those issues. |
@ashmaroli b63f724 should fix the first issue. Second one is not related with this issue. We already have this on master. Going to create another PR for that. |
Great! I'll checkout the changes and see if things work out at my end, sometime this weekend.. 👍 |
I updated my local branch with the latest commits........... and it looks like the Race condition is back again.. Encountered more frequently in fact, when I created a new Yep, Data files are still immune to the Race bug.. |
You mean b63f724 ? It has nothing to do with creating and renaming files. It just reverts to |
I meant all the commits collectively. i.e. the state after running I wouldn't let my comment be a blocker, though. If the Race Condition doesn't occur at all for you, it probably won't affect the vast majority of the end-users. |
Not a blocker really. If you encountered it more frequently, that means my solution does not solve the problem and I need to change my approach. What I don't understand is in the previous comments you said the problem was fixed and after an unrelated commit, the problem came back again. I need to investigate whether that commit is really unrelated. |
I don't understand it either.
I mean do not stall this because I said I encountered bugs.. |
@ashmaroli What is this |
That's probably because you're still running an older version of Jekyll locally while Travis here is running the latest Now regarding what they're.. I've not looked into its application in Style/FrozenStringLiteralComment:
Enabled: false We can tackle that in a separate PR.. I suggest you add that to the |
Copy-pasting from this comment;
I'm trying to bring the watch back for Jekyll Admin and I think I found something to fix the race condition or (decrease the possibility to happen).
I discovered the race condition when I was trying to rename documents several times. I believe the reason is that we call site.process twice after a rename call. One for deleting a document (delete_file) and one for writing it to disk (write_file).
After I removed the site.process call for deleting and just calling site.read after writing to disk, the race condition appears to be fixed. I'm testing this almost 💯 times and I haven't been able to get an error yet.
I created a short version of
delete_file
method calleddelete_file_without_process
which does not callsite.process
and use it for renaming purpose.