Skip to content

External packages are not correctly detected with Dart 2.19 using legacy DAPs #4360

@DanTup

Description

@DanTup

In the legacy DAPs, our detection of which local packages are "external" (eg. from pub) depends on the paths in the pubcache:

Screenshot 2023-01-25 at 11 57 11

In Dart 2.19, pub.dartlang.org changed to pub.dev which broke this check, and external package code is considered users code. This means "debug just my code" doesn't work as expected.

There are many test failures on the bots for the stable branch since 2.19 was released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions