Skip to content

Source map not correctly generated #9872

Closed

Description

@EFanZh

#8624 implemented automatic source map detection. Currently, wrong source map is generated. To reproduce, set "rust-analyzer.debug.sourceFileMap" to "auto", then start a debug session with debug lens. Then observe the debug configuration in the debug output pane. You should see the following configuration:

"sourceFileMap": {
  "/rustc/undefined/": "……"
}

Notice the “/rustc/undefined/” path in the configuration. It is an invalid path.

Activity

  1. added
    A-vscode
    on Aug 12, 2021
  2. lnicola commented on Aug 13, 2021

    @lnicola
    Member

    @EFanZh I can't test it right now, but can you give #9882 a try?

  3. changed the title [-]Source map not correctly genrated.[/-] [+]Source map not correctly generated.[/+] on Aug 13, 2021
  4. changed the title [-]Source map not correctly generated.[/-] [+]Source map not correctly generated[/+] on Aug 13, 2021
  5. EFanZh commented on Aug 14, 2021

    @EFanZh
    Author

    Hi @lnicol, I have tested your change, it does seem to work, thanks!

  6. added a commit that references this issue on Aug 14, 2021
    49dbb74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions