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

fix(launch): check buffer is valid before get_name #2852

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

coffebar
Copy link
Contributor

@coffebar coffebar commented Oct 4, 2023

I'm using the plugin, that manages sessions using builtin :mksession and race lead to error on line 118, where
api.nvim_buf_get_name(bufnr) called on not existing buffer.
This PR adds check api.nvim_buf_is_valid to fix this error.

This fix works on this line, but sometimes I see also an error message from neovim itself:
[LSP] No client with id:

it should be fixed too. But this is not related to nvim-lspconfig

@coffebar coffebar requested a review from glepnir as a code owner October 4, 2023 09:06
@glepnir glepnir merged commit 71b3961 into neovim:master Oct 4, 2023
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

Successfully merging this pull request may close these issues.

2 participants