<div dir="ltr"><div><div>Based on remarks from Markus, I installed r.mess (and other extensions) from 
the command line rather then using the g.extension gui interface. It does seem to do the trick<br><br> The extensions install fine, and the total manual page is now rendered 
when running the extension. Meaning, including the NAME, KEYWORDS and 
SYNOPSIS sections (but, a minor thing, black square instead of grass icon - i.e., wrong link).<br><br></div>Not sure if it is of relevance, but if immediately after installing this way I run the extension from the command line, all works fine. Running it from the command console in the GRASS GIS Layer Manager does only work after restaring GRASS GIS though.<br>
<br>I didn't realize that running g.extension from the menu invoked a different command (<a href="http://g.extension.py">g.extension.py</a>) then what used on the command line (g.extension). It does seem to make a difference. Sorry if that caused any confusion, but hope the above helps. <br>
<br>Also following a remark from Markus, I set the debug level at 3 with g.gisenv set="DEBUG=3". I attached the output from the command line when installing a extension.<br><br><div class="gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid #ddd">
<a href="https://docs.google.com/file/d/0BxmPKNQOjMevRk1Nb2dlZ2JZelU/edit" target="_blank" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:medium none;width:100%"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:#15c;text-decoration:none;vertical-align:bottom">debug.txt</span></a></div>
<br></div><div>Cheers,<br><br></div><div>Paulo<br></div><div><div><div><div><br><br><br><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 11:17 AM, Paulo van Breugel <span dir="ltr"><<a href="mailto:p.vanbreugel@gmail.com" target="_blank">p.vanbreugel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just recompiled grass 6.4 (completely clean):<br>
<br>
* The earlier mentioned problem with g.html2man not being in the right folder was solved, it appears in the tools folder now<br>
<br>
* It did not solve the problem of omitting the parameter part in the manual page. When installing addons (tried script and py addons) using the g.extension gui interface (only showing the error messages):<br>
<br>
...<div class="im"><br>
ERROR: G_getenv(): Variable LOCATION_NAME not set<br></div>
....<div class="im"><br>
ERROR: G_getenv(): Variable LOCATION_NAME not set<br></div>
...<br>
WARNING: Unable to parse '<a href="http://grass.osgeo.org/addons/grass6/modules.xml" target="_blank">http://grass.osgeo.org/<u></u>addons/grass6/modules.xml</a>'. Metadata file not updated.<br>
Installation of <r.csr> successfully finished<br>
<br>
* The addon does not appear in the list when using the 'remove extension' gui interface<br>
<br>
All is run from within GRASS (using the menu 'settings-addon extensions'). Just to be complete, running e.g, r.mess --html-description from the command line does give the expected html file with the NAME, KEYWORDS and SYNOPSIS sections (i.e., the ones left out in the manual tab).<br>

<br>
Cheers,<br>
<br>
Paulo<div class="im"><br>
<br>
<br>
On Mon 28 Jan 2013 10:58:50 PM CET, Paulo van Breugel wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi Hamish,<br>
<br>
No, I just run it from within GRASS.  But let's see if it works with<br>
the latest version (I'LLC try tomorrow).<br>
<br>
Thanks!<br>
<br>
Paulo<br>
<br>
On Jan 28, 2013 10:14 PM, "Hamish" <<a href="mailto:hamish_b@yahoo.com" target="_blank">hamish_b@yahoo.com</a><br></div><div><div class="h5">
<mailto:<a href="mailto:hamish_b@yahoo.com" target="_blank">hamish_b@yahoo.com</a>>> wrote:<br>
<br>
    Margherita wrote:<br>
    > Hamish,<br>
    > KUDOS! It works like a charm, tested with addons in C, in<br>
    > python and in bash.<br>
    > Thanks A LOT!<br>
<br>
    glad to hear it. It's just the first step though, making sure it<br>
    also still works from the various packages (esp. Mac) is needed.<br>
<br>
    Paulo, re.:<br>
    > ERROR: G_getenv(): Variable LOCATION_NAME not set<br>
<br>
    I'd again ask Markus's question- are you trying to run the script<br>
    from outside of GRASS? The help pages get their usage info auto-<br>
    matically from a modified version of 'g.module --help', so if<br>
    you try to run it from outside of GRASS the module fails to run<br>
    and that's the error you are seeing. During the main build we<br>
    don't have a grass session to use for that so we employ a trick<br>
    that creates a fake grass session (called "demolocation", perhaps<br>
    a poor choice of words) and runs it there. The bootstrapping from<br>
    that to the installed stripped down build system for g.extension<br>
    and self compiled addon modules or self-supplied scripts  is in<br>
    large part the cause of all the trouble we've had with this, it's<br>
    a multicontext situation. But solvable, and hopefully that part of<br>
    it is all ok now.<br>
<br>
<br>
    regards,<br>
    Hamish<br>
<br>
</div></div></blockquote>
</blockquote></div><br></div>