Scripting new command fails in v8.994 - fixed for next version
Issue #478
new
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)
-
reporter -
Got it, Thanks!
-
- changed title to Scripting new command fails in v8.994 - fixed for next version
- Log in to comment
The correct call in lien 42 of TCLCommandNew should be:
self.app.f_handlers.on_file_new(cli=True)