Scripting new command fails in v8.994 - fixed for next version

Issue #478 new
Andre Spahlinger created an issue

When running tcl script with new command ther following error will be shown:
New TCL script file created in Code Editor.
New object with name: new_script. 0.000074 seconds executing initialize().
ERROR: 'App' object has no attribute 'on_file_new'
Python traceback: <class 'AttributeError'>
 File "/usr/local/Cellar/flatcam-beta/8.9.9/libexec/tclCommands/TclCommandNew.py", line 42, in execute > self.app.on_file_new(cli=True)
 File "/usr/local/Cellar/flatcam-beta/8.9.9/libexec/tclCommands/TclCommand.py", line 294, in execute_wrapper > return self.execute(args, unnamed_args)
 while executing
"new"

Comments (3)

  1. Andre Spahlinger reporter

    The correct call in lien 42 of TCLCommandNew should be:

    self.app.f_handlers.on_file_new(cli=True)

  2. Log in to comment