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
0ac2232e
Commit
0ac2232e
authored
Jul 10, 2017
by
Devon Carew
Committed by
GitHub
Jul 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
normalize the reload result messages (#11131)
parent
834fbcb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
run_hot.dart
packages/flutter_tools/lib/src/run_hot.dart
+6
-6
No files found.
packages/flutter_tools/lib/src/run_hot.dart
View file @
0ac2232e
...
...
@@ -313,7 +313,7 @@ class HotRunner extends ResidentRunner {
restartTimer
.
start
();
final
bool
updatedDevFS
=
await
_updateDevFS
();
if
(!
updatedDevFS
)
return
new
OperationResult
(
1
,
'DevFS
Synchronization F
ailed'
);
return
new
OperationResult
(
1
,
'DevFS
synchronization f
ailed'
);
// Check if the isolate is paused and resume it.
for
(
FlutterDevice
device
in
flutterDevices
)
{
for
(
FlutterView
view
in
device
.
views
)
{
...
...
@@ -394,7 +394,7 @@ class HotRunner extends ResidentRunner {
timer
.
stop
();
status
.
cancel
();
if
(
result
.
isOk
)
printStatus
(
"
Reloaded
${result.message}
in
${getElapsedAsMilliseconds(timer.elapsed)}
."
);
printStatus
(
"
${result.message}
in
${getElapsedAsMilliseconds(timer.elapsed)}
."
);
return
result
;
}
catch
(
error
)
{
status
.
cancel
();
...
...
@@ -436,7 +436,7 @@ class HotRunner extends ResidentRunner {
}
final
bool
updatedDevFS
=
await
_updateDevFS
();
if
(!
updatedDevFS
)
return
new
OperationResult
(
1
,
'DevFS
Synchronization F
ailed'
);
return
new
OperationResult
(
1
,
'DevFS
synchronization f
ailed'
);
if
(
benchmarkMode
)
{
devFSTimer
.
stop
();
// Record time it took to synchronize to DevFS.
...
...
@@ -444,7 +444,7 @@ class HotRunner extends ResidentRunner {
devFSTimer
.
elapsed
.
inMilliseconds
;
}
if
(!
updatedDevFS
)
return
new
OperationResult
(
1
,
'Dart
Source E
rror'
);
return
new
OperationResult
(
1
,
'Dart
source e
rror'
);
String
reloadMessage
;
try
{
final
String
entryPath
=
fs
.
path
.
relative
(
mainPath
,
from:
projectRootPath
);
...
...
@@ -464,13 +464,13 @@ class HotRunner extends ResidentRunner {
if
(!
validateReloadReport
(
reloadReport
))
{
// Reload failed.
flutterUsage
.
sendEvent
(
'hot'
,
'reload-reject'
);
return
new
OperationResult
(
1
,
'
r
eload rejected'
);
return
new
OperationResult
(
1
,
'
R
eload rejected'
);
}
else
{
flutterUsage
.
sendEvent
(
'hot'
,
'reload'
);
final
int
loadedLibraryCount
=
reloadReport
[
'details'
][
'loadedLibraryCount'
];
final
int
finalLibraryCount
=
reloadReport
[
'details'
][
'finalLibraryCount'
];
printTrace
(
'reloaded
$loadedLibraryCount
of
$finalLibraryCount
libraries'
);
reloadMessage
=
'
$loadedLibraryCount
of
$finalLibraryCount
libraries'
;
reloadMessage
=
'
Reloaded
$loadedLibraryCount
of
$finalLibraryCount
libraries'
;
}
}
catch
(
error
,
st
)
{
printError
(
"Hot reload failed:
$error
\n
$st
"
);
...
...
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