Skip to content

Conversation

@scttcper
Copy link
Member

Fixes #86169

Remove restriction that rejected frame paths without a "/" character,
allowing code mappings for root-level files like "Program.cs".

When the stack path is a single file (no directory), find_roots() now
returns the source prefix as the source root (e.g. bar.py maps to
src/foo/ when the repo contains src/foo/bar.py).

Fixes #86169

Remove restriction that rejected frame paths without a "/" character,
allowing code mappings for root-level files like "Program.cs".

When the stack path is a single file (no directory), find_roots() now
returns the source prefix as the source root (e.g. bar.py maps to
src/foo/ when the repo contains src/foo/bar.py).
@scttcper scttcper requested a review from a team as a code owner December 10, 2025 00:46
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 10, 2025
@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #104663      +/-   ##
===========================================
+ Coverage   75.10%    80.53%   +5.42%     
===========================================
  Files        9331      9335       +4     
  Lines      401056    401127      +71     
  Branches    25743     25743              
===========================================
+ Hits       301229    323033   +21804     
+ Misses      99385     77652   -21733     
  Partials      442       442              

@felipebueno
Copy link

Is this PR related to this bug I'm facing at this very moment? :)

I'm having a hard time configuring source mapping for my flutter web project 😅

image

@scttcper scttcper merged commit fcbf9da into master Dec 10, 2025
65 checks passed
@scttcper scttcper deleted the scttcper/single-file-code-mapping branch December 10, 2025 20:37
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't save code mappings config: "Unable to save configuration" without detail

4 participants