Skip to content
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

CP of "Temporarily remove a bogus warning until fixed by dwds update (#109793)" #112887

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/flutter_tools/lib/src/isolated/devfs_web.dart
Expand Up @@ -1015,7 +1015,12 @@ void log(logging.LogRecord event) {
if (event.level >= logging.Level.SEVERE) {
globals.printError('${event.loggerName}: ${event.message}$error', stackTrace: event.stackTrace);
} else if (event.level == logging.Level.WARNING) {
globals.printWarning('${event.loggerName}: ${event.message}$error');
// Note: Temporary fix for https://github.com/flutter/flutter/issues/109792
// TODO(annagrin): Remove the condition after the bogus warning is
// removed in dwds: https://github.com/dart-lang/webdev/issues/1722
if (!event.message.contains('No module for')) {
globals.printWarning('${event.loggerName}: ${event.message}$error');
}
} else {
globals.printTrace('${event.loggerName}: ${event.message}$error');
}
Expand Down
Expand Up @@ -23,6 +23,7 @@ void main() {
flutter = FlutterRunTestDriver(tempDir);
flutter.stdout.listen((String line) {
expect(line, isNot(contains('Unresolved uri:')));
expect(line, isNot(contains('No module for')));
});
});

Expand Down