Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd mismatched file error when debugging #14

Open
PathogenDavid opened this issue Mar 16, 2023 · 1 comment
Open

Odd mismatched file error when debugging #14

PathogenDavid opened this issue Mar 16, 2023 · 1 comment

Comments

@PathogenDavid
Copy link

Hello!

I've discovered an odd issue where I get an error stating my main.rs doesn't match what the app was built with even though it does. (Actually it specifically states main.rs doesn't match what main.rs was built with, which is kinda weird.)

After dismissing the dialog, debugging works as expected. The issue doesn't happen with Hello World but it does happen with the short snippet included below.

To reproduce:

  1. Populate main.rs as follows:
fn main() {
    let args: Vec<String> = std::env::args().collect();
    dbg!(&args);
}
  1. Place a breakpoint on either line.
  2. Launch the app with debugging
  3. Receive this warning dialog:

image

  1. Dismiss the dialog, debugging will still work as expected

I can reproduce this with Visual Studio 2022 (17.5.2 -- latest stable) and Rust/Cargo 1.68.0.

@ericsink
Copy link
Contributor

This one is a known issue, and our investigate thus far would suggest it is not specific to our Rust extension, but we haven't found a workaround yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants