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

Weird caching behavior when making a field late final #40701

Closed
kevmoo opened this issue Feb 20, 2020 · 4 comments
Closed

Weird caching behavior when making a field late final #40701

kevmoo opened this issue Feb 20, 2020 · 4 comments
Assignees
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@kevmoo
Copy link
Member

kevmoo commented Feb 20, 2020

At 2.8.0-edge 3dc8cb0

  • Add final to an already late field.
  • notice analyzer error
  • change the file in some tangible way – rename function param, add function, etc
  • notice error goes away

Caching?

analyzer_weird

@kevmoo kevmoo added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-server type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Feb 20, 2020
@kevmoo
Copy link
Member Author

kevmoo commented Feb 20, 2020

I had to delete the ~/.dartServer cache to fix it!

Restarting the server, restarting intellij – didn't help

@bwilkerson
Copy link
Member

@scheglov

@scheglov scheglov self-assigned this Feb 20, 2020
@scheglov
Copy link
Contributor

Yes, apparently late is omitted from the unlinked API signature of a file.
I will have a fix CL shortly.

@scheglov
Copy link
Contributor

dart-bot pushed a commit that referenced this issue Feb 20, 2020
R=brianwilkerson@google.com, pquitslund@google.com

Bug: #40701
Change-Id: Ia11ff4e65e779c4a370a6fec539564c0533bffa3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136529
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants