Hi Edward,
Welcome back!
This build 5819 is not launching for me. Here is the traceback:
c:\python33\Lib\site-packages\leo-editor>launchleo.py
Traceback (most recent call last):
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 278, in _q_reformatBlocks
self._reformatBlocks(pos1,charsRemoved,charsAdded)
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 305, in _reformatBlocks
while block.isValid() and (block.position() < endPosition or
forceHighlightOfNextBlock):
TypeError: unorderable types: int() < QSizeF()
Traceback (most recent call last):
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 278, in _q_reformatBlocks
self._reformatBlocks(pos1,charsRemoved,charsAdded)
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 305, in _reformatBlocks
while block.isValid() and (block.position() < endPosition or
forceHighlightOfNextBlock):
TypeError: unorderable types: int() < QSizeF()
Traceback (most recent call last):
File "C:\python33\Lib\site-packages\leo-editor\launchLeo.py", line 8, in
<module>
leo.core.runLeo.run()
File "C:\python33\Lib\site-packages\leo-editor\leo\core\runLeo.py", line
81, in run
g.app.loadManager.load(fileName,pymacs)
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoApp.py", line
1910, in load
ok = lm.doPostPluginsInit()
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoApp.py", line
2299, in doPostPluginsInit
c = c1 = lm.loadLocalFile(fn,gui=g.app.gui,old_c=None)
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoApp.py", line
2528, in loadLocalFile
c = lm.openFileByName(fn,gui,old_c,previousSettings)
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoApp.py", line
2579, in openFileByName
lm.initWrapperLeoFile(c,fn)
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoApp.py", line
2666, in initWrapperLeoFile
c.selectPosition(p)
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoCommands.py",
line
8234, in selectPosition
c.frame.tree.select(p)
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoFrame.py",
line 2061, in select
c.frame.tree.afterSelectHint(p,old_p)
File
"C:\python33\Lib\site-packages\leo-editor\leo\plugins\baseNativeTree.py",
line 790, in afterSelectHint
c.outerUpdate() # Bring the tree up to date.
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoCommands.py",
line
631, in outerUpdate
c.recolor_now(incremental=c.incrementalRecolorFlag)
File "C:\python33\Lib\site-packages\leo-editor\leo\core\leoCommands.py",
line
7233, in recolor_now
incremental=incremental,interruptable=interruptable)
File "C:\python33\Lib\site-packages\leo-editor\leo\plugins\qtGui.py",
line 9261, in colorize
self.highlighter.rehighlight(p)
File "C:\python33\Lib\site-packages\leo-editor\leo\plugins\qtGui.py",
line 9733, in rehighlight
qsh.LeoSyntaxHighlighter.rehighlight(self)
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 103, in rehighlight
self._rehighlightCursor(cursor,QtGui.QTextCursor.End)
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 323, in _rehighlightCursor
self._reformatBlocks(pos1,0,cursor.position()-pos1)
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 307, in _reformatBlocks
self._reformatBlock(block)
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 290, in _reformatBlock
self._applyFormatChanges()
File
"C:\python33\Lib\site-packages\leo-editor\leo\core\qsyntaxhighlighter.py",
line 208, in _applyFormatChanges
preeditAreaLength = layout.preeditAreaText().length()
AttributeError: 'str' object has no attribute 'length'
c:\python33\Lib\site-packages\leo-editor>
Regards
Lewis
On Wednesday, July 3, 2013 8:59:28 AM UTC+10, 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.
>
>
--
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.