dhruvasagar / vim-prosession

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

Invoking ":Prosession . " crashes neovim #23

Closed malteneuss closed 8 years ago

malteneuss commented 8 years ago

I can't get Prosession to work with neovim. It doesn't seem to save or restore anything and when i invoke it manually with e.g. ":Prosession . " it crashes with the following error message:

Error detected while processing function <SNR>27_Prosession[8]..<SNR>27_GetSessionFile[1]..<SNR>27_GetSessionFileName[1]..<SNR>27_GetDirName:
line    2:
E121: Undefined variable: dir
E116: Invalid arguments for function s:StripTrailingSlash(dir)
E15: Invalid expression: s:StripTrailingSlash(dir)
line    6:
E121: Undefined variable: dir
E116: Invalid arguments for function s:undofile(dir)
E15: Invalid expression: s:undofile(dir)
adarsh commented 8 years ago

I get the same errors in regular terminal Vim, version 7.4 in iTerm.

dhruvasagar commented 8 years ago

Procession . Isn't valid usage. You have to provide either path or a project / session name used previously.

dhruvasagar commented 8 years ago

btw, there was a typo in a recent update, kindly update the plugin and try.

adarsh commented 8 years ago

Works now for me. Nice, thank you!