Hi there,

Revision 5821 does start Leo, but body pane content does not change when 
clicking on different nodes, and no syntax coloring is on.
The report follows.I apologise if this is not the proper way to post long 
code.
**********************************
** isPython3: True
Leo 4.11 devel, build 5821, 2013-07-03 09:04:01
Python 3.2.3, qt version 4.8.2
linux2
setting leoID from os.getenv('USER'): 'daniel'
load dir: /home/daniel/bin/leo-editor/leo/core
global config dir: /home/daniel/bin/leo-editor/leo/config
home dir: /home/daniel
reading settings in /home/daniel/bin/leo-editor/leo/config/leoSettings.leo
reading settings in /home/daniel/.leo/myLeoSettings.leo
reading settings in /home/daniel/.leo/workbook.leo
Abbreviations are on
reading settings in /home/daniel/Downloads/structured_teste.leo
Abbreviations are on
Traceback (most recent call last):
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
286, in _q_reformatBlocks
    self._reformatBlocks(pos1,charsRemoved,charsAdded)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
302, in _reformatBlocks
    
self._boundedReformatBlocks(block,endPosition,forceHighlightOfNextBlock=False)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
309, in _boundedReformatBlocks
    while block.isValid() and (block.position() < endPosition or 
forceHighlightOfNextBlock):
TypeError: unorderable types: int() < QSizeF()
Traceback (most recent call last):
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
286, in _q_reformatBlocks
    self._reformatBlocks(pos1,charsRemoved,charsAdded)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
302, in _reformatBlocks
    
self._boundedReformatBlocks(block,endPosition,forceHighlightOfNextBlock=False)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
309, in _boundedReformatBlocks
    while block.isValid() and (block.position() < endPosition or 
forceHighlightOfNextBlock):
TypeError: unorderable types: int() < QSizeF()
Traceback (most recent call last):
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 5483, in 
qt_add_command_callback
    return command()
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 7026, in 
add_commandCallback
    val = command()
  File "/home/daniel/bin/leo-editor/leo/core/leoApp.py", line 3011, in 
recentFilesCallback
    c.openRecentFile(name)
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 1968, in 
openRecentFile
    c2 = g.openWithFileName(fn,old_c=c)
  File "/home/daniel/bin/leo-editor/leo/core/leoGlobals.py", line 2113, in 
openWithFileName
    return g.app.loadManager.loadLocalFile(fileName,gui,old_c)
  File "/home/daniel/bin/leo-editor/leo/core/leoApp.py", line 2528, in 
loadLocalFile
    c = lm.openFileByName(fn,gui,old_c,previousSettings)
  File "/home/daniel/bin/leo-editor/leo/core/leoApp.py", line 2572, in 
openFileByName
    ok = lm.readOpenedLeoFile(c,gui,fn,readAtFileNodesFlag,theFile)
  File "/home/daniel/bin/leo-editor/leo/core/leoApp.py", line 2756, in 
readOpenedLeoFile
    readAtFileNodesFlag=readAtFileNodesFlag)
  File "/home/daniel/bin/leo-editor/leo/core/leoFileCommands.py", line 916, 
in openLeoFile
    silent=silent)
  File "/home/daniel/bin/leo-editor/leo/core/leoFileCommands.py", line 760, 
in getLeoFile
    c.redraw()
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 7149, in 
redraw
    c.selectPosition(p2 or p)
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 8234, in 
selectPosition
    c.frame.tree.select(p)
  File "/home/daniel/bin/leo-editor/leo/core/leoFrame.py", line 2061, in 
select
    c.frame.tree.afterSelectHint(p,old_p)
  File "/home/daniel/bin/leo-editor/leo/plugins/baseNativeTree.py", line 
790, in afterSelectHint
    c.outerUpdate() # Bring the tree up to date.
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 631, in 
outerUpdate
    c.recolor_now(incremental=c.incrementalRecolorFlag)
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 7233, in 
recolor_now
    incremental=incremental,interruptable=interruptable)
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 9261, in 
colorize
    self.highlighter.rehighlight(p)
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 9733, in 
rehighlight
    qsh.LeoSyntaxHighlighter.rehighlight(self)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
108, in rehighlight
    self._rehighlightCursor(cursor,QtGui.QTextCursor.End)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
371, in _rehighlightCursor
    self._reformatBlocks(pos1,0,cursor.position()-pos1)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
302, in _reformatBlocks
    
self._boundedReformatBlocks(block,endPosition,forceHighlightOfNextBlock=False)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
311, in _boundedReformatBlocks
    self._reformatBlock(block)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
342, in _reformatBlock
    self._applyFormatChanges()
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
213, in _applyFormatChanges
    preeditAreaLength = layout.preeditAreaText().length()
AttributeError: 'str' object has no attribute 'length'
wrote recent file: /home/daniel/.leo/.leoRecentFiles.txt
Traceback (most recent call last):
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 7376, in 
slotCurrentChanged
    g.app.selectLeoWindow(f.c)
  File "/home/daniel/bin/leo-editor/leo/core/leoApp.py", line 972, in 
selectLeoWindow
    c.outerUpdate()
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 631, in 
outerUpdate
    c.recolor_now(incremental=c.incrementalRecolorFlag)
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 7233, in 
recolor_now
    incremental=incremental,interruptable=interruptable)
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 9261, in 
colorize
    self.highlighter.rehighlight(p)
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 9733, in 
rehighlight
    qsh.LeoSyntaxHighlighter.rehighlight(self)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
108, in rehighlight
    self._rehighlightCursor(cursor,QtGui.QTextCursor.End)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
371, in _rehighlightCursor
    self._reformatBlocks(pos1,0,cursor.position()-pos1)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
302, in _reformatBlocks
    
self._boundedReformatBlocks(block,endPosition,forceHighlightOfNextBlock=False)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
311, in _boundedReformatBlocks
    self._reformatBlock(block)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
334, in _reformatBlock
    assert not self._currentBlock.isValid(),self._currentBlock
AssertionError: <PyQt4.QtGui.QTextBlock object at 0xbb1ebb4>
Traceback (most recent call last):
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 7055, in 
closeEvent
    res = c.exists and g.app.closeLeoWindow(c.frame)
  File "/home/daniel/bin/leo-editor/leo/core/leoApp.py", line 709, in 
closeLeoWindow
    g.app.destroyWindow(frame)
  File "/home/daniel/bin/leo-editor/leo/core/leoApp.py", line 880, in 
destroyWindow
    frame.destroySelf()
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 4014, in 
destroySelf
    g.app.gui.frameFactory.deleteFrame(top)
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 7307, in 
deleteFrame
    g.app.selectLeoWindow(wdg2.leo_c)
  File "/home/daniel/bin/leo-editor/leo/core/leoApp.py", line 972, in 
selectLeoWindow
    c.outerUpdate()
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 631, in 
outerUpdate
    c.recolor_now(incremental=c.incrementalRecolorFlag)
  File "/home/daniel/bin/leo-editor/leo/core/leoCommands.py", line 7233, in 
recolor_now
    incremental=incremental,interruptable=interruptable)
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 9261, in 
colorize
    self.highlighter.rehighlight(p)
  File "/home/daniel/bin/leo-editor/leo/plugins/qtGui.py", line 9733, in 
rehighlight
    qsh.LeoSyntaxHighlighter.rehighlight(self)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
108, in rehighlight
    self._rehighlightCursor(cursor,QtGui.QTextCursor.End)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
371, in _rehighlightCursor
    self._reformatBlocks(pos1,0,cursor.position()-pos1)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
302, in _reformatBlocks
    
self._boundedReformatBlocks(block,endPosition,forceHighlightOfNextBlock=False)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
311, in _boundedReformatBlocks
    self._reformatBlock(block)
  File "/home/daniel/bin/leo-editor/leo/core/qsyntaxhighlighter.py", line 
334, in _reformatBlock
    assert not self._currentBlock.isValid(),self._currentBlock
AssertionError: <PyQt4.QtGui.QTextBlock object at 0xbb1ebb4>
*************************************************************************

On Tuesday, July 2, 2013 7:59:28 PM UTC-3, Edward K. Ream wrote:
>
> The new code is experimental, but it appears to be fast enough.  Indeed, 
> it might even be faster because several redundant redraws have been removed.
>
> The new code is really just the beginning of experimentation.
>
> If you have any problems, you can disable the new code as described in the 
> following checkin log:
>
> QQQ
> Debugged and enabled the python-only replacement for QSyntaxHighlighter.
>
> Changes to qtGui.py:
>
> - Added NEW_COLORER = True in leo/plugins/qtGui.py.
>   To disable the new code, just set this switch to False.
>   All unit tests regardless of this switch.
>
> - The setHighlighter method no longer does an immediate recolor.
>   It appears that this recolor is *never* needed.
>
> - Added class LeoSyntaxHighlighter, the python-only replacement for 
> leoQtSyntaxHighlighter.
>   This class is a complete new copy, which seems simpler than yet another 
> hard-to-understand subclass.
>
> Changes to leo/core/qtsyntaxhighlighter.py:
>
> - setDocument does not fire the single-shot, eliminating yet another 
> redundant recolor.
>   This is not needed because selecting a new node *always* recolors it.
>   
> - Fixed some crasher by adding guards in the getter/setter methods.
>
> - Fixed the one and only real bug in the transliteration:
>   The r object must be re-allocated each time through the loop in 
> _applyFormatChanges.
>   Failure to do this caused most formats to be black.
> QQQ
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to