Searh error on Windows
markonm opened this issue · comments
When searching for pattern in undo history and there are no results, the following error is thrown
Error detected while processing function <SNR>76_MundoPython:
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\\Users\\Marko\\vimfiles\\plugged\\vim-mundo\\autoload/mundo.py", line 272, in MundoSearch
MundoNextMatch()
File "C:\\Users\\Marko\\vimfiles\\plugged\\vim-mundo\\autoload/mundo.py", line 280, in MundoNextMatch
MundoMatch(1)
File "C:\\Users\\Marko\\vimfiles\\plugged\\vim-mundo\\autoload/mundo.py", line 306, in MundoMatch
undochanges = nodesData.preview_diff(nmap[version].parent, nmap[version])
KeyError: 6
Oh! Thank for you this, I think it happened to me recently. I'll try and take a look at it toady.
I've had no luck reproducing this - anyone else? If so how (and what verrsion of vim)?
Lack of Windows development environment.. 😭 sorry
Windows :MundoToggle
has been extraordinarily slow. Is this related or another issue? I get no errors; it's just REALLLLLY slow
(Sometimes it takes over a minute just to open :MundoToggle
.. by which time I have inevitably forgotten why I was opening it. Also, I can't <c-c>
because it ruins my history and I have to :q!
.)
edit: in fact, I just went to github, typed all of that ^, and hit Comment before Mundo finished opening.
I have to develop on windows at work. Also the first time I open mundo with an undo history greater than 1000 undos, it is still really slow (over 5 seconds to open). I also just ran into this KeyError: 9
issue. Will try to look into this at home, but I only run linux at home 😭
@dylnmc please try the latest version (merged in a PR that should improve rendering today).