flutter / flutter/flutter-intellij

android studio do not highlight the flutter`s classes.

Open
#3,083 7 comments 0 reactions 0 assignees View on GitHub
topic-editing
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

@winner484 commented on [Sat Dec 22 2018](https://github.com/flutter/flutter/issues/25688)

![Image](https://i.stack.imgur.com/Uqz2Q.png)

this is a demo from flutter doc.
but my android studio can not highlight the flutter`s class. what i get is down below.

![Image](https://i.stack.imgur.com/iNRTU.png)

How can i do to highlight the flutter`s classes? thank you!

---

@zoechi commented on [Sat Dec 22 2018](https://github.com/flutter/flutter/issues/25688#issuecomment-449576973)

You shouldn't need to do anything.

Have you tried restarting Android Studio?
Have you tried creating a new project using `flutter create foo` and check if it happens there as well?

Please add the output of `flutter doctor -v`.

---

@winner484 commented on [Sun Dec 23 2018](https://github.com/flutter/flutter/issues/25688#issuecomment-449607116)

> You shouldn't need to do anything.
>
> Have you tried restarting Android Studio?
> Have you tried creating a new project using `flutter create foo` and check if it happens there as well?
>
> Please add the output of `flutter doctor -v`.

yes, tried restarting AS, tried using IJ, tried creating new project. flutter doctor -v looks good.

---

@zoechi commented on [Sun Dec 23 2018](https://github.com/flutter/flutter/issues/25688#issuecomment-449629599)

> flutter doctor -v looks good.

is the least relevant part of the output

Please add the output of `flutter doctor -v`.

---

@AlexeyPoldeo commented on [Tue Jan 15 2019](https://github.com/flutter/flutter/issues/25688#issuecomment-454282299)

Does not work for me as well
```
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-BY)
• Flutter version 1.0.0 at /Users/a/flutter
• Framework revision 5391447fae (7 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/a/Library/Android/sdk
• Android NDK at /Users/a/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
✗ Android license status unknown.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.3.3
• Dart plugin version 182.5124
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
• IntelliJ at /Applications/IntelliJ IDEA.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.io/intellij-setup/#installing-the-plugins

[!] IntelliJ IDEA Community Edition (version 2018.2.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.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.io/intellij-setup/#installing-the-plugins
```

---

@zoechi commented on [Tue Jan 15 2019](https://github.com/flutter/flutter/issues/25688#issuecomment-454283216)

Try deleting `~/.dartServer/.analysis-driver/`

---

@AlexeyPoldeo commented on [Tue Jan 15 2019](https://github.com/flutter/flutter/issues/25688#issuecomment-454284385)

No effect - still no highlighting

screen shot 2019-01-15 at 09 44 27

---

@AlexeyPoldeo commented on [Tue Jan 15 2019](https://github.com/flutter/flutter/issues/25688#issuecomment-454285171)

What does it mean? I've just provided more details.

---

@zoechi commented on [Tue Jan 15 2019](https://github.com/flutter/flutter/issues/25688#issuecomment-454286139)

@AlexeyPoldeo no worries, just a bit an overzealous bot. The bot only considers responses of the original issue author.

Have you tried restarting the IDE or perhaps even the machine?

---

@AlexeyPoldeo commented on [Tue Jan 15 2019](https://github.com/flutter/flutter/issues/25688#issuecomment-454287971)

Just restarted my mac - still does not work.

I've installed plugin on Android Studio and IntelliJ IDEA (both are recent version), it does highlight on both places.

---

@AlexeyPoldeo commented on [Tue Jan 15 2019](https://github.com/flutter/flutter/issues/25688#issuecomment-454288613)

I can type and autocompletion works fine, including Flutter classes.
Outline works.

screen shot 2019-01-15 at 10 06 18

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.