Skip to content

Latest stager is incompatible with latest Dart SDK #9497

@srawlins

Description

@srawlins

A roll of the Dart SDK into Flutter has revealed that devtools_app is incompatible with the latest Dart SDK.

devtools_app depends on stager; the latest release of stager depends on a specific range of source_gen and of the analyzer package, both of which prohibit analyzer 8.x.y or 9.x.y.

The latest Dart SDK on the main channel includes dot-shorthand syntax in dart:developer sources. Any version of the analyzer package predating 8.4.1 cannot parse this code.

What to do?

  • Bump stager - In June, I was able to land a PR in the stager GitHub repo that widens the constraint on source_gen. This code has not been published on pub, and the repo has been idle since that PR. This PR was actually for a different issue, and bumping the constraint to include source_gen ^3.0.0, and also to require analyzer ^8.0.0 or ^9.0.0, would be new work.
  • Drop stager - Can we drop stager? Can we drop it temporarily so that devtools can continue to be tested in the Flutter customer tests? It seems to be mostly used in some tests, as it is mostly referenced in test/test_infra/scenes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2important to work on, but not at the top of the work list.testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions