On Tue, Sep 29, 2020 at 3:01 PM Arjan <[email protected]> wrote:

> The above script used to work, but recently (after not having used it for
> a long time), I noticed it errors:
>
> exception executing script
> TypeError: afterChangeNodeContents() got an unexpected keyword argument
> 'dirtyVnodeList'
>

The way to answer all such questions is to search for the method in
leoPy.leo, aka leoPyRef.leo.

Searching for "def afterChangeNodeContents" (without the quotes) yields:

def afterChangeNodeContents(self, p, command, bunch, inHead=False):

If you want more information, do as follows...

To find the commit that changed this line, do:

git blame leo\core\leoUndo.py >blame.txt

Load blame.txt and search for  "def afterChangeNodeContents". You will see:

245a439a34 leo/core/leoUndo.py (Edward K. Ream 2019-12-13 18:56:10 -0600
 458)     def afterChangeNodeContents(self, p, command, bunch,
inHead=False):

Now do "gitk leo\core\leoUndo.py" and search for 245a439a34

You will see:

QQQ
Author: Edward K. Ream <[email protected]>  2019-12-13 18:56:10
Committer: Edward K. Ream <[email protected]>  2019-12-13 18:56:10
Parent: b92dc485b36c60a62a4b8ac2655d9384a1117f89 (Removed dirtyVnodeList
from u.afterInsertNode.)
Child:  c36f073f4dad99dea9fa4327af2265ccbfa882f5 (Remove disabled code)
Branches: layouts, master, remotes/origin/layouts and many more (70)
Follows: v6.1, v6.2-dev
Precedes: v6.2-b1

    A mass change, removing all dirtyVnodeList logic.

    It remains to be seen whether this really will work.
QQQ

HTH.

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/CAMF8tS3PAFcWRADz5MJ%2Bfw3DH039AsSuoO8rhDyT%2B54n4YpW5A%40mail.gmail.com.

Reply via email to