[M] Change in dart/sdk[main]: analyzer: Deprecate legacy analyzer plugins

0 views
Skip to first unread message

Samuel Rawlins (Gerrit)

unread,
3:10 PM (8 hours ago) 3:10 PM
to Konstantin Shcheglov, Brian Wilkerson, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Konstantin Shcheglov

Samuel Rawlins voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Konstantin Shcheglov
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
Gerrit-Change-Number: 524620
Gerrit-PatchSet: 1
Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Comment-Date: Wed, 15 Jul 2026 19:10:48 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
3:32 PM (8 hours ago) 3:32 PM
to Samuel Rawlins, Brian Wilkerson, Konstantin Shcheglov, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov and Samuel Rawlins

Brian Wilkerson voted and added 1 comment

Votes added by Brian Wilkerson

Code-Review+1

1 comment

File pkg/analyzer/messages.yaml
Line 211, Patchset 1 (Latest): hasPublishedDocs: false
Brian Wilkerson . unresolved

Do we want to have documentation for this?

I could imagine adding a common fix like "Contact the authors of the plugins you use to determine whether they have a replacement that uses the new plugin support. If so, convert to using the new plugins. If not, let them know how much you appreciate their plugin and encourage them to continue to support it under the new plugin framework."

Open in Gerrit

Related details

Attention is currently required from:
  • Konstantin Shcheglov
  • Samuel Rawlins
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Gerrit-Change-Number: 524620
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Comment-Date: Wed, 15 Jul 2026 19:32:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    Konstantin Shcheglov (Gerrit)

    unread,
    3:37 PM (8 hours ago) 3:37 PM
    to Samuel Rawlins, Brian Wilkerson, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
    Attention needed from Samuel Rawlins

    Konstantin Shcheglov voted and added 1 comment

    Votes added by Konstantin Shcheglov

    Code-Review+1

    1 comment

    File pkg/analyzer/lib/src/analysis_options/analysis_options_parse_model.dart
    Line 276, Patchset 1 (Latest): if (analyzer.valueAt(AnalysisOptionsFileKeys.plugins) != null) {
    Konstantin Shcheglov . unresolved
    Maybe simplify to:
    ```
    if (analyzer.getKey(AnalysisOptionsFileKeys.plugins) case var keyNode?) {
    reporter.report(
    diag.analysisOptionsDeprecatedPlugins.atSourceSpan(keyNode.span),
    );
    }
    ```
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Samuel Rawlins
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Gerrit-Change-Number: 524620
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Wed, 15 Jul 2026 19:37:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Samuel Rawlins (Gerrit)

    unread,
    6:18 PM (5 hours ago) 6:18 PM
    to Konstantin Shcheglov, Brian Wilkerson, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
    Attention needed from Brian Wilkerson

    Samuel Rawlins added 1 comment

    File pkg/analyzer/messages.yaml
    Line 211, Patchset 1 (Latest): hasPublishedDocs: false
    Brian Wilkerson . unresolved

    Do we want to have documentation for this?

    I could imagine adding a common fix like "Contact the authors of the plugins you use to determine whether they have a replacement that uses the new plugin support. If so, convert to using the new plugins. If not, let them know how much you appreciate their plugin and encourage them to continue to support it under the new plugin framework."

    Samuel Rawlins

    I like that! Is that something we add after the CL lands? Or we land it now, but leave hasPublishedDocs false until Parker publishes them to the website?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Brian Wilkerson
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Gerrit-Change-Number: 524620
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Comment-Date: Wed, 15 Jul 2026 22:18:20 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
    satisfied_requirement
    open
    diffy

    Brian Wilkerson (Gerrit)

    unread,
    7:19 PM (4 hours ago) 7:19 PM
    to Samuel Rawlins, Konstantin Shcheglov, Brian Wilkerson, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
    Attention needed from Samuel Rawlins

    Brian Wilkerson added 1 comment

    File pkg/analyzer/messages.yaml
    Line 211, Patchset 1 (Latest): hasPublishedDocs: false
    Brian Wilkerson . unresolved

    Do we want to have documentation for this?

    I could imagine adding a common fix like "Contact the authors of the plugins you use to determine whether they have a replacement that uses the new plugin support. If so, convert to using the new plugins. If not, let them know how much you appreciate their plugin and encourage them to continue to support it under the new plugin framework."

    Samuel Rawlins

    I like that! Is that something we add after the CL lands? Or we land it now, but leave hasPublishedDocs false until Parker publishes them to the website?

    Brian Wilkerson

    The docs need to be landed first, with `hasPublishedDocs: false`, then Parker can publish them, then we can mark them as published. All of the CLs need to be cherry picked in order for the docs to be seen by 3.13 users.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Samuel Rawlins
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Gerrit-Change-Number: 524620
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Wed, 15 Jul 2026 23:19:13 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
    Comment-In-Reply-To: Samuel Rawlins <sraw...@google.com>
    satisfied_requirement
    open
    diffy

    Brian Wilkerson (Gerrit)

    unread,
    7:20 PM (4 hours ago) 7:20 PM
    to Samuel Rawlins, Konstantin Shcheglov, Brian Wilkerson, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org
    Attention needed from Samuel Rawlins

    Brian Wilkerson added 1 comment

    File pkg/analyzer/messages.yaml
    Line 211, Patchset 1 (Latest): hasPublishedDocs: false
    Brian Wilkerson . unresolved

    Do we want to have documentation for this?

    I could imagine adding a common fix like "Contact the authors of the plugins you use to determine whether they have a replacement that uses the new plugin support. If so, convert to using the new plugins. If not, let them know how much you appreciate their plugin and encourage them to continue to support it under the new plugin framework."

    Samuel Rawlins

    I like that! Is that something we add after the CL lands? Or we land it now, but leave hasPublishedDocs false until Parker publishes them to the website?

    Brian Wilkerson

    The docs need to be landed first, with `hasPublishedDocs: false`, then Parker can publish them, then we can mark them as published. All of the CLs need to be cherry picked in order for the docs to be seen by 3.13 users.

    Brian Wilkerson

    But it's OK to have Connie look at them after the fact. We can update and re-publish them at any time without needing to cherry-pick them.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Samuel Rawlins
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Gerrit-Change-Number: 524620
    Gerrit-PatchSet: 1
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Wed, 15 Jul 2026 23:20:32 +0000
    satisfied_requirement
    open
    diffy

    Samuel Rawlins (Gerrit)

    unread,
    10:13 PM (1 hour ago) 10:13 PM
    to Konstantin Shcheglov, Brian Wilkerson, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org

    Samuel Rawlins added 2 comments

    File pkg/analyzer/lib/src/analysis_options/analysis_options_parse_model.dart
    Line 276, Patchset 1: if (analyzer.valueAt(AnalysisOptionsFileKeys.plugins) != null) {
    Konstantin Shcheglov . resolved
    Maybe simplify to:
    ```
    if (analyzer.getKey(AnalysisOptionsFileKeys.plugins) case var keyNode?) {
    reporter.report(
    diag.analysisOptionsDeprecatedPlugins.atSourceSpan(keyNode.span),
    );
    }
    ```
    Samuel Rawlins

    Done

    File pkg/analyzer/messages.yaml
    Line 211, Patchset 1: hasPublishedDocs: false
    Brian Wilkerson . resolved

    Do we want to have documentation for this?

    I could imagine adding a common fix like "Contact the authors of the plugins you use to determine whether they have a replacement that uses the new plugin support. If so, convert to using the new plugins. If not, let them know how much you appreciate their plugin and encourage them to continue to support it under the new plugin framework."

    Samuel Rawlins

    I like that! Is that something we add after the CL lands? Or we land it now, but leave hasPublishedDocs false until Parker publishes them to the website?

    Brian Wilkerson

    The docs need to be landed first, with `hasPublishedDocs: false`, then Parker can publish them, then we can mark them as published. All of the CLs need to be cherry picked in order for the docs to be seen by 3.13 users.

    Brian Wilkerson

    But it's OK to have Connie look at them after the fact. We can update and re-publish them at any time without needing to cherry-pick them.

    Samuel Rawlins

    Acknowledged

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Gerrit-Change-Number: 524620
    Gerrit-PatchSet: 2
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Thu, 16 Jul 2026 02:13:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
    Comment-In-Reply-To: Samuel Rawlins <sraw...@google.com>
    Comment-In-Reply-To: Konstantin Shcheglov <sche...@google.com>
    satisfied_requirement
    open
    diffy

    Samuel Rawlins (Gerrit)

    unread,
    10:13 PM (1 hour ago) 10:13 PM
    to Konstantin Shcheglov, Brian Wilkerson, dart-...@luci-project-accounts.iam.gserviceaccount.com, dart-analys...@google.com, rev...@dartlang.org

    Samuel Rawlins voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Gerrit-Change-Number: 524620
    Gerrit-PatchSet: 2
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-Comment-Date: Thu, 16 Jul 2026 02:13:21 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    dart-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

    unread,
    10:39 PM (1 hour ago) 10:39 PM
    to Samuel Rawlins, Konstantin Shcheglov, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org

    dart-...@luci-project-accounts.iam.gserviceaccount.com submitted the change with unreviewed changes

    Unreviewed changes

    1 is the latest approved patch-set.
    The change was submitted with unreviewed changes in the following files:

    ```
    The name of the file: pkg/analyzer/lib/src/analysis_options/analysis_options_parse_model.dart
    Insertions: 4, Deletions: 9.

    @@ -273,15 +273,10 @@
    reporter,
    );

    - if (analyzer.valueAt(AnalysisOptionsFileKeys.plugins) != null) {
    - if (analyzer.getKey(AnalysisOptionsFileKeys.plugins)
    - case var pluginsKeyNode?) {
    - reporter.report(
    - diag.analysisOptionsDeprecatedPlugins.atSourceSpan(
    - pluginsKeyNode.span,
    - ),
    - );
    - }
    + if (analyzer.getKey(AnalysisOptionsFileKeys.plugins) case var keyNode?) {
    + reporter.report(
    + diag.analysisOptionsDeprecatedPlugins.atSourceSpan(keyNode.span),
    + );
    }

    return _ParsedAnalyzerData._(
    ```

    Change information

    Commit message:
    analyzer: Deprecate legacy analyzer plugins

    Work towards https://github.com/dart-lang/sdk/issues/62164
    Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Commit-Queue: Samuel Rawlins <sraw...@google.com>
    Reviewed-by: Brian Wilkerson <brianwi...@google.com>
    Reviewed-by: Konstantin Shcheglov <sche...@google.com>
    Files:
    • M pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml
    • M pkg/analysis_server/lib/src/status/pages/legacy_plugins_page.dart
    • M pkg/analyzer/lib/src/analysis_options/analysis_options_parse_model.dart
    • M pkg/analyzer/lib/src/diagnostic/diagnostic.g.dart
    • M pkg/analyzer/lib/src/diagnostic/diagnostic_code_values.g.dart
    • M pkg/analyzer/messages.yaml
    • M pkg/analyzer/test/src/analysis_options/analysis_options_parser_test.dart
    Change size: M
    Delta: 7 files changed, 86 insertions(+), 0 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Brian Wilkerson, +1 by Konstantin Shcheglov
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: Idda13c2a2bc31e33147ff2eac2b0ec2f99e735d4
    Gerrit-Change-Number: 524620
    Gerrit-PatchSet: 3
    Gerrit-Owner: Samuel Rawlins <sraw...@google.com>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages