Skip to content
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

[master] cmake-tools.nvim/lua/cmake-tools/scratch.lua:8: Failed to rename buffer #199

Open
hotung1027 opened this issue Feb 23, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@hotung1027
Copy link

hotung1027 commented Feb 23, 2024

Bug description
On Vim Enter,
Lsp attach and trigger cmake-tools to setup
And then error pops out

CMake-Tools cannot function properly afterwards.

Steps to reproduce

Minimal configuration ```` 'stevearc/overseer.nvim' 'Civitasv/cmake-tools.nvim' "hrsh7th/nvim-cmp" ````

Expected behavior

Screenshots
Screenshot 2024-02-24 at 12 02 51 AM
Screenshot 2024-02-24 at 12 27 24 AM

Environment

  • OS: Macos Sonoma
  • Desktop environment: MacOS apple Silicon
  • Neovim version:
❯ nvim --version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"

Contents in the *cmake-tools* buffer

Cannot populate since the error produce from setup
Trying to checkout to older version and see the problem fix from which hash

@hotung1027 hotung1027 added the bug Something isn't working label Feb 23, 2024
@hotung1027
Copy link
Author

hotung1027 commented Feb 23, 2024

Update:
after manual checkout to 643e46b, everything works smoothly.

Maybe I miss some setup after the breaking changes?

@Civitasv
Copy link
Owner

Do you call setup for cmake-tools.nvim? And can you check if the buffer *cmake-tools* exists?

@hotung1027
Copy link
Author

hotung1027 commented Feb 24, 2024

Do you call setup for cmake-tools.nvim? And can you check if the buffer *cmake-tools* exists?

Yep, I invoke cmake-tools.nvim to setup when file type is c,cpp.
I did try setup at Lazy.nvim load, both produce the same result.
And I checked the buffer cmake-tools not exists, through vim bufferlist.

@hotung1027
Copy link
Author

hotung1027 commented Feb 24, 2024

I've checked that after I checkout to a version in which scratch.lua does not exists, it works smoothly, should be somewhere before 8e4e7f2.

I am not sure I hitting this behaviour because of my neovim version or what.

@Civitasv
Copy link
Owner

Civitasv commented May 3, 2024

It should work now, use the latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants