dstein64 / vim-startuptime

A plugin for viewing Vim and Neovim startup event timing information.
MIT License
594 stars 11 forks source link

setting variable g:startuptime_tries bigger than 1 results in an error frequtently #5

Closed jdhao closed 3 years ago

jdhao commented 3 years ago

If we set the variable g:startuptime_tries to other values than 1, when I run command :StartupTime, I saw the following error almost all the time:

Error detected while processing function 15[1]..118_Profile[2]..startuptime#Main[9]..118_Consolidate:
line 9:
E605: Exception not caught: vim-startuptime: inconsistent tries

Sometimes, this command does succeed, but rarely.

dstein64 commented 3 years ago

Thanks for reporting this!

The code was assuming that the events reported when using Vim's --startuptime are consistent across multiple invocations (in both the events themselves and their ordering). I've updated the code to no longer make this assumption.