Skip to content

Missing import suggestions #30295

Open
Open
@JFixby

Description

@JFixby

Reproduction steps:

Example project: https://github.com/JFixby/DartImportsExample

class A located in the lib/folderA/class_a_file.dart
content:

class A {
  static String fieldF = "";
}

class C located in the lib/class_c_depends_on_a.dart depends on the A
content:

class C {
  C() {
    // editing this line
  }
}

What was done

print A. in the constructor of the class C

What is expected

to see a list of suggested imports with proposal to import lib/folderA/class_a_file.dart

What is actually happening

no relevant suggestions

image

Setup

IDEA version: community 2017.2
Dart plugin: 172.3317.48

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-serverIssues related to some aspect of the analysis servertype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions