question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No automatic reload when Cargo.toml modified outside of Vim

See original GitHub issue

When I add a crate using cargo add there is no update to the completion and I have to restart the editor for the changes to take place (or run :CocCommand rustAnalyzer.reload)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fannheywardcommented, Feb 26, 2021

coc-rust-analyzer v0.35.0 will watch Cargo.toml changes, then run rust-analyzer.reloadWorkspace to fetch metadata. You need to install https://facebook.github.io/watchman/.

0reactions
JDuchniewiczcommented, Feb 26, 2021

Amazing! Thanks for this 😁

Read more comments on GitHub >

github_iconTop Results From Across the Web

Neovim-lsp reload on Cargo.toml change - Editors and IDEs
This happens automatically in VSCode with rust-analyzer plugin. But the only way I have found to make it work in nvim by closing...
Read more >
User Manual - rust-analyzer
Automatically refresh project info via cargo metadata on Cargo.toml or .cargo/config.toml changes. rust-analyzer.cargo.buildScripts.enable (default: ...
Read more >
Auto-reloading a file in VIM as soon as it changes on disk
Automatically causes vim to reload files which have been written on disk but not modified in the buffer since the last write from...
Read more >
rust-analyzer failed to discover workspace in vscode
The rust-analyzer needs a Cargo.toml to detect the workspace. ... In vsCode if you open just your cargo package directory and not enter ......
Read more >
flutter_rust_bridge 1.0.3 | Dart Package - Pub.dev
High-level memory-safe binding generator for Flutter/Dart <-> Rust. ... Modify Cargo.toml to change cdylib to staticlib . (Again, this is baremetal example ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found