GithubHelp home page GithubHelp logo

Comments (6)

RobertLarsen avatar RobertLarsen commented on July 18, 2024 1

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.

kopsha avatar kopsha commented on July 18, 2024 1

Ok, now I understand what enhancement you are requesting, it makes sense. Thanks.

from entr.

kopsha avatar kopsha commented on July 18, 2024

From my understandingentr does not change paths... unless I'm missing something.

from entr.

RobertLarsen avatar RobertLarsen commented on July 18, 2024

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.

kopsha avatar kopsha commented on July 18, 2024

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.

eradman avatar eradman commented on July 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.