You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sethladd@sethladd-macbookair ~/tmp/test2/lib $ dartanalyzer main.dart
Analyzing [main.dart]...
[error] Target of URI does not exist: 'package:path/path.dart' (/Users/sethladd/tmp/test2/lib/main.dart, line 1, col 8)
1 error found.
Consider this code:
import 'package:path/path.dart';
main() {
print('hello');
}
Here is the directory layout:
my_dir
lib
main.dart
packages (symlink) => ../packages
packages
path (symlink) => ~/.pub-cache/...../path/lib
When I try to analyze:
sethladd@sethladd-macbookair ~/tmp/test2/lib $ dartanalyzer main.dart
Analyzing [main.dart]...
[error] Target of URI does not exist: 'package:path/path.dart' (/Users/sethladd/tmp/test2/lib/main.dart, line 1, col 8)
1 error found.
However, when I try to run, it works:
sethladd@sethladd-macbookair ~/tmp/test2/lib $ dart main.dart
hello
expected: I'd like to be able to run the analyzer on my file, and report errors and warnings.
Thanks for taking a look!
Attachment:
test2_and_test2_—bash—_141×51.png (64.42 KB)
The text was updated successfully, but these errors were encountered: