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

Error: 0 client attached to this buffer when reload buffer. #250

Closed
fengys1996 opened this issue Feb 23, 2024 · 1 comment
Closed

Error: 0 client attached to this buffer when reload buffer. #250

fengys1996 opened this issue Feb 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fengys1996
Copy link

fengys1996 commented Feb 23, 2024

Neovim version (nvim -v)

v0.10.0-dev-2267+g6709f7f8f

Operating system/version

macos

Output of :checkhealth rustaceanvim

rustaceanvim: require("rustaceanvim.health").check()

Checking for Lua dependencies ~
- WARNING dap not installed. Needed for debugging features [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap)

Checking external dependencies ~
- OK rust-analyzer: found rust-analyzer 0.3.1831-standalone (39ad79bec 2024-02-04)
- OK Cargo: found cargo 1.70.0-nightly (15d090969 2023-03-21)
- OK rustc: found rustc 1.70.0-nightly (a266f1199 2023-03-22)

Checking config ~
- OK No errors found in config.

Checking for conflicting plugins ~
- OK No conflicting plugins detected.

Checking for tree-sitter parser ~
- WARNING No tree-sitter parser for Rust detected. Required by 'Rustc unpretty' command.

How to reproduce the issue

1. In a cargo project, open a rust file and start lsp.
2. Run ":e" in command mode.
3. Hover, completions, etc don't work work.

In addition to the above, using Rustaceanvim together with vim-fugitive may also cause the above problem.

I looked through the code and this error may have been introduced by [this commit](https://github.com/mrcjkb/rustaceanvim/commit/a503d05212bf2ae2f5feb788e371c5cbddd100e5). 

Expected behaviour

Hover, completions, etc work.

Actual behaviour

Hover, completions, etc don't work.

The minimal config used to reproduce this issue.

None
@fengys1996 fengys1996 added the bug Something isn't working label Feb 23, 2024
@mrcjkb
Copy link
Owner

mrcjkb commented Feb 23, 2024

hey 👋

Thanks for reporting and tracing down the cause.
I've reverted the 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