Skip to content

[flutter_tools] Prepare for OSError to implement Exception#53258

Merged
fluttergithubbot merged 1 commit intoflutter:masterfrom
zanderso:ignore-oserror-dead-code
Mar 26, 2020
Merged

[flutter_tools] Prepare for OSError to implement Exception#53258
fluttergithubbot merged 1 commit intoflutter:masterfrom
zanderso:ignore-oserror-dead-code

Conversation

@zanderso
Copy link
Copy Markdown
Member

OSError will soon implement Exception. Prepare for this by ignoring analyzer warnings about dead code in catch clauses that catch both Exception and OSError.

@zichangg

@zanderso zanderso added the tool Affects the "flutter" command-line tool. See also t: labels. label Mar 25, 2020
@zanderso zanderso requested a review from dnfield March 25, 2020 15:00
@fluttergithubbot
Copy link
Copy Markdown
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Copy Markdown
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

} on Exception catch (_) {
// handled by checking the exit code.
} on OSError catch (_) {
} on OSError catch (_) { // ignore: dead_code_on_catch_subtype
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO to remove this?

@fluttergithubbot fluttergithubbot merged commit 9d97918 into flutter:master Mar 26, 2020
dart-bot pushed a commit to dart-lang/sdk that referenced this pull request Apr 11, 2020
This is a reland of ae392b8

flutter/flutter#53258 will be landed first to unblock the roll.

Original change's description:
> [dart:io] Making OSError implements Exception
>
> Bug: #40934
> Change-Id: Icff457333bd570d81cdf9c3136ee4fe1cadfaae8
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139406
> Reviewed-by: Zach Anderson <zra@google.com>
> Reviewed-by: Siva Annamalai <asiva@google.com>
> Commit-Queue: Zichang Guo <zichangguo@google.com>

Bug: #40934
Change-Id: Ibc17c0a5717c2005898ce279d4d16edbdbbf44fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140910
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
@zanderso zanderso deleted the ignore-oserror-dead-code branch April 15, 2020 17:05
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants