Skip to content

sourceFileMap does not work with ${config: settings on v1.100 #248550

Closed

Description

Does this issue occur when all extensions are disabled?: No

  • VS Code Version:
  • OS Version:
    Version: 1.100.0
    Commit: 19e0f9e
    Date: 2025-05-07T12:48:53.763Z
    Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.100.0 Chrome/132.0.6834.210 Electron/34.5.1 Safari/537.36

Steps to Reproduce:

  1. Workspace with .vscode/settings.json
  2. Workspace with .vscode/launch.json
  3. Use a setting from .vscode/settings.json on the .vscode/launch.json sourceFileMap property then get the exception: "Cannot read properties of undefined (reading 'replaceAll')"

Sample project to reproduce:

issue-sample.zip

Obs: this was working with v1.99
Another important info, I tested it on WSL 2, where I have my C compiler

Activity

  1. sean-mcmanus commented on May 9, 2025

    @sean-mcmanus
    Contributor

    Do you see a call stack for the error "Cannot read properties of undefined (reading 'replaceAll')". I assume the call stack is not from our C/C++ extension (which I don't think would be causing this issue if it started with a particular VS Code version).

  2. microhobby commented on May 12, 2025

    @microhobby
    Author

    Do you see a call stack for the error "Cannot read properties of undefined (reading 'replaceAll')". I assume the call stack is not from our C/C++ extension (which I don't think would be causing this issue if it started with a particular VS Code version).

    Nope, I checked the developer tools window, but there is no stack only the same message from the popup:

    Image

  3. added
    bug
    on May 12, 2025
  4. added
    unreleased
    on May 12, 2025
  5. added this to the May 2025 milestone on May 12, 2025
  6. microhobby commented on May 12, 2025

    @microhobby
    Author

    Connor Peet (@connor4312) could you please inform if this fix will be patched for a v1.100.1 release?

  7. sean-mcmanus commented on May 12, 2025

    @sean-mcmanus
    Contributor

    Matheus Castello (@microhobby) I believe VS Code fixes are released the next day in Insiders and otherwise in the next monthly release (1.101.0). Oh...unless there's "patch" fix update (i.e. what you're asking).

  8. added
    insiders-released
    and removed
    unreleased
    on May 13, 2025
  9. microhobby commented on May 14, 2025

    @microhobby
    Author

    Sean McManus (@sean-mcmanus) Connor Peet (@connor4312) Megan Rogge (@meganrogge) Ulugbek Abdullaev (@ulugbekna) Ladislau Szomoru (@lszomoru)
    I saw that the milestone was set to the May 2025, but this is not great, because I would expect to have a recovery release with this fix. This is clearly a regression that is affecting users. And for now, I'm recommending people to downgrade to v1.99.

  10. connor4312 commented on May 14, 2025

    @connor4312
    Member

    So far your report is the only one we've received of folks hitting this issue -- it's a somewhat particular case. If we hear more reports of it we may promote this to a patch fix, but in the interim this is fixed on VS Code Insiders

  11. microhobby commented on May 14, 2025

    @microhobby
    Author

    Connor Peet (@connor4312) The extension https://marketplace.visualstudio.com/items?itemName=Toradex.apollox-vscode creates workspaces with projects that use this to automate build/deploy on embedded devices using containers:
    https://github.com/torizon/vscode-torizon-templates/blob/6aaeda4c4efb337aafe92b1b696c0a1e45d4b797/cppConsole/.vscode/launch.json#L138
    So, this is used to map the container to the workspace source and match the breakpoints. We are receiving support tickets for this issue. We have released a note about the issue and a workaround. Also, we can make it hard-coded as a workaround until next month, but the great would be to have a recovery release for this.

  12. millerfield commented on Jun 9, 2025

    @millerfield

    Here also confirmation of this bug is hitting us using the TorizonCore Extensions and a source file mapping in the launch.json.
    Our current workaround is to set the path hardcoded as long the bug is not fixed.

  13. locked and limited conversation to collaborators on Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions