-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Stack overflow from package:analyzer LeastUpperBoundHelper.getLeastUpperBound #54572
Comments
It looks like we're getting an error from the analysis server's
|
@scheglov - I see very strange behavior when editing this snippet in a local editor. Initially I see no analysis issues. If I remove some parts of the local variable assignment I see some. Further edits can cause the issues to update or not in unpredictable ways. It doesn't look like the analysis server is crashing but there's definitely some analysis oddities. Switching the ternary from
|
There is an exception inside the analyzer.
|
Thanks for the investigation! I'll bump this issue over to the sdk repo. |
Note that this is a known issue, see #53254 (comment) by @eernst for details.
|
@devoncarew This issue wasn't necessarily meant to resolve the underlying issue that causes the analysis to fail, but to point out that DartPad is outputting what appears to be raw unprocessed output from the analyzer. That is, I expected to see an error message like the following: |
Consider the code example from #53254 and paste it into DartPad:
Notice the confusing error message:
I expected the error message to be descriptive and not confusing.
The text was updated successfully, but these errors were encountered: