[GRASS-dev] [bug #4619] (grass) gis.m: Error in startup script: missing close-brace

I will add that this bug is present in d.m too, not only gis.m:

GRASS 6.1.cvs (caves_utm33):~ > d.m
GRASS 6.1.cvs (caves_utm33):~ > Error in startup script: missing close-brace
    while executing
"proc GuiMenu::tree {} {

        # Tear off menus (yes / no)
        global tmenu
        # Key to use for control (for menu accelerators)
        global keyctrl
        # The environme..."
    (file "/usr/local/grass-6.1.cvs/etc/gui/menus/menu.tcl" line 26)
    invoked from within
"source "$env(GISBASE)/etc/gui/menus/menu.tcl""
    (file "/usr/local/grass-6.1.cvs/etc/dm//menu.tcl" line 9)
    invoked from within
"source $dmpath/menu.tcl"
    (procedure "Dm::create" line 23)
    invoked from within
"Dm::create"
    (procedure "main" line 33)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass-6.1.cvs/etc/dm/d.m.tcl" line 1636)

Maciek

-------------------------------------------- Managed by Request Tracker

That bug touches both gis.m and d.m because it is in menu.tcl
which is sourced by both frontends.
I have fixed the problem. It's just a few missing tokens on
the v.lrs.segment menu line.

I currently do not have working CVS write access so I am
attaching a fixed version of menu.tcl for someone else
to commit.
It needs to go into

grass6/gui/tcltk/menus

and will install to

$GISBASE/etc/gui/menus

The version I have attached also fixes a problem with
more than one extension not registering correctly in the
GUI when installed with GEM.

Best,

Benjamin

Maciek Sieczka via RT wrote:

I will add that this bug is present in d.m too, not only gis.m:

GRASS 6.1.cvs (caves_utm33):~ > d.m
GRASS 6.1.cvs (caves_utm33):~ > Error in startup script: missing close-brace
    while executing
"proc GuiMenu::tree {} {

        # Tear off menus (yes / no)
        global tmenu
        # Key to use for control (for menu accelerators)
        global keyctrl
        # The environme..."
    (file "/usr/local/grass-6.1.cvs/etc/gui/menus/menu.tcl" line 26)
    invoked from within
"source "$env(GISBASE)/etc/gui/menus/menu.tcl""
    (file "/usr/local/grass-6.1.cvs/etc/dm//menu.tcl" line 9)
    invoked from within
"source $dmpath/menu.tcl"
    (procedure "Dm::create" line 23)
    invoked from within
"Dm::create"
    (procedure "main" line 33)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass-6.1.cvs/etc/dm/d.m.tcl" line 1636)

Maciek

-------------------------------------------- Managed by Request Tracker

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

--
Benjamin Ducke, M.A.
Archäoinformatik
(Archaeoinformation Science)
Institut für Ur- und Frühgeschichte
(Inst. of Prehistoric and Historic Archaeology)
Christian-Albrechts-Universität zu Kiel
Johanna-Mestorf-Straße 2-6
D 24098 Kiel
Germany

Tel.: ++49 (0)431 880-3378 / -3379
Fax : ++49 (0)431 880-7300
www.uni-kiel.de/ufg

(attachments)

menu.tcl (38 KB)

On Sun, Jun 18, 2006 at 12:23:59PM +0200, Benjamin Ducke wrote:

That bug touches both gis.m and d.m because it is in menu.tcl
which is sourced by both frontends.
I have fixed the problem. It's just a few missing tokens on
the v.lrs.segment menu line.

I currently do not have working CVS write access so I am
attaching a fixed version of menu.tcl for someone else
to commit.
It needs to go into

grass6/gui/tcltk/menus

and will install to

$GISBASE/etc/gui/menus

The version I have attached also fixes a problem with
more than one extension not registering correctly in the
GUI when installed with GEM.

Best,

Benjamin

Thanks, fix applied to CVS.
Now both gis.m and d.m are functional again.

Markus

PS: please consider to send CVS diffs only:
    cvs diff -u menu.tcl > menu.diff

Can someone else update the CVS with this? I'm just back from out of town
and won't have cvs access until Monday.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Benjamin Ducke <benjamin.ducke@ufg.uni-kiel.de>
Date: Sun, 18 Jun 2006 12:23:59 +0200
To: Maciek Sieczka via RT <grass-bugs@intevation.de>, GRASS devel
<grass-dev@grass.itc.it>
Subject: Re: [GRASS-dev] [bug #4619] (grass) gis.m: Error in startup script:
missing close-brace

That bug touches both gis.m and d.m because it is in menu.tcl
which is sourced by both frontends.
I have fixed the problem. It's just a few missing tokens on
the v.lrs.segment menu line.

I currently do not have working CVS write access so I am
attaching a fixed version of menu.tcl for someone else
to commit.
It needs to go into

grass6/gui/tcltk/menus

and will install to

$GISBASE/etc/gui/menus

The version I have attached also fixes a problem with
more than one extension not registering correctly in the
GUI when installed with GEM.