vscode-rust
vscode-rust copied to clipboard
output of program not shown in cargo output panel
Version of VSCode: 1.20.1 Version of the extension: 0.4.2 OS: linux mageia6
Description: this example program: use std::collections::HashMap; fn main() { let text = "hello world wonderful world";
let mut map = HashMap::new();
for word in text.split_whitespace() {
let count = map.entry(word).or_insert(0);
*count += 1;
}
println!("{:?}", map);
}
print this in a console: {"world": 2, "wonderful": 1, "hello": 1}
but nothing in vscode. I suppose because of the "{}" format.
Output of the "Rust logging" channel:
Working directory: /home/sopra/sopra11/rust/workout/testHash
Started rustup run stable-x86_64-unknown-linux-gnu cargo run --message-format json
Compiling testHash v0.1.0 (file:///home/sopra/sopra11/rust/workout/testHash)
Finished dev [unoptimized + debuginfo] target(s) in 0.53 secs
Running `target/debug/testHash`
Completed with code 0