[Scons-users] Scanner / Builder Race Condition?

William Blevins wblevins001 at gmail.com
Tue Feb 23 08:26:50 EST 2016


I added the output snippet from earlier in the chain, but it looked
precise. Thanks.

On Tue, Feb 23, 2016 at 12:59 PM, Brian Cody <brian.j.cody at gmail.com> wrote:

> I've entered http://scons.tigris.org/issues/show_bug.cgi?id=3022
>
> If there's anything else I ought to add, let me know.
>
> On Mon, Feb 22, 2016 at 6:31 PM, William Blevins <wblevins001 at gmail.com>
> wrote:
>
>> It seems that action that act on a source should not be allowed until
>> that source is up-to-date...
>>
>> On Mon, Feb 22, 2016 at 11:25 PM, William Blevins <wblevins001 at gmail.com>
>> wrote:
>>
>>> Brian,
>>>
>>> The Dir as a File is sort of already documented:
>>> http://scons.tigris.org/issues/show_bug.cgi?id=2648
>>> That seems to be related to lazy Node.FS creation and guessing the type
>>> or making the type FS.Entry.
>>>
>>> I am seeing the error you are describing, but I don't know how to
>>> quickly fix it. On skimming the tigris issues, I did not see this listed.
>>> Would you make a new issue with the SConstruct you attached and your other
>>> output?
>>>
>>> V/R,
>>> William
>>>
>>> On Mon, Feb 22, 2016 at 11:07 PM, Brian Cody <brian.j.cody at gmail.com>
>>> wrote:
>>>
>>>> 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> wrote:
>>>>
>>>>> I do see what you are saying though...
>>>>>
>>>>> On Mon, Feb 22, 2016 at 10:43 PM, William Blevins <
>>>>> 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> 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>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> William,
>>>>>>>>
>>>>>>>> Source code and instructions found within:
>>>>>>>> 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
>>>>>>>> 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
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Scons-users mailing list
>>>> Scons-users at scons.org
>>>> 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
>>
>>
>
> _______________________________________________
> 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/20160223/d899b7a7/attachment.html>


More information about the Scons-users mailing list