Breakpoints aren't hit when files imported in bin/ use relative paths (not package: uris) #35860
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
Moving this from Dart-Code/Dart-Code#1446 since I think it makes sense to have the info here even if it's decided not to do this.
@DanTup:
This seems to be caused by relative path imports from outside lib. Since the entry point is outside
lib
it isn't considered apackage:
URI, and therefore the relative path is also not apackage:
URI.A quick workaround is to change your imports in your
bin/
scripts to bepackage:yyy/xxx
imports (I think this is probably the preferred way to write them anyway?).@lrhn @peter-ahe-google before I start multiplying up breakpoints again, is there a better for for this in Dart? For example, could/should imports into a packages
lib
folder also be recognised and mapped topackage:
URIs (for the same reasons #33076 was done)?@peter-ahe-google:
I think we can do something similar to #33076. It requires a minor tweak to the language specification, and @lrhn is running that by the rest of the language team.
The text was updated successfully, but these errors were encountered: