flutter-intellij
flutter-intellij copied to clipboard
Hightlight not work on flutter sdk code
The project code is highlighted, the sdk source code is not highlighted.
project code
flutter sdk source code
Version info
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.0.0, on Mac OS X 10.14.3 18D109, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
! CocoaPods out of date (1.5.0 is recommended).
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart
side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To upgrade:
brew upgrade cocoapods
pod setup
[✓] Android Studio (version 3.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
[✓] VS Code (version 1.31.1)
[✓] Connected device (1 available)
! Doctor found issues in 2 categories.
Hmm, I see highlighting in both examples in those screenshots. Can you provide a bit more context, or perhaps show a file in the sdk, including a build() method?
@devoncarew, the 2nd screenshot (scaffold.dart) contains only lexer-level highlighting (it comes from the Dart plugin lexer) but no highlighting from Analysis Server. In the latter case, we'd see references in doc comments (like [Scaffold]
) highlighted.
So far I failed to reproduce the issue.
As @alexander-doroshko say, the 2nd screenshot is the source file in sdk
I'm not able to reproduce either.
@voiddog: is updating your Flutter install an option? I'd be curious if this persists on the latest?
@pq Updating the flutter sdk or intelij idea flutter plugin?
Sorry @voiddog, I meant you Flutter SDK.
https://flutter.dev/docs/development/tools/sdk/upgrading#upgrading-the-flutter-sdk-and-packages
Thanks for following up!
I try to update my flutter to v1.2.0, but did not work.
Here is my flutter doctor:
[✓] Flutter (Channel unknown, v1.2.0, on Mac OS X 10.14.3 18D109, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
! CocoaPods out of date (1.5.0 is recommended).
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart
side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To upgrade:
brew upgrade cocoapods
pod setup
[!] Android Studio (version 3.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
[✓] VS Code (version 1.31.1)
[!] Connected device
! No devices available
I can jump to the defintion by ctrl+click
, but the hightlight not work.
Any progress?
I found some different things below:
The picture left doesn't have
Dart Packages
(witch sdk source code is not highlighted), and the right project hasDart Packages
. The flutter sdk source code is inDart Packages
The left project is a flutter plugin
, right is a flutter application
This can be only reproduced with plugin
, neither package
nor project
has the same issue.
Plugin | Others |
---|---|
![]() |
![]() |
FYI @pq