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

Analyser doesn't recognize global variable if I use await in a function that is marked not async #38236

Open
escamoteur opened this issue Sep 6, 2019 · 0 comments
Labels
analyzer-recovery area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@escamoteur
Copy link

Hi,

first thanks for this awesome tool set!

Was just fooled by the analyzer before I understood what happened I have this function here

image

On my way to convert this to a non async method I deleted the first await and then the async and suddenly got this:

image

And was pretty confused why suddenly backend was no longer defined. I had to delete the second await before the analyzer would recognize backend again.

Cheers
Thomas

@bwilkerson bwilkerson added analyzer-recovery area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Sep 6, 2019
@srawlins srawlins added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Nov 17, 2021
@srawlins srawlins added the P3 A lower priority bug or feature request label Dec 27, 2021
@srawlins srawlins added the contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) label May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-recovery area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants