Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Could not find 'Cargo.toml' in 'C:\Users\...\Documents' #406
I decided to play around with Rust last night (never used it before). So I got everything set up:
I have no idea why this is happening. I haven't done anything special... at least I don't think. Not sure if this is your issue or vscode. But I figured I'd try here first.
It should be able to find the Cargo.toml right?
I was having the same problem. In my case, the issue was in my Powershell profile, where I had a line that set the current path (so when I open Powershell, it opens in a more convenient directory). VSCode apparently runs your profile script when it opens a terminal, which explains why it couldn't find the Cargo.toml file. When I removed the
Thanks for the help.
I had totally forgotten about this until a coworker and I were talking about Rust. And I went back to see if my profile script had a directory change in it, and sure enough, it did.
Removing that fixed it.
Question is, is this a vs code problem? or a problem with the plug in?
Anyway, it works now, so I guess this can be closed.