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
IO::Notifications for changes to file contents (2019.03 vs 2019.07.1) #3100
Comments
|
Not reproducible on macOS 10.14.6, rakudo 2019.07.1 and HEAD work equally well: I remove BLOCKER for now. Ticket could be closed if no additional information provided. |
|
What information would be helpful? I'm still seeing this issue. ( |
|
Ok, I've reproduced the problem. Due to different shell (I use fish) I rewrote the command line to a slightly different variant and that was the difference. I.e. things work fine for: but fail if: The breaking change really happened somewhere between 2019.03 and 2019.07. |
|
Yes -- I noticed this too -- adding one line at a time works. |
|
I've checked with FreeBSD (which has on occasion shown similar regressions,) and that is fine @ Was there a libuv bump somewhere in there? If there was I'd start there. |
I think MoarVM/MoarVM@a515819b6031f2 is the only one between |
|
@bduggan I have opened a MoarVM ticket MoarVM/MoarVM#1178. To have better diagnosis @jnthn reasonably proposes trying a version of MoarVM prior to MoarVM/MoarVM@a515819. Unfortunately, I'm in the middle of a big task and won't have time for a while for this. Maybe you could give it a try and report back? |
|
So -- I downgraded to the commit right before that one, and rebuilt (also downgrading nqp and rakudo to versions such that the deps were satisfied) -- and can report that it did not fix the issue -- i.e. this version still failed : The moarvm,nqp, and rakudo commits to which I downgraded were respectively -- MoarVM/MoarVM@c63e7eb , Raku/nqp@6372077 and e007642 Here's the output, of running 2019.03.1 (which works), and the above (which doesn't) -- |
|
@bduggan Thank you! May I also ask you to report on MoarVM ticket? |
|
Sure -- done :-) |
|
The problem is in unmistakably tracked down to MoarVM/MoarVM@62b58164a |
|
Unmistakably? The issue is not present in 2019.03 released in June/July, and you’re linking to a commit made 7 months ago. |
|
@ugexe I provided full methodology in MoarVM ticket. And yes, I'm 100% positive that it was the commit. |
|
Ah, I see why: the NQP bump which brought in that commit happened on Mar 16. |
|
@ugexe with |
|
Ah then indeed there is no reason to doubt it is libuv 1.26
…On Mon, Sep 23, 2019 at 9:33 PM Vadim Belman ***@***.***> wrote:
@ugexe <https://github.com/ugexe> with git checkout 2019.03:
⇒ cd nqp/MoarVM/3rdparty/libuv/ && git log | head -10 23-09-19 22:33:01
commit 7ebb26225f2eaae6db22f4ef34ce76fa16ff89ec
Author: cjihrig ***@***.***>
Date: Thu Aug 16 22:05:34 2018 -0400
2018.08.18, Version 1.23.0 (Stable)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3100?email_source=notifications&email_token=AAB2RBETI6KZAPARNY2JDADQLF37DA5CNFSM4IJMSRI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7M3O3A#issuecomment-534361964>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB2RBG4NK3VDJUCJABRMW3QLF37DANCNFSM4IJMSRIQ>
.
|
|
Since the problem has been tracked down to libuv changes and resulted in libuv/libuv#2488, I remove blocker from this ticket because it's nothing to do with changes in Rakudo. Moreover, people from libuv concluded that the problem stems even deeper down the stack and it's a bug of Darwin's implementation of kernel events. As long as it's out of our control there is no reason for the blocking status. |
Arguably, we could consider reverting the libuv version bump, however. |
|
There're dependencies on later versions of libuv. uname, in particular. I'm afraid, revert would require a chain of other reverts. |
|
@vrurg Ah, then than argues more for waiting, given it seems there's PRs already submitted in libuv. Thanks for golfing it down to report, by the way. |
|
libuv/libuv@97b85e8 workarounds the bug. Waiting for next libuv release to be included into MoarVM. |
|
Closing via MoarVM/MoarVM@0f05efb Thanks @bduggan! |
|
Great, thanks! |
The Problem
.IO.watchandwatch-pathdo not provide notifications when there is a change to the contents of a file -- this is a change between2019.03and2019.07.1.Expected Behavior
The supply
$file.IO.watchwill emitIO::Notificationobjects when the contents of the file changes.Actual Behavior
It doesn't
Steps to Reproduce
Run this:
Then run this:
Under
2019.03we see:But under
2019.07.1, we see(i.e. nothing)
Environment
Operating system: OS/X 10.14
Compiler version (
perl6 -v): see aboveThe text was updated successfully, but these errors were encountered: