cargo run error: Error: No such device or address
Hello,
When I use Clion to run the rust project, it prompts an error: No such device or address, but when the cargo run command is executed in the terminal, the project runs normally.
Use Cargo run in terminal
$ /home/lizhihong/.cargo/bin/cargo run --color=always --package gitui
Finished dev [unoptimized + debuginfo] target(s) in 0.04s
Running `target/debug/gitui`
Use Cargo run in Clion
/home/lizhihong/.cargo/bin/cargo run --color=always --package gitui
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/gitui`
Error: No such device or address (os error 6)
Process finished with exit code 1
Please sign in to leave a comment.
Hello!
Is the
Emulate terminal in output console
option enabled in your run/debug configuration?In fact, I saw this configuration later and got a new error after enabling it.