Skip to content

Analyzer: Non-recoverable state with new Function #30760

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

Closed
matanlurey opened this issue Sep 15, 2017 · 1 comment
Closed

Analyzer: Non-recoverable state with new Function #30760

matanlurey opened this issue Sep 15, 2017 · 1 comment
Labels
legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@matanlurey
Copy link
Contributor

$ dart --version
> Dart VM version: 1.25.0-dev.16.4 (Wed Sep 13 01:47:12 2017) on "macos_x64"

The following code will at least for me, silently crash the analyzer:

class Writer {
  Future<T> writeIfAbsent<T>(String key, T Function<T> ifAbsent) {

  }
}

Do you see the problem? I didn't 😢 , I needed to write T Function<T>().

Once I did that, the analyzer kicked back in again, but without it I lost basic syntax highlighting and everything else in my file. Unlike other occasions, I didn't get any sort of error/crash, and hitting "restart analysis server" in IntelliJ did nothing to help.

@bwilkerson bwilkerson added legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Sep 15, 2017
@jmesserly
Copy link

This appears to be fixed now. (but definitely reopen if we see it again with a new SDK build)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants