linter icon indicating copy to clipboard operation
linter copied to clipboard

use_build_context_synchronously and try/catch

Open slavap opened this issue 3 years ago • 2 comments

No warning in that case, though it should be:

try {
  await aaa(); // SUCCESS
  await bbb(); // FAILURE
} catch (ex, stack) {
  await ccc(context);
}

slavap avatar Jun 17 '22 03:06 slavap

CC @goderbauer

srawlins avatar Jun 29 '22 18:06 srawlins

This does look like a legit false negative.

goderbauer avatar Jun 29 '22 19:06 goderbauer

Oops I think a duplicate of https://github.com/dart-lang/linter/issues/3028

srawlins avatar Nov 07 '22 18:11 srawlins

Yep. This is a dup. Closing in favor of #3028.

pq avatar Dec 14 '22 21:12 pq