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-stable][tool] make ErrorHandlingFileSystem.deleteIfExists catch error code 3 (ERROR_PATH_NOT_FOUND on Windows) #150787

Conversation

flutteractionsbot
Copy link

@flutteractionsbot flutteractionsbot commented Jun 25, 2024

This pull request is created by automatic cherry pick workflow
Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request.

Issue Link:

What is the link to the issue this cherry-pick is addressing?

#150736

Changelog Description:

Explain this cherry pick in one line that is accessible to most Flutter developers. See best practices for examples

Fixes some CLI tool crashes due to trying to delete a file that no longer exists.

Impact Description:

What is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)? Does it impact development (ex. flutter doctor crashes when Android Studio is installed), or the shipping production app (the app crashes on launch)

When running certain commands, such as flutter run or flutter build, users get a lengthy crash message including the full contents of a FileSystemException.

Workaround:

Is there a workaround for this issue?

Attempt to run the command again, or try again after running flutter clean.

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

What are the steps to validate that this fix works?

N/A. This issue is due to races within the user's file system (a file getting deleted or quarantined after being confirmed to exist but before the tool could delete it.

… 3 (`ERROR_PATH_NOT_FOUND` on Windows) (flutter#150741)

Resolves flutter#150736

FYI I plan to cherry-pick this
@flutteractionsbot flutteractionsbot added the cp: review Cherry-picks in the review queue label Jun 25, 2024
@flutteractionsbot
Copy link
Author

@andrewkolos please fill out the PR description above, afterwards the release team will review this request.

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 25, 2024
@itsjustkevin itsjustkevin added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 1, 2024
@auto-submit auto-submit bot merged commit 3e81a1d into flutter:flutter-3.22-candidate.0 Jul 1, 2024
125 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2024
…sts` catch error code 3 (`ERROR_PATH_NOT_FOUND` on Windows) (flutter/flutter#150787)
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2024
…sts` catch error code 3 (`ERROR_PATH_NOT_FOUND` on Windows) (flutter/flutter#150787)
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 19, 2024
…sts` catch error code 3 (`ERROR_PATH_NOT_FOUND` on Windows) (flutter/flutter#150787)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App cp: review Cherry-picks in the review queue tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants