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

bug: Invalid buffer id error #556

Closed
4 tasks done
ngpong opened this issue Jul 20, 2024 · 1 comment · Fixed by #557
Closed
4 tasks done

bug: Invalid buffer id error #556

ngpong opened this issue Jul 20, 2024 · 1 comment · Fixed by #557
Labels
bug Something isn't working

Comments

@ngpong
Copy link

ngpong commented Jul 20, 2024

Did you check docs and existing issues?

  • I have read all the trouble.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of trouble.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

lastest

Operating system/version

linux

Describe the bug

Hey there, I've been encountering an occasional error "invalid buffer id" during usage recently. The video below demonstrates this issue. To explain the video: since this is a completely random error, it can be effectively reproduced by repeatedly opening and closing the trouble list, which is why the video shows this extreme operation method.

Regards!

2024-07-21.014732.mp4

Steps To Reproduce

see above

Expected Behavior

see above

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/trouble.nvim", opts = {} },
    -- add any other plugins here
  },
})
@ngpong ngpong added the bug Something isn't working label Jul 20, 2024
@folke folke closed this as completed in 05694b4 Jul 20, 2024
folke pushed a commit that referenced this issue Jul 21, 2024
🤖 I have created a release *beep* *boop*
---


##
[3.6.0](v3.5.2...v3.6.0)
(2024-07-21)


### Features

* allow disabling a key
([891e76d](891e76d))


### Bug Fixes

* **text:** skip treesitter when buf is no longer valid. Fixes
[#556](#556)
([05694b4](05694b4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@GitMurf
Copy link

GitMurf commented Aug 21, 2024

Anyone else still having this issue? Anytime I am cycling through the results in Trouble and it "previews" the position in the main buffer, if I close that buffer then I get the wave of "Invalid buffer id: ..." errors and they keep going until I quit Neovim.

image

Don't know if it matters, but I usually am using Trouble with Telescope results.

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

Successfully merging a pull request may close this issue.

2 participants