-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
file.watch() does not work #4275
Comments
Couldn't reproduce. Works fine with me. Build-config
Update: on docker |
Minimally reproducible script:
I see "writing" every 1s but no "file changed". |
Well, it does work fine, just doesn't print the info with your method on success = ref(false)
file.watch(
"/tmp/testfile",
{success := true},
)
thread.run(every=1.,fun() -> print("#{success()}"))
output.dummy(sine()) ref gets changed.
And
Actually I have tried again with Everything seems to work on this build too: This build
This indeed doesn't work.
However this works.
|
Hi everyone,
|
Yeah I don't get what's going on. This more closely mimics what I was trying to do. It works for 30s or so after LS starts but then stops working:
Then in the console This also works for a bit, but then stops working (you'll see "writing" but no "file changed" after 20-30s):
@vitoyucepi not using vim (that can be configured to trigger inotify, as I recall) and not using bind mounts. I've tried NFS, bind, and local container FS all same deal. |
Got it 30 seconds after start, present in 2.3.0 but not in 2.2.5.
|
Description
This code does not work:
I don't think this worked in 2.2 either (or earlier).
Steps to reproduce
Run the provided code then
echo TEST >> /tmp/testfile
.Expected behavior
For the provided code to produce "testfile changed" when it's changed.
Liquidsoap version
Liquidsoap build config
Installation method
From official container image
Additional Info
No response
The text was updated successfully, but these errors were encountered: