Re: Exceptions in recent revisions
Regarding the exception introduced in revno 4288, I have found solution leoCommands.py, line 7234, in setChanged if g.app.gui.guiName().startswith('qt') and g.app.qt_use_tabs and hasattr(c.frame,'top'): AttributeError: 'NoneType' object has no attribute 'guiName' I think that the boolean expression in the above line (7234) should start with g.app.gui and ... it should be: if g.app.gui and g.app.gui.getName().startswith(qt) and g.app.qt_use_tabs and hasattr(c.frame,'top'): It seems that the method setChanged get called before g.app.gui is created. Regarding the rest of exceptions they disappeared when I updated my Leo to current revno 4302 Vitalije -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
Re: Exceptions in recent revisions
On Thu, Jun 9, 2011 at 2:02 AM, vitalije vitali...@gmail.com wrote: Regarding the exception introduced in revno 4288, I have found solution Thanks for this. It's now on the trunk at rev 4304. Regarding the rest of exceptions they disappeared when I updated my Leo to current revno 4302 Glad to hear it. Thanks, Vitalije, for your help in testing. Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
Re: Exceptions in recent revisions
revno 4275: When executing script that uses c.executeMinibufferCommand for example: c.executeMinibufferCommand('save-file') produces the following log NameError: global name 'stroke' is not defined line 697: # stroke = None * line 698: event = g.app.gui.create_key_event(c,None,stroke,w) line 699: k.masterCommand(event,func,stroke) line 700: return k.funcReturn exception executing script revno:4284 The same script produces the following log TypeError: masterCommand() takes at least 4 arguments (3 given) line 718: event = g.app.gui.create_key_event(c,None,None,None) * line 719: k.masterCommand(event,func) line 720: return k.funcReturn line 721: else: and revno: 4288 at the start up produces the following log: Leo Log Window Leo 4.9 beta 2, build 4265, June 4, 2011 Python 2.7.1, qt version 4.7.2 linux2 setting leoID from os.getenv('USER'): 'vitalije' load dir: /home/vitalije/programi/leo-editor/trunk/leo/core global config dir: /home/vitalije/programi/leo-editor/trunk/leo/config home dir: /home/vitalije reading settings in /home/vitalije/programi/leo-editor/trunk/leo/ config/leoSettings.leo reading settings in /home/vitalije/programi/leo-editor/trunk/leo/ config/myLeoSettings.leo unexpected exception in g.getScript Traceback (most recent call last): File /home/vitalije/programi/leo-editor/trunk/leo/core/ leoGlobals.py, line 4481, in getScript useSentinels=useSentinels) File /home/vitalije/programi/leo-editor/trunk/leo/core/ leoAtFile.py, line 3305, in writeFromString c.endEditing() # Capture the current headline, but don't change the focus! File /home/vitalije/programi/leo-editor/trunk/leo/core/ leoCommands.py, line 7415, in endEditing c.frame.tree.endEditLabel() File /home/vitalije/programi/leo-editor/trunk/leo/core/ leoFrame.py, line 2289, in endEditLabel self.onHeadChanged(p) File /home/vitalije/programi/leo-editor/trunk/leo/core/ leoFrame.py, line 2211, in onHeadChanged if not c.changed: c.setChanged(True) File /home/vitalije/programi/leo-editor/trunk/leo/core/ leoCommands.py, line 7234, in setChanged if g.app.gui.guiName().startswith('qt') and g.app.qt_use_tabs and hasattr(c.frame,'top'): AttributeError: 'NoneType' object has no attribute 'guiName' I am using ubuntu 11.04 HTH Vitalije -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
Re: Exceptions in recent revisions
BTW, at present the menus have silently disappeared from my Linux machine! Using the latest code (4299), I still see menus on _my_ Linux machine with no problems (Python3, qtleo started from command line, ArchLinux). Could I help there somehow? KR, Radim -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
Re: Exceptions in recent revisions
On Tue, Jun 7, 2011 at 8:44 AM, vitalije vitali...@gmail.com wrote: Hello ! Today I have downloaded new revisions and have noticed several exceptions and errors. Please provide the full tracebacks. Thanks. I do not see any tracebacks. BTW, at present the menus have silently disappeared from my Linux machine! I'll be tracking this down immediately. Edward -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.