Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ab7f6e5c
Unverified
Commit
ab7f6e5c
authored
May 20, 2022
by
Zachary Anderson
Committed by
GitHub
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass --verbosity=error to the Dart front-end (#104020)
parent
02c4bd8f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
6 deletions
+28
-6
compile.dart
packages/flutter_tools/lib/src/compile.dart
+4
-0
common_test.dart
.../test/general.shard/build_system/targets/common_test.dart
+7
-0
compile_batch_test.dart
.../flutter_tools/test/general.shard/compile_batch_test.dart
+8
-0
compile_incremental_test.dart
...er_tools/test/general.shard/compile_incremental_test.dart
+9
-6
No files found.
packages/flutter_tools/lib/src/compile.dart
View file @
ab7f6e5c
...
...
@@ -329,6 +329,8 @@ class KernelCompiler {
'package:flutter/src/dart_plugin_registrant.dart'
,
'-Dflutter.dart_plugin_registrant=
${dartPluginRegistrant.uri}
'
,
],
// See: https://github.com/flutter/flutter/issues/103994
'--verbosity=error'
,
...?
extraFrontEndOptions
,
mainUri
,
];
...
...
@@ -795,6 +797,8 @@ class DefaultResidentCompiler implements ResidentCompiler {
platformDill
!,
],
if
(
unsafePackageSerialization
==
true
)
'--unsafe-package-serialization'
,
// See: https://github.com/flutter/flutter/issues/103994
'--verbosity=error'
,
...?
extraFrontEndOptions
,
];
_logger
.
printTrace
(
command
.
join
(
' '
));
...
...
packages/flutter_tools/test/general.shard/build_system/targets/common_test.dart
View file @
ab7f6e5c
...
...
@@ -102,6 +102,7 @@ void main() {
'
$build
/app.dill'
,
'--depfile'
,
'
$build
/kernel_snapshot.d'
,
'--verbosity=error'
,
'file:///lib/main.dart'
,
],
exitCode:
1
),
]);
...
...
@@ -139,6 +140,7 @@ void main() {
'
$build
/app.dill'
,
'--depfile'
,
'
$build
/kernel_snapshot.d'
,
'--verbosity=error'
,
'file:///lib/main.dart'
,
],
stdout:
'result
$kBoundaryKey
\n
$kBoundaryKey
\n
$kBoundaryKey
$build
/app.dill 0
\n
'
),
]);
...
...
@@ -177,6 +179,7 @@ void main() {
'
$build
/app.dill'
,
'--depfile'
,
'
$build
/kernel_snapshot.d'
,
'--verbosity=error'
,
'file:///lib/main.dart'
,
],
stdout:
'result
$kBoundaryKey
\n
$kBoundaryKey
\n
$kBoundaryKey
$build
/app.dill 0
\n
'
),
]);
...
...
@@ -216,6 +219,7 @@ void main() {
'
$build
/app.dill'
,
'--depfile'
,
'
$build
/kernel_snapshot.d'
,
'--verbosity=error'
,
'foo'
,
'bar'
,
'file:///lib/main.dart'
,
...
...
@@ -255,6 +259,7 @@ void main() {
'
$build
/app.dill'
,
'--depfile'
,
'
$build
/kernel_snapshot.d'
,
'--verbosity=error'
,
'file:///lib/main.dart'
,
],
stdout:
'result
$kBoundaryKey
\n
$kBoundaryKey
\n
$kBoundaryKey
$build
/app.dill 0
\n
'
),
]);
...
...
@@ -292,6 +297,7 @@ void main() {
'
$build
/app.dill'
,
'--depfile'
,
'
$build
/kernel_snapshot.d'
,
'--verbosity=error'
,
'file:///lib/main.dart'
,
],
stdout:
'result
$kBoundaryKey
\n
$kBoundaryKey
\n
$kBoundaryKey
$build
/app.dill 0
\n
'
),
]);
...
...
@@ -344,6 +350,7 @@ void main() {
'
$build
/app.dill'
,
'--depfile'
,
'
$build
/kernel_snapshot.d'
,
'--verbosity=error'
,
'file:///lib/main.dart'
,
],
stdout:
'result
$kBoundaryKey
\n
$kBoundaryKey
\n
$kBoundaryKey
/build/653e11a8e6908714056a57cd6b4f602a/app.dill 0
\n
'
),
]);
...
...
packages/flutter_tools/test/general.shard/compile_batch_test.dart
View file @
ab7f6e5c
...
...
@@ -66,6 +66,7 @@ void main() {
'--no-link-platform'
,
'--packages'
,
'.packages'
,
'--verbosity=error'
,
'file:///path/to/main.dart'
,
],
completer:
completer
),
]),
...
...
@@ -111,6 +112,7 @@ void main() {
'--no-link-platform'
,
'--packages'
,
'.packages'
,
'--verbosity=error'
,
'file:///path/to/main.dart'
,
],
completer:
completer
),
]),
...
...
@@ -156,6 +158,7 @@ void main() {
'--no-link-platform'
,
'--packages'
,
'.packages'
,
'--verbosity=error'
,
'file:///path/to/main.dart'
,
],
completer:
completer
,
exitCode:
127
),
]),
...
...
@@ -203,6 +206,7 @@ void main() {
'--tfa'
,
'--packages'
,
'.packages'
,
'--verbosity=error'
,
'file:///path/to/main.dart'
,
],
completer:
completer
),
]),
...
...
@@ -251,6 +255,7 @@ void main() {
'--tfa'
,
'--packages'
,
'.packages'
,
'--verbosity=error'
,
'file:///path/to/main.dart'
,
],
completer:
completer
),
]),
...
...
@@ -299,6 +304,7 @@ void main() {
'--no-link-platform'
,
'--packages'
,
'.packages'
,
'--verbosity=error'
,
'file:///path/to/main.dart'
,
],
completer:
completer
),
]),
...
...
@@ -348,6 +354,7 @@ void main() {
'--no-link-platform'
,
'--packages'
,
'.packages'
,
'--verbosity=error'
,
'scheme:///main.dart'
,
],
completer:
completer
),
]),
...
...
@@ -402,6 +409,7 @@ void main() {
'--source'
,
'package:flutter/src/dart_plugin_registrant.dart'
,
'-Dflutter.dart_plugin_registrant=.dart_tools/flutter_build/dart_plugin_registrant.dart'
,
'--verbosity=error'
,
'scheme:///main.dart'
,
],
completer:
completer
),
]),
...
...
packages/flutter_tools/test/general.shard/compile_incremental_test.dart
View file @
ab7f6e5c
...
...
@@ -80,7 +80,7 @@ void main() {
testWithoutContext
(
'incremental compile single dart compile'
,
()
async
{
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
frontendServerCommand
,
command:
const
<
String
>[...
frontendServerCommand
,
'--verbosity=error'
]
,
stdout:
'result abc
\n
line1
\n
line2
\n
abc
\n
abc /path/to/main.dart.dill 0'
,
stdin:
frontendServerStdIn
,
));
...
...
@@ -107,6 +107,7 @@ void main() {
'/foo/bar/fizz'
,
'--filesystem-scheme'
,
'scheme'
,
'--verbosity=error'
,
],
stdout:
'result abc
\n
line1
\n
line2
\n
abc
\n
abc /path/to/main.dart.dill 0'
,
stdin:
frontendServerStdIn
,
...
...
@@ -128,7 +129,7 @@ void main() {
testWithoutContext
(
'incremental compile single dart compile abnormally terminates'
,
()
async
{
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
frontendServerCommand
,
command:
const
<
String
>[...
frontendServerCommand
,
'--verbosity=error'
]
,
stdin:
frontendServerStdIn
,
));
...
...
@@ -144,7 +145,7 @@ void main() {
testWithoutContext
(
'incremental compile single dart compile abnormally terminates via exitCode'
,
()
async
{
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
frontendServerCommand
,
command:
const
<
String
>[...
frontendServerCommand
,
'--verbosity=error'
]
,
stdin:
frontendServerStdIn
,
exitCode:
1
,
));
...
...
@@ -162,7 +163,7 @@ void main() {
testWithoutContext
(
'incremental compile and recompile'
,
()
async
{
final
Completer
<
void
>
completer
=
Completer
<
void
>();
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
frontendServerCommand
,
command:
const
<
String
>[...
frontendServerCommand
,
'--verbosity=error'
]
,
stdout:
'result abc
\n
line0
\n
line1
\n
abc
\n
abc /path/to/main.dart.dill 0'
,
stdin:
frontendServerStdIn
,
completer:
completer
,
...
...
@@ -211,6 +212,7 @@ void main() {
'/foo/bar/fizz'
,
'--filesystem-scheme'
,
'scheme'
,
'--verbosity=error'
,
],
stdout:
'result abc
\n
line0
\n
line1
\n
abc
\n
abc /path/to/main.dart.dill 0'
,
stdin:
frontendServerStdIn
,
...
...
@@ -274,6 +276,7 @@ void main() {
'/foo/bar/fizz'
,
'--filesystem-scheme'
,
'scheme'
,
'--verbosity=error'
,
],
stdout:
'result abc
\n
line0
\n
line1
\n
abc
\n
abc /path/to/main.dart.dill 0'
,
stdin:
frontendServerStdIn
,
...
...
@@ -324,7 +327,7 @@ void main() {
testWithoutContext
(
'incremental compile can suppress errors'
,
()
async
{
final
Completer
<
void
>
completer
=
Completer
<
void
>();
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
frontendServerCommand
,
command:
const
<
String
>[...
frontendServerCommand
,
'--verbosity=error'
]
,
stdout:
'result abc
\n
line0
\n
line1
\n
abc
\n
abc /path/to/main.dart.dill 0'
,
stdin:
frontendServerStdIn
,
completer:
completer
,
...
...
@@ -363,7 +366,7 @@ void main() {
testWithoutContext
(
'incremental compile and recompile twice'
,
()
async
{
final
Completer
<
void
>
completer
=
Completer
<
void
>();
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
frontendServerCommand
,
command:
const
<
String
>[...
frontendServerCommand
,
'--verbosity=error'
]
,
stdout:
'result abc
\n
line0
\n
line1
\n
abc
\n
abc /path/to/main.dart.dill 0'
,
stdin:
frontendServerStdIn
,
completer:
completer
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment