Thank you - but oh no! -> the bug still remains ! It still gives the same errors originating in threadutils.py and stickynotes.py :
Plugin leo.plugins.nodetags not loaded. Traceback (most recent call last): File "/home/felix/leo-editor/leo/core/leoPlugins.py", line 515, in loadOnePluginHelper __import__(moduleName) File "/home/felix/leo-editor/leo/plugins/quicksearch.py", line 88, in <module> from leo.plugins import threadutil File "/home/felix/leo-editor/leo/plugins/threadutil.py", line 131, in <module> class Repeater(QtCore.QThread): AttributeError: 'NoneType' object has no attribute 'QThread' Plugin leo.plugins.python_terminal not loaded. Traceback (most recent call last): File "/home/felix/leo-editor/leo/core/leoPlugins.py", line 515, in loadOnePluginHelper __import__(moduleName) File "/home/felix/leo-editor/leo/plugins/stickynotes.py", line 281, in <module> class TextEditSearch(QtWidgets.QWidget): AttributeError: 'NoneType' object has no attribute 'QWidget' May I mention that it's not an issue exclusive to leointeg, but rather something that would have happened with any Leo file opened with the standard leoBridge.py if the options to load plugins are enabled. I made sure i pulled the changes twice. but looking at the changes, i thought "this wont fix it"... hehe.. the issue is that QtCore does not exist, it's 'noneType' when trying to access its members. So looking at the code i fail to see how its created by what you've added .(you make sure it exist with an 'and' operator, but we already know it's not there to begin with when using leoBridge.py to open a Leo file 'without a gui'.) But maybe i've got it all wrong and it's something else entirely ! -- Félix On Monday, May 17, 2021 at 6:32:52 AM UTC-4 Edward K. Ream wrote: > On Sun, May 16, 2021 at 2:39 PM Félix <[email protected]> wrote: > >> So i've pulled the new 'devel' branch... But I'm still seeing problems >> related to qt in the terminal pane when loading Leo files via LeoBridge. >> > > Thanks for this. I have just created #1942 > <https://github.com/leo-editor/leo-editor/issues/1942>. PR #1943 > <https://github.com/leo-editor/leo-editor/pull/1943> contains a proposed > fix. > > Note the extra guards, for Qt itself and for the definition of QTimer. > > The new code should fix the immediate problem, but I wonder whether other > standard plugins (See the @enabled-plugins node in leoSettings.leo) might > also throw exceptions when using leoInteg. > > 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/f613cfc2-82c5-4f71-9439-701e020940c4n%40googlegroups.com.
