#how to read symboliclink

4 messages · Page 1 of 1 (latest)

blazing nebulaBOT
#

Missing code block. Please use the following markdown:
`code here`
or
```rust
code here
```

spice island
#

?eval ```rust
fn main() {
let pid = 1;
let vscode = procfs::process::Process::new(pid).unwrap();
let exe = vscode.exe().unwrap();
println!("Path {}",exe.display());
println!("Path {}",exe.into_os_string().into_string().unwrap());
}

blazing nebulaBOT
#
error[E0433]: failed to resolve: use of undeclared crate or module `procfs`
 --> src/main.rs:3:18
  |
3 |     let vscode = procfs::process::Process::new(pid).unwrap();
  |                  ^^^^^^ use of undeclared crate or module `procfs`

For more information about this error, try `rustc --explain E0433`.
spice island
#

the procfs is not allowed in here but, this runs fine on my end.