Comments (6)
That is what I want, but I do not know which file is touched and so why this loop is triggered (well, I do, but only after a lot of debugging). I run a build and test chain and it does a gazillion things. If entr
would somehow tell what triggered the command (through a log file or environment variable or whatever) debugging this would have been immensely easier.
from entr.
Ok, now I understand what enhancement you are requesting, it makes sense. Thanks.
from entr.
From my understandingentr
does not change paths... unless I'm missing something.
from entr.
No, but it monitors for changes...and the program that entr
executes when it detects a change may change something which entr
detects and executes the program, which may change something, which entr
detects, which....and so on.
from entr.
I understand the endless loop that gets created, and I think that the problem you have is outside the scope of the tool.
I do not know your full context, but I would try a different setup that does not trigger this loop. Maybe you are doing too many things with a single command and it may be worth to break it down.
from entr.
@RobertLarsen you can set EV_TRACE
to see the events as they are processed
ag -l | EV_TRACE=1 entr make
This was meant as a means of debugging issues with entr
itself, but I think it will work for your case. The "leading edge" (first file to trigger an event) is accessible on the command line as well by printing the special filename /_
ag -l | entr echo /_
Another way to get at this data (not documented) is that $0
is set to the leading edge when using the -s
flag
ag -l | entr -s 'echo $0'
from entr.
Related Issues (20)
- entr: No regular files to watch in ruby HOT 8
- Alternatives to SIGTERM with -r HOT 11
- Use strlcpy with >=glibc-2.38 HOT 9
- Missing entr command on website HOT 1
- Ability to kill the process after a timeout if it fails to stop gracefully HOT 7
- `/_` marker and quotes. HOT 2
- doesn't this force the RLIMIT_NOFILES to be exactly 65536? HOT 11
- Feature request: provide a way to debounce triggers HOT 8
- fatal error: sys/sysctl.h: No such file or directory HOT 3
- `entr` apparently don't work when called from a Makefile task HOT 3
- Only the first event is handled when using entr to watch the script that runs entr HOT 9
- $0 isn't populated on macOS when using -s HOT 5
- Git tags are not signed HOT 4
- Feature request: print blank line between runs with -b HOT 2
- Feature request: suppress exit status message with -q HOT 7
- 'entr: setrlimit cannot set rlim_cur to 61440: Invalid argument' on macOS HOT 23
- Is there an easy way to print out the time that `entr` ran the last command? HOT 4
- Update link to doc page HOT 3
- Include workspaces HOT 3
- Commands run twice with the -d flag HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entr.