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

Reload_workspace_from_cargo_toml doesn't work as expected #270

Closed
fengys1996 opened this issue Mar 3, 2024 · 1 comment · Fixed by #271
Closed

Reload_workspace_from_cargo_toml doesn't work as expected #270

fengys1996 opened this issue Mar 3, 2024 · 1 comment · Fixed by #271
Labels
bug Something isn't working

Comments

@fengys1996
Copy link

Neovim version (nvim -v)

v0.10.0-dev-2267+g6709f7f8f

Operating system/version

arch linux

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.1860-standalone
- OK Cargo: found cargo 1.78.0-nightly (194a60b29 2024-02-21)
- OK rustc: found rustc 1.78.0-nightly (8f359beca 2024-02-23)

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. Enable `reload_workspace_from_cargo_toml` config in rustaceanvim.
2. In a cargo project, open a rust file and start lsp.
3. Open "cargo.toml", Run ":w" in command mode. At this time, reload_workspace can work normally.
4. Open another rust file. Perform step 3 again, reload_workspace does not work.

Expected behaviour

reload workspace works.

Actual behaviour

reload workspace doesn't work.

The minimal config used to reproduce this issue.

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

mrcjkb commented Mar 3, 2024

Hey 👋

thanks for reporting. Fix is on the way 😄

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