[Scons-users] Scanner / Builder Race Condition?

Brian Cody brian.j.cody at gmail.com
Mon Feb 22 18:07:41 EST 2016


We should be on 2.4.1.  I’ll update if that’s inaccurate. 

The error that you gave, tried to look up Dir as a file, is another one of the error conditions that we see in our real build, actually! It’s the path to the project file from the SConstruct.


> On 2016 Feb22, at 18:03, William Blevins <wblevins001 at gmail.com> wrote:
> 
> What version of SCons are you using?
> 
> On Mon, Feb 22, 2016 at 11:00 PM, William Blevins <wblevins001 at gmail.com <mailto:wblevins001 at gmail.com>> wrote:
> I do see what you are saying though...
> 
> On Mon, Feb 22, 2016 at 10:43 PM, William Blevins <wblevins001 at gmail.com <mailto:wblevins001 at gmail.com>> wrote:
> I get this error after I created 2 *.dat file(s) with junk data: "TypeError: Tried to lookup Dir '.' as a File."
> 
> On Mon, Feb 22, 2016 at 10:35 PM, William Blevins <wblevins001 at gmail.com <mailto:wblevins001 at gmail.com>> wrote:
> I am missing the source files to trace the program, but it's a more concrete example :)
> 
> On Mon, Feb 22, 2016 at 9:53 PM, Brian Cody <brian.j.cody at gmail.com <mailto:brian.j.cody at gmail.com>> wrote:
> William,
> 
> Source code and instructions found within:
> http://pastebin.com/KSkjkszp <http://pastebin.com/KSkjkszp>
> 
> It produced the error on the first try. While the project file was being scanned, it was rebuilt out from under it. Given the simplicity of the test app, nothing broke, but it should be obvious why it could!
> 
> c:\workdir\software2\projects\test>scons -j 2
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scanning project.prj
> done scanning project.prj
> >scanning project.prj
> >>>>create_project_file(["project.prj"], ["source_1.dat", "source_2.dat"])
> >>>>building project.prj
> >done scanning project.prj
> done building project.prj
> scanning project.prj
> done scanning project.prj
> version_action(["derp.txt"], ["project.prj"])
> compiler_action(["out.bin"], ["project.prj", "derp.txt"])
> creating out.bin
> done creating out.bin
> scons: done building targets.
> 
> 
> Thanks!
> 
> 
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org <mailto:Scons-users at scons.org>
> https://pairlist4.pair.net/mailman/listinfo/scons-users <https://pairlist4.pair.net/mailman/listinfo/scons-users>
> 
> 
> 
> 
> 
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160222/cf7da832/attachment-0001.html>


More information about the Scons-users mailing list