Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

output of program not shown in cargo output panel #376

Open
mpup371 opened this issue Feb 22, 2018 · 0 comments
Open

output of program not shown in cargo output panel #376

mpup371 opened this issue Feb 22, 2018 · 0 comments

Comments

@mpup371
Copy link

mpup371 commented Feb 22, 2018

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant