Skip to content

[analyzer] unused_import not being triggered #55483

Closed as not planned
Closed as not planned

Description

@HosseinYousefi

Specifically in this file, unused dart:lib imports like dart:ffi or dart:async won't trigger the unused_import lint. Unused package:pkg/pkg.dart and path/to/file.dart imports do trigger the lint correctly!

- Dart 3.4.0-242.0.dev (dev) (Sat Mar 16 17:06:53 2024 -0700) on "macos_arm64"
- on macos / Version 14.4.1 (Build 23E224)
- locale is en

Activity

  1. changed the title [-]`unused_import` not being triggered[/-] [+][analyzer] `unused_import` not being triggered[/+] on Apr 16, 2024
  2. added
    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
    on Apr 17, 2024
  3. added
    devexp-warningIssues with the analyzer's Warning codes
    P2A bug or feature request we're likely to work on
    and removed
    devexp-linterIssues with the analyzer's support for the linter package
    on Apr 19, 2024
  4. bwilkerson commented on Apr 19, 2024

    @bwilkerson
    Member

    @srawlins Do you know whether this is intentional?

  5. srawlins commented on Apr 19, 2024

    @srawlins
    Member

    I don't. We'd need a minimal reproduction case to investigate.

  6. added
    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
    and removed on Feb 27, 2025
  7. added
    needs-infoWe need additional information from the issue author (auto-closed after 14 days if no response)
    on Dec 4, 2025
  8. github-actions commented on Dec 19, 2025

    @github-actions

    Without additional information we're not able to resolve this issue. Feel free to add more info or respond to any questions above and we can reopen the case. Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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-warningIssues with the analyzer's Warning codesneeds-infoWe need additional information from the issue author (auto-closed after 14 days if no response)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