Re: Sample D Recipe?
[email protected] Thu, 3 Feb 2005 07:29:06 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
This bug was introduced in version 1.072. I came upon it a few weeks ago, but accidently got rid of it. The real problem here is that the 'prog' variable is set to 'None' if the program isn't found in the path. This gives an error when using the 'in' operator. The attached pathc works for me. I think it's time for 1.075 now. Lars Ivar Igesund Quoting Nick Sabalausky <[email protected]>: > (I tried posting this through the newsgroup a couple times but it didn't seem > to appear, so sorry if this appears three times :/ ) > > Does anyone have a sample working recipe for builing a D program? I keep > getting cryptic errors like this (Contents of log file): > > extra: Reading recipe "main.aap" > extra: Importing "d" from ['G:\\Documents and Settings\\Nick > Sabalausky\\aap\\modules', 'G:\\DevTool\\aap-1.074\\modules'] > extra: Reading recipe "G:\DevTool\aap-1.074\modules\d.aap" > note: :progsearch did not find any of ['ddepcheck'] > error: Internal Error > error: Traceback (most recent call last): > File "G:\DevTool\aap-1.074\Process.py", line 1163, in Process > exec script_string in recdict, recdict > File "<string>", line 16, in ? > File "G:\DevTool\aap-1.074\Commands.py", line 3098, in aap_progsearch > if " " in prog: > TypeError: iterable argument required > > error: Aborted > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > A-A-P-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/a-a-p-develop >
commands.diff
(application/octet-stream, 765 B)
Index: Commands.py
===================================================================
RCS file: /cvsroot/a-a-p/Exec/Commands.py,v
retrieving revision 1.127
diff -u -r1.127 Commands.py
--- Commands.py 23 Oct 2004 11:38:56 -0000 1.127
+++ Commands.py 3 Feb 2005 07:32:47 -0000
@@ -3093,10 +3093,10 @@
if not prog:
msg_note(recdict, _(':progsearch did not find any of %s')
% map(lambda x: x["name"], args[1:]))
-
- # If the program name includes a space put it in double quotes.
- if " " in prog:
- prog = '"%s"' % prog
+ else:
+ # If the program name includes a space put it in double quotes.
+ if " " in prog:
+ prog = '"%s"' % prog
try:
rd[varname] = prog