dhruvasagar / vim-prosession

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

Incompatibility with coc.nvim (E499) #63

Closed oblitum closed 4 years ago

oblitum commented 5 years ago

Result from :CocInfo

versions

vim version: NVIM v0.4.2 node version: v12.13.0 coc.nvim version: 0.0.74-317e3212e3 term: tmux-256color platform: linux

Messages

Output channel: watchman

Output channel: git

Looking for git in: git

git rev-parse --show-toplevel resolved root: /home/francisco resolved root: /home/francisco git symbolic-ref --short HEAD git diff --name-status git diff --staged --name-status git ls-files --others --exclude-standard

Output channel: snippets

[Info - 12:49:02 PM] watchman watching project: /home/francisco/.config/coc/ultisnips [Info - 12:49:02 PM] subscribing "*/.snippets" in /home/francisco/.config/coc/ultisnips

Output channel: prettier

Describe the bug

coc.nvim has some incompatibility with the vim-prosession that causes an error when leaving neovim:

[coc.nvim] Error on autocmd VimLeavePre: request error nvim_command - Vim(mksession):E499: Empty file name for '%' or '#', only works with ":p:h"

Reproduce the bug

The error message shows up with closing, but it's pretty quickly. I couldn't reproduce the same on Vim, only with NeoVim.

oblitum commented 5 years ago

I have one additional query:

When I use my full .vimrc (I also have denite and others), prosession causes two directories to be created, a ~/.vim/session/ one with sessions, and a ~/.vim/sessions/ one with default.vim. Is it normal? This default.vim file is created even with let g:prosession_on_startup = 0.

Never mind, that's created by another plugin.

dhruvasagar commented 5 years ago

Will debug it and see if I find something.

dhruvasagar commented 4 years ago

I tested using :

versions

vim version: NVIM v0.5.0-ca02db1 node version: v13.2.0 coc.nvim version: 0.0.78-70aac81740 term: iTerm.app platform: darwin

I am not seeing the same issue. Can you confirm if you are still facing this issue ? @oblitum