flutter / flutter/flutter-intellij

Misleading error message when you use a class that doesn't have an import

Open
#1,313 8 comments 0 reactions 0 assignees View on GitHub
dependency: dart sdk P1
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

screen shot 2017-09-03 at 3 55 53 pm

Here, I construct a class, one which is not yet imported into my file.

The first error is confusing and probably not helpful: "returns type dynamic" .. ? it's returning a type of LotteryStateBadge

The second error is probably the one we want, however I'd love for it to also say ", not found in any imports"

And then, I'd love for a quick fix to be added right here saying "Import this class?"

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.