-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
legacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.model-messagesPoor/undesirable messaging in errors/warnings emitted by the analyzer and/or CFE.Poor/undesirable messaging in errors/warnings emitted by the analyzer and/or CFE.
Description
This error message contains Instance of '_SimpleUri'
$ out/ReleaseX64/dart-sdk/bin/dart --packages=/usr/local/google/home/sra/Dart2/sdk/.dart_tool/package_config.json ~/play1/bug1a3v.dart
Error: Invalid package URI 'package:collection':
Invalid argument (packageUri): Package URIs must start with the package name followed by a '/': Instance of '_SimpleUri'.
../../play1/bug1a3v.dart:1:8: Error: Not found: 'package:collection'
import 'package:collection';
^
Source file:
import 'package:collection';
main() {}If I escape characters in the URI (e.g. replace n with %6E), I can get an error message saying Instance of '_Uri'.
Could Error.toSafeString trust a Uri?
Or perhaps the front-end should format it, since it has the source file string, more like it reports an unparseable URI.
/cc @lrhn @johnniwinther
Metadata
Metadata
Assignees
Labels
legacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.model-messagesPoor/undesirable messaging in errors/warnings emitted by the analyzer and/or CFE.Poor/undesirable messaging in errors/warnings emitted by the analyzer and/or CFE.