I get this error every time I open a file and enter insert mode. InsertEnter tries to read buffer_state[path]['last_written'], which only exists if a BufWrite event has previously occurred.
error caught in async handler '/Users/tdy/.vim/plugs/vim-matlab/rplugin/python/vim_matlab:autocmd:InsertEnter:*.m ()'
Traceback (most recent call last):
File "/Users/tdy/.vim/plugs/vim-matlab/rplugin/python/vim_matlab/__init__.py", line 242, in insert_enter
self.refresh_buffer()
File "/Users/tdy/.vim/plugs/vim-matlab/rplugin/python/vim_matlab/__init__.py", line 258, in refresh_buffer
last_written = self.buffer_state[path]['last_written']
KeyError: 'last_written'
I get this error every time I open a file and enter insert mode.
InsertEnter
tries to readbuffer_state[path]['last_written']
, which only exists if aBufWrite
event has previously occurred.