Skip to content

Source code for dart:core patch files missing on Windows in stable 3.3 #111189

@DanTup

Description

@DanTup

In Flutter 3.3, source code for some SDK libraries (that were available in Flutter 3.0) appear missing when running on Windows.

To reproduce:

  • Create a new Flutter counter app
  • Add assert(false) into the incrementCounter function
  • Run the app with Windows as the target
  • Ensure debug settings are set to include SDK libraries (in VS Code this can be done by clicking on "Debug my code" in the status bar and toggling it to "Debug my code + sdk + packages")
  • Click on the FAB button to trigger the assert

When using Flutter 3.0, you will break inside the source for dart:core/errors_patch.dart:

flutter_3_0_working

But when doing the same on Flutter 3.3 you get an error that the source is not available:

flutter_3_3_broken

VS Code gets this source code via the VM Service. When the debugger breaks, we're given an ID of the script for the top frame. If we cannot map this to a local source on disk, we send a getObject request to get the source code. In both versions above, this request is the same (besides isolate IDs, of course):

same_requests

However, in the response from the VM Service when using Flutter 3.3, the "source" field is missing:

difference

I wasn't able to reproduce this on my Mac, so I suspect this is Windows specific.

Relevant VM Service requests:

I'm not certain whether this is a Flutter or Dart issue, but based on a similar issue in the past I think it may be Flutter. If not, please let me know and I can re-raise this in the Dart repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consolefound in release: 3.3Found to occur in 3.3has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions