We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 278bf35 + 25e8f5d commit 9bcf51bCopy full SHA for 9bcf51b
crates/ra_proc_macro_srv/src/cli.rs
@@ -8,8 +8,9 @@ pub fn run() {
8
loop {
9
let req = match read_request() {
10
Err(err) => {
11
- eprintln!("Read message error on ra_proc_macro_srv: {}", err);
12
- continue;
+ // Panic here, as the stdin pipe may be closed.
+ // Otherwise, client will be restarted the service anyway.
13
+ panic!("Read message error on ra_proc_macro_srv: {}", err);
14
}
15
Ok(None) => continue,
16
Ok(Some(req)) => req,
0 commit comments