nburdick / lilykde

Automatically exported from code.google.com/p/lilykde
0 stars 0 forks source link

lilypond 2.0.8-9 incompatible with py-sip 4.14.3 #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
in february I've updated pt-sip and pt-qt to the latest versions. Frescobaldi 
started to take very long times to load files and when typing. This is seen on 
MacOS.

These are the test I've conducted:
What doesn't work:
OSX 10.8.1, QT4.8.4 (qt4-mac not the X11 version) , python27 2.7.3, py27-pyqt4 
4.9.6, py27-sip @4.14.3, frescobaldi 2.0.9 (git)
OSX 10.8.1, QT4.8.4 (qt4-mac not the X11 version) , python27 2.7.3, py27-pyqt4 
4.9.5, py27-sip @4.14.3, frescobaldi 2.0.9 (git)
OSX 10.7.6, QT4.8.4 (qt4-mac not the X11 version) , python27 2.7.3, py27-pyqt4 
4.9.6, py27-sip @4.14.3, frescobaldi 2.0.8

What works:
OSX 10.8.1, QT4.8.4 (qt4-mac not the X11 version) , python27 2.7.3, py27-pyqt4 
4.9.5, py27-sip @4.14.1, frescobaldi 2.0.9 (git)

Investigations show that in Toneniter.py

def tokens(block):
    """Returns the tokens for the given block as a (possibly empty) tuple."""
    try:
        return block.userData().tokens
    except AttributeError:
        highlighter.highlighter(block.document()).rehighlight()
    try:
        return block.userData().tokens
    except AttributeError:
        return ()

After highlighting, the block still have no tokens, so the methods always 
return () . However the highlighter do set some tokens. Either the block in 
highlights are not the same instances or the userData are freed somewhere. I 
was not able to debug further with my limiter python pt-qt skills.

Tokens is called for each line, so opening or modifying a file takes o(n2) 
which quickly render frescobaldi unusable.

Original issue reported on code.google.com by ja...@montignies.info on 25 Feb 2013 at 10:51

GoogleCodeExporter commented 8 years ago
Please use the issue tracker at Github for Frescobaldi 2.x bugs.

This bug (although a confirmed PyQt4 bug) has already been worked around in 
current git.

Original comment by wbsoft on 19 Mar 2013 at 3:30