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
b05d6ec8
Unverified
Commit
b05d6ec8
authored
Feb 11, 2021
by
Jonah Williams
Committed by
GitHub
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] catch error 32 in cache (#75719)
parent
5b823cde
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
cache.dart
packages/flutter_tools/lib/src/cache.dart
+18
-1
No files found.
packages/flutter_tools/lib/src/cache.dart
View file @
b05d6ec8
...
...
@@ -1796,7 +1796,24 @@ class ArtifactUpdater {
final
Directory
destination
=
location
.
childDirectory
(
tempFile
.
fileSystem
.
path
.
basenameWithoutExtension
(
tempFile
.
path
)
);
ErrorHandlingFileSystem
.
deleteIfExists
(
destination
,
recursive:
true
);
try
{
ErrorHandlingFileSystem
.
deleteIfExists
(
destination
,
recursive:
true
,
);
}
on
FileSystemException
catch
(
error
)
{
// Error that indicates another program has this file open and that it
// cannot be deleted. For the cache, this is either the analyzer reading
// the sky_engine package or a running flutter_tester device.
const
int
kSharingViolation
=
32
;
if
(
_platform
.
isWindows
&&
error
.
osError
.
errorCode
==
kSharingViolation
)
{
throwToolExit
(
'Failed to delete
${destination.path}
because the local file/directory is in use '
'by another process. Try closing any running IDEs or editors and trying '
'again'
);
}
}
_ensureExists
(
location
);
try
{
...
...
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