MacroServer ReloadMacro failure (SF#444)
Created by: sf-migrator-bot
Hi,
When the MacroServer failed to load a Macro , it is impossible to reload it after the correction. All commands return "Unknown Macro". There is also no way to know why the (re)loading of the Macro has failed. The only way to go back to a good situation is to restart the MacroServer. I would like to be able to know the reason of the failure of the macro (re)loading (Syntax error in the exemple below) and to avoid the retstart of the MacroServer in case of failure. In other words, I would like that parsing error (syntax errro) are handled as execution error.
Thank you very much. Jean-Luc PONS
Here is the debug output of the MacroServer when it failed to load load the Macro.
Dummy-1 DEBUG 2016-03-09 10:29:27,182 ModuleManager: unloading module ssa_off_standby Dummy-1 INFO 2016-03-09 10:29:27,184 ModuleManager: (re)loading module ssa_off_standby... Dummy-1 ERROR 2016-03-09 10:29:27,186 ModuleManager: Error (re)loading module ssa_off_standby Dummy-1 DEBUG 2016-03-09 10:29:27,186 ModuleManager: Details: Traceback (most recent call last): File "/operation/dserver/python/bliss_modules/sardana/sardanamodulemanager.py", line 198, in reloadModule m = imp.load_module(module_name, mfile, pathname, desc) File "/operation/rf/srrf2/sequences/ssa_off_standby.py", line 13 self.output("[ssa_off_standby] Step 1")gh ^ SyntaxError: invalid syntax
Reported by: jlpons@SF ( http://sf.net/u/jlpons )
Original Ticket: sardana/tickets/444