Skip to content
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

Ignore apparently not working at all #254

Open
SebCav opened this issue Feb 2, 2022 · 4 comments
Open

Ignore apparently not working at all #254

SebCav opened this issue Feb 2, 2022 · 4 comments
Labels
bug Something's not right! has workaround Bug has a workaround, so it might not need urgent attention need repro Needs a reproduction and some investigation

Comments

@SebCav
Copy link

SebCav commented Feb 2, 2022

Watchexec's version 1.18.4 on arch linux

In 1.17.x the same command as below (except for the --print-events) allowed rebar3 to run at least once, then watchexec only run it again when I changed something in ./src.
Now it seems that it does not ignore _build anymore and it goes into a loop. I have to kill it before looping because otherwise it fills the shell with another error (cannot send event from fs watcher: no available capacity). I tried adding --no-project-ignore because there are .gitignore files that could interfere, but same result.
I saw another issue regarding ignore option, but I do not understand if this is a different symptom of the same problem...

19:15:28|seba@archanoid:~/src/host_installer (eidon/develop_4.0.1 *)$ watchexec --print-events -i rebar.lock -i _build -i .git -i "#*" "bin/rebar3 as prod release"
[EVENT 0] Event
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling gsd_libs
===> Compiling ranch
===> Compiling cowboy
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling host_installer_cli
===> Building escript for host_installer_cli...
[EVENT 0] Event source=Filesystem kind=Modify(Data(Any)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
[EVENT 1] Event source=Filesystem kind=Modify(Data(Any)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
[EVENT 2] Event source=Filesystem kind=Access(Close(Write)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
[EVENT 3] Event source=Filesystem kind=Modify(Metadata(Any)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
[EVENT 4] Event source=Filesystem kind=Modify(Metadata(Any)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
Killed

Log taken with -vvv
wlog.gz

Thanks in advance

@SebCav SebCav added the bug Something's not right! label Feb 2, 2022
@passcod
Copy link
Member

passcod commented Feb 2, 2022

This was probably fixed, or partially fixed, in 1.18.5, can you try that? Otherwise likely a duplicate of #241. I'll review that log tonight.

@SebCav
Copy link
Author

SebCav commented Feb 2, 2022

It does not print the "cannot send events..." error, but it still loops calling the command continuously, apparently ignoring the -i directive on _build

23:16:11|seba@archanoid:~/src/host_installer (eidon/develop_4.0.1 *)$ ~/.cargo/bin/watchexec --print-events --no-project-ignore -i rebar.lock -i _build -i .git -i "#*" "bin/rebar3 as prod release"
[EVENT 0] Event
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling gsd_libs
===> Compiling ranch
===> Compiling cowboy
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling host_installer_cli
===> Building escript for host_installer_cli...
[EVENT 0] Event source=Filesystem kind=Modify(Data(Any)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
[EVENT 1] Event source=Filesystem kind=Modify(Data(Any)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
[EVENT 2] Event source=Filesystem kind=Access(Close(Write)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
[EVENT 3] Event source=Filesystem kind=Modify(Metadata(Any)) path=/home/seba/src/host_installer/_build/cli/default/bin/host_installer_cli filetype=file
...

@passcod
Copy link
Member

passcod commented Feb 2, 2022

You can probably use -i '**/_build/**' instead to cover that for now.

@passcod passcod added the need repro Needs a reproduction and some investigation label Feb 2, 2022
@SebCav
Copy link
Author

SebCav commented Feb 2, 2022

Wonderful, that worked! Thank you ;)

@passcod passcod added this to the 1.18 issues milestone Feb 3, 2022
@passcod passcod added the has workaround Bug has a workaround, so it might not need urgent attention label Feb 3, 2022
@passcod passcod modified the milestones: 1.18 issues, 1.19 issues Apr 15, 2022
niedzielski added a commit to oidoid/atlas-pack that referenced this issue Nov 27, 2022
niedzielski added a commit to niedzielski/makefile-skeleton that referenced this issue Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's not right! has workaround Bug has a workaround, so it might not need urgent attention need repro Needs a reproduction and some investigation
Projects
None yet
Development

No branches or pull requests

2 participants