Analyzer hang on incomplete code "Future<List<>>" #44477
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
P2
A bug or feature request we're likely to work on
This might be the same as #34850, but it seemed like that was believed to be fixed so I'm raising a new issue (feel free to close as a dupe if so). This was reported in Dart-Code/Dart-Code#2865 (comment) and I can reproduce it on the latest nightly and it appears to get the analysis server stuck in an infinite loop.
I'm testing with the code:
I put it into an arbitrary test ('analysis_Server/test/lsp/format_test.dart'):
The test doesn't fail, but this error occurs asynchronously:
It's throwing here because of the assert, but when you reproduce it in a normal release build it appears to get the server stuck in an infinite loop (edit: if I run the same test without asserts from the command, it does indeed get stuck in a loop).
@bwilkerson @scheglov
The text was updated successfully, but these errors were encountered: