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
bd089974
Unverified
Commit
bd089974
authored
Dec 21, 2020
by
J-P Nurmi
Committed by
GitHub
Dec 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] catch fatal build output errors on Linux (#72559)
parent
14206399
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
build_linux.dart
packages/flutter_tools/lib/src/linux/build_linux.dart
+2
-2
build_linux_test.dart
..._tools/test/commands.shard/hermetic/build_linux_test.dart
+2
-0
No files found.
packages/flutter_tools/lib/src/linux/build_linux.dart
View file @
bd089974
...
...
@@ -17,10 +17,10 @@ import '../plugins.dart';
import
'../project.dart'
;
// Matches the following error and warning patterns:
// - <file path>:<line>:<column>: error: <error...>
// - <file path>:<line>:<column>:
(fatal)
error: <error...>
// - <file path>:<line>:<column>: warning: <warning...>
// - clang: error: <link error...>
final
RegExp
errorMatcher
=
RegExp
(
r'(?:.*:\d+:\d+|clang):\s?(?:error|warning):\s.*'
,
caseSensitive:
false
);
final
RegExp
errorMatcher
=
RegExp
(
r'(?:.*:\d+:\d+|clang):\s?(
fatal\s)?(
?:error|warning):\s.*'
,
caseSensitive:
false
);
/// Builds the Linux project through the Makefile.
Future
<
void
>
buildLinux
(
...
...
packages/flutter_tools/test/commands.shard/hermetic/build_linux_test.dart
View file @
bd089974
...
...
@@ -224,6 +224,7 @@ lib/main.dart:4:3: Error: Method not found: 'foo'.
/
foo
/
linux
/
main
.
cc
:
9
:
7
:
warning:
unused
variable
'unused_variable'
[-
Wunused
-
variable
]
/
foo
/
linux
/
main
.
cc
:
10
:
3
:
error:
unknown
type
name
'UnknownType'
/
foo
/
linux
/
main
.
cc
:
12
:
7
:
error:
'bar'
is
a
private
member
of
'Foo'
/
foo
/
linux
/
my_application
.
h
:
4
:
10
:
fatal
error:
'gtk/gtk.h'
file
not
found
[
3
/
6
]
Building
CXX
object
CMakeFiles
/
foo_bar
.
dir
/
flutter
/
generated_plugin_registrant
.
cc
.
o
[
4
/
6
]
Building
CXX
object
CMakeFiles
/
foo_bar
.
dir
/
my_application
.
cc
.
o
[
5
/
6
]
Linking
CXX
executable
intermediates_do_not_run
/
foo_bar
...
...
@@ -249,6 +250,7 @@ lib/main.dart:4:3: Error: Method not found: 'foo'.
/foo/linux/main.cc:9:7: warning: unused variable '
unused_variable
' [-Wunused-variable]
/foo/linux/main.cc:10:3: error: unknown type name '
UnknownType
'
/foo/linux/main.cc:12:7: error: '
bar
' is a private member of '
Foo
'
/foo/linux/my_application.h:4:10: fatal error: '
gtk
/
gtk
.
h
' file not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
'''
);
},
overrides:
<
Type
,
Generator
>{
...
...
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