-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tools] Fix TypeError when a FileSystemException happens during flutter doctor #133373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter_tools] Fix TypeError when a FileSystemException happens during flutter doctor #133373
Conversation
packages/flutter_tools/test/general.shard/intellij/intellij_validator_test.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/intellij/intellij_validator_test.dart
Outdated
Show resolved
Hide resolved
072c10b to
c39d602
Compare
| import 'package:flutter_tools/src/base/version.dart'; | ||
| import 'package:flutter_tools/src/globals.dart' as globals; | ||
| import 'package:flutter_tools/src/ios/plist_parser.dart'; | ||
| import 'package:path/path.dart' show Context; // flutter_ignore: package_path_import -- We only use Context as an interface. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
andrewkolos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nit
|
oops. I didn't save the nit apparently, one sec |
| expect(validators.length, 1); | ||
| final DoctorValidator validator = validators.first; | ||
| expect(validator, isA<ValidatorWithResult>()); | ||
| expect(validator.title, 'Cannot determine if IntelliJ is installed'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uber nit: Consider also testing against the validator message. This would make it impossible for the test to pass if we got a validator from some other source that happens to use the same title.
|
auto label is removed for flutter/flutter/133373, due to - The status or check suite Mac plugin_dependencies_test has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
…ens during flutter doctor (flutter/flutter#133373)
Fixes #133086