[Scons-dev] Show source SConscript on error

Jason Kenny dragon512 at live.com
Tue Nov 3 15:20:01 EST 2015


I think an example might be useful.

Given an error people like to see stuff like this: 

scons: *** [build\windows\README.txt] Source `README' not found, needed by target `build\windows\README.txt':
  File "C:\Some\source\location\Sconscript", line 3:
    Env.FooBuilder(“out”,[‘README.txt’])


Have an item on my list in Parts to muck up the Scons builder code to get this type of error message out… 

Better error messages in Scons would be a great thing 😊

Jason


Sent from Mail for Windows 10



From: anatoly techtonik
Sent: Tuesday, November 3, 2015 1:11 PM
To: SCons developer list
Subject: Re: [Scons-dev] Show source SConscript on error


I want SCons to show me the line in SConscript file where
this source 'README' dependency was defined.

On Tue, Nov 3, 2015 at 7:26 PM, Bill Deegan <bill at baddogconsulting.com> wrote:
Anatoly,
Not exactly sure what you would like SCons to do differently?
There's a message and a non-zero exit status.
-Bill

On Tue, Nov 3, 2015 at 4:57 AM, anatoly techtonik <techtonik at gmail.com> wrote:
Try https://ci.appveyor.com/project/nlprocby/rhvoice/build/1.0.9

On Sun, Nov 1, 2015 at 6:06 PM, Bill Deegan <bill at baddogconsulting.com> wrote:
No permissions to view the log file..

On Sun, Nov 1, 2015 at 12:32 AM, anatoly techtonik <techtonik at gmail.com> wrote:
Hi,

I was looking at this build log (see also below) https://ci.appveyor.com/project/YauhenMinsk/rhvoice/build/1.0.8
and noticed that there is no way to tell whan SConsript complains
about missing target. Do we have this info at all? If yes, why it is
not shown by default?

...
build\windows\packages\sapi\RHVoice-voice-Russian-Irina.nsi
scons: *** [build\windows\README.txt] Source `README' not found, needed by target `build\windows\README.txt'.
scons: building terminated because of errors.
Command exited with code 2



-- 
anatoly t.

_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev




-- 
anatoly t.

_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev




-- 
anatoly t.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20151103/8df22782/attachment-0001.html>


More information about the Scons-dev mailing list