Re: Adding another language to the fray

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Lars Ivar Igesund wrote:

> > What version of Aap are you using?
>
> 1.022, cvs.

That should be OK.

> Hmm, can it have something to do with the fact that the action is
> specified in default.aap? Also, more testing shows that if the stuff
> following the :action line is just a :print command, the error don't
> show up.

This points in the direction of a problem with indents.  Check that all
lines in the action have the same amount of indent (except continuation
lines, these should have more indent).

> Btw, is it possible to log while processing default.aap?

The problem is that when default.aap is processed we do not yet know the
directory where the log file is to be written.  This recipe is not
supposed to produce any interesting messages anyway.

If you really want to log messages of default.aap, write a separate
recipe that executes the actual recipe:

	# logging has started here
	all:
		:execute main.aap

-- 
   LAUNCELOT leaps into SHOT with a mighty cry and runs the GUARD through and
   hacks him to the floor.  Blood.  Swashbuckling music (perhaps).
   LAUNCELOT races through into the castle screaming.
SECOND SENTRY: Hey!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
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.