Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jdhao opened this issue Jul 1, 2021 · 1 comment

Comments

@jdhao
Copy link

jdhao commented Jul 1, 2021

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.

  • Nvim version: NVIM v0.5.0-dev+1459-g384f9870f
  • OS: Linux CentOS 7.4
  • vim-startuptime version: Latest master
@dstein64
Copy link
Owner

dstein64 commented Jul 6, 2021

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.

@dstein64 dstein64 closed this as completed Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants