Includes/childs

"Lars Ivar Igesund" <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <00ed01c373fd$f46f7090$0200000a@mesmer>
Hi

To be in front of evolution, I've put my D code into a recipe
called dmodule.aap. Sometime in the future, this can be
included automagically when I specify a program with
d sources. Just to test it out, I tried to have default.app
including it;
:include dmodule.aap

This didn't work very well with my project as it took the
path to be relative to my project, and not default.aap (as
I would expect after reading the docs.)
Then I did
:child dmodule.aap
instead. From my projects dir, it still didn't work;

'Recipe "dmodule.aap" does not exist'

To test a little further, I went to the aap/Exec dir and
ran just aap. This lead to the following:

$ aap
Aap: Internal Error
Aap: Traceback (most recent call last):
   File "c:\projects\code\myaap\Exec\Process.py", line 1105, in Process
    exec script_string in recdict, recdict
   File "<string>", line 18, in ?
   File "c:\projects\code\myaap\Exec\Commands.py", line 1098, in aap_child
    aap_child_and_exe(line_nr, recdict, arg, 1)
   File "c:\projects\code\myaap\Exec\Commands.py", line 1174, in
aap_child_and_exe
    new_recdict = get_build_recdict(recdict, None, recipe_name = name)
   File "c:\projects\code\myaap\Exec\Scope.py", line 401, in
get_build_recdict
    new_recdict["_default"] = recdict["_default"]
 KeyError: '_default'

Aap: Aborted

AFAIK, default.aap only differ from the original on
the :child statement, and Filetype.py on the addition
of the d file type.

I guess that I'm just not supposed to do this...

Lars Ivar Igesund



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.