LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.78k stars 1.14k forks source link

TCL error with master build: bad menu entry index "G-code properties..." #3065

Closed Sigma1912 closed 3 weeks ago

Sigma1912 commented 1 month ago

This error pops up on a current (12. August) build of master: Maybe related to https://github.com/LinuxCNC/linuxcnc/commit/4cb5170b4368d79254b0220a79480d2f5b9d7c78

LINUXCNC - 2.10.0~pre0
Machine configuration directory is '/home/user/git/linuxcnc-master-august-12/configs/sim/axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
linuxcncsvr (374409) emcsvr: machine 'LinuxCNC-HAL-SIM-AXIS'  version '1.1'
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
milltask (374423) task: machine 'LinuxCNC-HAL-SIM-AXIS'  version '1.1'
halui (374425) halui: machine 'LinuxCNC-HAL-SIM-AXIS'  version '1.1'
Found file(lib): /home/user/git/linuxcnc-master-august-12/lib/hallib/core_sim.hal
Found file(lib): /home/user/git/linuxcnc-master-august-12/lib/hallib/sim_spindle_encoder.hal
Found file(lib): /home/user/git/linuxcnc-master-august-12/lib/hallib/axis_manualtoolchange.hal
Found file(lib): /home/user/git/linuxcnc-master-august-12/lib/hallib/simulated_home.hal
Found file(lib): /home/user/git/linuxcnc-master-august-12/lib/hallib/check_xyz_constraints.hal
Found file(REL): ./cooling.hal
USRMOT: ERROR: command 30 timeout
emcMotionInit: emcTrajInit failed
link (updating variable file): No such file or directory
note: MAXV     max: 5.000 units/sec 300.000 units/min
note: LJOG     max: 5.000 units/sec 300.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
TCL error in asynchronous code:
bad menu entry index "G-code properties..."
    while executing
"$m entrycget $idx -state"
    (procedure "state" line 9)
    invoked from within
"state  {$taskfile != ""} {.menu.file "G-code _properties..."}"
    (procedure "update_state" line 13)
    invoked from within
"update_state"
    ("after" script)
Sigma1912 commented 1 month ago

Actually there is a typo in that commit. Line 1786 is missing an underscore before 'G-code': IS state {$taskfile != ""} {.menu.file "G-code _properties..."} SCHOULD BE state {$taskfile != ""} {.menu.file "_G-code _properties..."}

seems to fix it for me

Sigma1912 commented 3 weeks ago

Fixed