Help troubleshooting... Too many cargo processes #498
-
So since a couple weeks I can barely use rust-analyzer in neovim. It got to a point that my machine went out of memory and restarted itself. After investigating I found out that whenever I change something, dozens of This is the command that is ran:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 20 replies
-
Hey 👋
This sounds to me like a rust-analyzer issue. If you can't reproduce it with a minimal config, I would suggest bisecting your rust-analyzer config. |
Beta Was this translation helpful? Give feedback.
This should solve the issue of parallel builds:
It doesn't actually run tests, it just compiles (hence the
--no-run
flag) and analyses the json output (hence the--message-format=json
flag) to create a DAP configuration that can be registered with nvim-dap, so you can use commands likeDapContinue
to debug runnables discovered by rust-analyzer.