dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

Error on startup #32

Closed astromac closed 7 years ago

astromac commented 7 years ago

I recently updated my plugins and started receiving the following error on startup. Disabling prosession or deleting the session files makes the errors go away on startup.

Error detected while processing function <SNR>30_LeaveWin:
line 16:
E121: Undefined variable b:last_changedtick
Error detected while processing function <SNR>30_LeaveWin:
line 16:
E15: Invalid expression: b:changedtick > b:last_changedtick

Using Neovim v0.2.0-480-g25427ae8

dhruvasagar commented 7 years ago

Hi, this doesn't seem to be anything related to vim-prosession, perhaps something to do with some plugin / ftplugin that you may have removed recently, but left some stuff in session files somehow ?

After you remove the session file, and continue / start a new session do you get the error again ?

astromac commented 7 years ago

Yes.

Rolled back to Neovim 0.1.7 and I get the same behavior.

dhruvasagar commented 7 years ago

Can you grep / ag / rg within your plugin directory for LeaveWin, last_changedtick and see where those exist ? Perhaps it's some plugin also doing something to sessions ?

astromac commented 7 years ago

Did as you asked and both searches hit on https://github.com/Konfekt/FastFold plugin. Removing the plugin and deleting the old prosession session files results in no errors upon startup.

dhruvasagar commented 7 years ago

Hi, i'll close this issue now since I believe it was resolved & was due to another plugin.