Skip to content

Flaky error when resolving (valid) annotations in analyzer #43744

@jakemac53

Description

@jakemac53

Example failure: https://travis-ci.org/github/dart-lang/angular/jobs/734348689

This is experienced consistently on travis, and approximately 1/3 of the time for me locally (glinux).

Repro instructions (unfortunately I can't make a small repro):

  1. Clone the angular repo https://github.com/dart-lang/angular
  2. Checkout the latest_dependencies branch
  3. Cd into the angular_forms dir
  4. Run pub upgrade
  5. Run pub run build_runner build - you may need to do this several times before seeing the failure (run pub run build_runner clean to clear your cache between runs).

Debugging instructions:

You can run pub run build_runner generate-build-script which will just generate the dart script and print its location - then you can run that script (passing build as the argument still) and debug it using your ide or whatever tool you use.

Collected information so far

I tried running on several versions of analyzer - this repros on 0.40.1 and above, but not 0.39.17 (0.40.0 isn't solvable via pub solves). So I am pretty sure this was introduced in either 0.40.0 or 0.40.1 of analyzer.

In order to test on 0.39.17 you will also end up downgrading build_resolvers (and the analyzer constraint in other packages), but there were no meaningful changes in build_resolvers regarding how the analyzer is used, so I don't believe it is a build_resolvers issue.

cc @kevmoo can you set prioritization?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failureslegacy-area-analyzerUse area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions