scons icon indicating copy to clipboard operation
scons copied to clipboard

Add a progress indicator (# of # targets)

Open bdbaddog opened this issue 8 years ago • 0 comments

This issue was originally created at: 2010-04-06 10:30:11. This issue was reported by: evaned.

evaned said at 2010-04-06 10:30:11

This has been requested in the past -- see issue #591 -- but it's still outstanding.

It would be really nice to have an indicator of how far along the build is, in terms of number of targets built and (perhaps approximate if new nodes are added during the build) number of targets total. (This for me is the sort of "really nice" that makes a tool like Waf that provides it really compelling.)

The Progress function is good for indicating that it's doing something, but not how much is left. The resolution of issue #591 even states "finding how many targets will actually be built is non-trivial", which means that that issue really was never actually fixed anyway.

I asked about this on the list (http://scons.tigris.org/ds/viewMessage.do?dsForumId=1272&dsMessageId=2436923 - tigris links dead) and the replies weren't so good. (Sorry about the broken threading.)

I'm not the only one who wants this feature either. In addition to the above feature request (from 2003), it's come up on the mailing list a lot:

  • http://scons.tigris.org/ds/viewMessage.do?dsForumId=1272&dsMessageId=2468602 (tigris links dead)
  • http://scons.tigris.org/ds/viewMessage.do?dsMessageId=913682&dsForumId=1272 (tigris links dead)
  • http://scons.tigris.org/ds/viewMessage.do?dsMessageId=58637&dsForumId=1272 (tigris links dead)

Note that while many of these people are happy with an indication that something is going on (which is what Progress gives you), I actually do want what those people were asking for (a % or # of targets built), like what Waf or Cmake will give you.

A start of how you might fix it seems to be at http://scons.tigris.org/ds/viewMessage.do?dsMessageId=684889&dsForumId=1268 (tigris links dead), but I don't know the code so have no idea if this still applies or how you'd use it.

gregnoel said at 2010-04-30 17:56:08

Bug party triage. The technical reasons why this problem is intractable remain, but this feature is requested often enough that we really should try to provide something, even if it's nowhere near exact. Steven to update with what might be actually possible, both now and with TNG, then start a wiki page to explore the alternatives (and their implications). If there's a decision that something is feasible, feed that back to this issue for scheduling.

techtonik said at 2010-05-05 12:41:12

I have a ready to use function that can be inserted to (re)calculate progress (based on amount of nodes) on the go. Just give me test environment where I can test this. Any open source links?

http://bitbucket.org/techtonik/python-wget/src/tip/wget.py#cl-88 (bitbucket links dead)

Votes for this issue: 1.

bdbaddog avatar Jan 02 '18 14:01 bdbaddog