Leo (devel) starts regularly terminating when I use quicksearch window. It 
says:

Traceback (most recent call last):
  File 
"C:\Users\atikhonov2\Workarea\leo-editor\repo\leo\plugins\quicksearch.py", 
line 333, in returnPressed
    self.scon.doSearch(t)
  File 
"C:\Users\atikhonov2\Workarea\leo-editor\repo\leo\plugins\quicksearch.py", 
line 598, in doSearch
    bm = self.find_b(bpat, bNodes, flags)
  File 
"C:\Users\atikhonov2\Workarea\leo-editor\repo\leo\plugins\quicksearch.py", 
line 686, in find_b
    pc.matchiter = t2
AttributeError: 'Position' object has no attribute 'matchiter'

Do you think it can be related to that change?

Alexey
On Monday, June 28, 2021 at 10:28:35 PM UTC+7 Edward K. Ream wrote:

> On Thursday, June 24, 2021 at 12:48:33 PM UTC-5 Edward K. Ream wrote:
>
>> This is PR #2003 <https://github.com/leo-editor/leo-editor/pull/2003> 
>> and issue #2004 <https://github.com/leo-editor/leo-editor/issues/2004>.
>>
>> Unless I hear compelling arguments against, I plan to "freeze" all the 
>> classes in leoNodes.py (Position, VNode, NodeIndices and PosList classes) 
>> by defining a __slot__ attribute 
>> <https://docs.python.org/3/reference/datamodel.html#slots>for each class.
>>
>
> Adding slots prevents plugins from directly injecting attributes into 
> Position objects.
>
> #2015 <https://github.com/leo-editor/leo-editor/issues/2015> suggests 
> adding p.pluginDict as a workaround.
>
> All comments welcome.
>
> 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/bb57dd5d-b967-49cc-8915-1af2ce0085fan%40googlegroups.com.

Reply via email to