Civitasv / cmake-tools.nvim

CMake integration in Neovim
GNU General Public License v3.0
382 stars 68 forks source link

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

Open hotung1027 opened 9 months ago

hotung1027 commented 9 months ago

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

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 commented 9 months ago

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

Maybe I miss some setup after the breaking changes?

Civitasv commented 9 months ago

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

hotung1027 commented 9 months ago

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 commented 9 months ago

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

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

Civitasv commented 7 months ago

It should work now, use the latest commit.