-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
[BUG]Cannot restore the buffer that was created by cmake-tools #396
Comments
@qiyuewuyi2333 Thanks for the bug report. In order to help us debug, can you post the contents of session file associated with that error ( And, just to confirm, you only get this error on Windows, right? It work correctly on Linux? Can you also try with 0.10.2 to see if that changes anything? |
Of cource, there is For posting that, I trans the file format from .vim to .txt. And yeah, I only get this error on windows. I'm using this plugin on my nvim on WSL, too, and it's working perfectly. I just update my neovim version to 0.10.2, and I delete the old session and try again.
|
Thanks for that additional info. I spent some time digging into this and I think it's a bug in neovim, or, at the very least, a difference between how the :buffer command is handled on windows vs mac/linux. If you try the following:
step 3 will succeed on mac/linux but will fail on windows (no wsl) with a You can also verify that this isn't an auto-session bug by manually creating a session:
You'll get the same error message you're seeing in this issue |
Really. You get the real reason of this error. |
Yeah, probably worth filing a neovim issue. If you're really enterprising, you could take a look at the neovim source. I'm pretty sure the error is coming from this code: |
OK I made an issue to neovim. |
Describe the bug
I'm using a plugin for cmake project whose name is cmake-tools.nvim on windows.
And there is a command :CMakeRun to auto create a shell in a buffer below.
But when you trying to save a session with the buffer, and you restore the session. You will get the error below:
To Reproduce
On windows system, using the cmake-tools's command: CMakeRun,
Save the session
and next open the folder with the session was saved
And you will get the error on starting.
Expected behavior
No error here as linux.
Screenshots
The error message.
Checkhealth
**Baseline: **
Result of
set sessionoptions?
:sessionoptions=blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions
OS. win11
Neovim version
nvim --version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713484068
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"
Run :checkhealth for more info
The text was updated successfully, but these errors were encountered: