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] Random exception updating extmark #70

Open
Ajaymamtora opened this issue Oct 29, 2024 · 1 comment
Open

[bug] Random exception updating extmark #70

Ajaymamtora opened this issue Oct 29, 2024 · 1 comment

Comments

@Ajaymamtora
Copy link

Can the buffer id be checked before updating?

Error executing vim.schedule lua callback: ...are/nvim/lazy/nvim-lightbulb/lua/nvim-lightbulb/init.lua:170: scoped variable: Invalid buffer id: 218
stack traceback:
	[C]: in function '__index'
	...are/nvim/lazy/nvim-lightbulb/lua/nvim-lightbulb/init.lua:170: in function 'update_extmark'
	...are/nvim/lazy/nvim-lightbulb/lua/nvim-lightbulb/init.lua:265: in function 'handler'
	.../bob/download/v0.10.2/share/nvim/runtime/lua/vim/lsp.lua:936: in function 'handler'
	...wnload/v0.10.2/share/nvim/runtime/lua/vim/lsp/client.lua:687: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>
@JohnWilliston
Copy link
Contributor

JohnWilliston commented Jan 8, 2025

I have a similar issue. Not sure why. But I'm getting the same stack dump. For anyone who cares, I posted a fix to my fork of the repo.

UPDATE: after making a couple of updates, I don’t have the problem anymore. I think what I have working in my fork of the repo provides a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants