Skip to content

Dart Analyzer slow/stuck with custom_lint intl_utils and Vscode pinned files #61929

@quyenvsp

Description

@quyenvsp

Continue #55281 (comment)

Dart SDK version: 3.9.2 (stable) (Wed Aug 27 03:49:40 2025 -0700) on "windows_x64"

When project using custom_lint (riverpod_lint) plugin it will random slow/stuck analyzer. The clearest representation is running android debug right after opening the project in Vscode with multiple pinned files.

  1. Checkout https://github.com/noncheat/riverpod/tree/test/analysis
  2. Open examples/todos in Vscode
  3. Try Start Debugging (F5) first time and Enable Android for project
  4. Vscode pin some files (Ctrl+K Shift+Enter) main.dart, todo.dart, pubspec.yaml, analysis_options.yaml,...
  5. Ctrl+. at lib/main.dart:63 StatelessWidget for trigger helper confirm it work
    (process custom_lint_client.dart take about ~1.3GB ram)
  6. F1 > Developer: Reload Window, Start Debugging (F5) Android immediately after window reloaded
  7. Try step 5 again to see it not work anymore.
    (process custom_lint_client.dart take only ~0.5GB ram)

The problem can be solved by this invertase/dart_custom_lint#340, but I think it would be better to solve from Dart analyzer?

Video
https://drive.google.com/file/d/1bzW0VbEHzN9dBhWN9_9HGEiZ2mORzAa-/view?usp=drive_link

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-plugintype-performanceIssue relates to performance or code size

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions