Skip to content

dart:html should not be suggested in a flutter context #4502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
devxpy opened this issue Apr 23, 2020 · 1 comment
Closed

dart:html should not be suggested in a flutter context #4502

devxpy opened this issue Apr 23, 2020 · 1 comment

Comments

@devxpy
Copy link

devxpy commented Apr 23, 2020

Thanks for all the great work on this plugin!


IntelliJ Idea 45.1.3
Dart plugin: 201.7223.43
Flutter plugin: 45.1.3


This is not a breaker, but I've encountered this too many times for it to be really annoying.

IntelliJ will recommend dart:html as the first fix for a missing import. Since dart:html is not supported by flutter, this just breaks the build and I have to manually fix the imports.


Examples

image

image


 $ flutter doctor -v                                                                                                           [anaconda3-2018.12] /Users/dev
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.14.6 18G4032, locale en)
    • Flutter version 1.12.13+hotfix.8 at /Users/dev/Tools/flutter
    • Framework revision 0b8abb4724 (2 months ago), 2020-02-11 11:44:36 -0800
    • Engine revision e1e6ced81d
    • Dart version 2.7.0


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/dev/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Users/dev/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/192.6308749/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.8.4

[!] Android Studio (version 3.6)
    • Android Studio at /Users/dev/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/192.6308749/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[!] IntelliJ IDEA Ultimate Edition (version 2020.1)
    • IntelliJ at /Users/dev/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.44.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1

[✓] Connected device (1 available)
    • iPad • 6e87c8716559fb803296cb4e2e39466320cad14a • ios • iOS 13.4

! Doctor found issues in 2 categories.
@devoncarew
Copy link
Member

Thanks for the report! Closing as a dup of dart-lang/sdk#41641.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants