cpu went to 100% while opening rs files with nightly edition
See original GitHub issueaccidentally raise in wrong place before.
cargo-features = ["edition2021"]
[package]
name = "rest_api"
version = "0.1.0"
authors = ["Hall Dong <Hall Dong>"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = "0.4.4"
rocket_codegen = "0.4.4"
diesel = { version = "1.4.0", features = ["postgres"] }
dotenv = "0.9.0"
r2d2-diesel = "1.0"
r2d2 = "0.8"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
custom_derive ="0.1.7"
[dependencies.rocket_contrib]
version = "*"
default-features = false
features = ["json"]
fn main() {
println!("Hello, world!");
}
This occurs even rustup override set nightly
had been executed.
user@host ~/l/rest_api (master)# rustup override set nightly
info: using existing install for 'nightly-x86_64-unknown-linux-gnu'
info: override toolchain for '/user/learn/rest_api' set to 'nightly-x86_64-unknown-linux-gnu'
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.54.0-nightly (f58631b45 2021-05-28)
user@host ~/l/rest_api (master)# vim -p src/main.rs Cargo.toml
2 files to edit
[coc.nvim] rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.
toml file /user/learn/learn6/Cargo.toml, cargo 1.54.0-nightly (e931e4796 2021-05-24): Failed
to run `cargo metadata --manifest-path /user/learn/learn6/Cargo.toml` in `/user/learn/learn
6`: `cargo metadata` exited with an error: error: failed to parse manifest at `/user/learn/l
earn6/Cargo.toml`
Caused by:
the cargo feature `edition2021` requires a nightly version of Cargo, but this is the `stab
le` channel
See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information abou
t Rust release channels.
See https://doc.rust-lang.org/cargo/reference/unstable.html#edition-2021 for more informat
ion about using this feature.
Press ENTER or type command to continue
...
[coc.nvim] rust-analyzer failed to start, run ':CocCommand rust-analyzer.reloadWorkspace' to reload
nothing goes better after doing so.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
8 Useful Solutions to Fix Your CPU 100% in Windows 10/11
Reasons for High CPU Usage. 1. Too Many Background Processes. A background process is a program that runs on a PC includes those...
Read more >High "System" Process CPU Usage on File Server - TechNet
The Files open does range between 500-1000 during 'peak' hours. This is mainly of concern to us for three reasons: 1. When we...
Read more >Stop What's Revving Your CPU Fan Constantly in Windows 10
First, launch Task Manager, press Windows key + X > Task Manager, then click the Processes tab. Click the CPU column to sort...
Read more >My CPU is working on 100% until I open Task manager
First, Windows has background tasks, such as indexing files for Search. defragmenting drives, completing a previous update, and scanning for ...
Read more >Norton Security's Gone Crazy, Hogging CPU
If allowing the system to settle on its own does not help, start with a system restart. Restart, not shutdown and startup again...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s rust-analyzer’s issue, the language server runs more CPU/mem, coc/coc-rust-analyzer just clients.
@fannheyward very clear explanation. thanks!