Skip to content

Hightlight not work on flutter sdk code #3234

Open

Description

@voiddog

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.

Activity

  1. devoncarew commented on Mar 1, 2019

    @devoncarew
    Contributor

    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?

  2. alexander-doroshko commented on Mar 2, 2019

    @alexander-doroshko
    Contributor

    @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.

  3. voiddog commented on Mar 2, 2019

    @voiddog
    Author

    As @alexander-doroshko say, the 2nd screenshot is the source file in sdk

  4. pq commented on Mar 4, 2019

    @pq
    Collaborator

    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?

  5. added this to the On Deck milestone on Mar 4, 2019
  6. added
    waiting for customer response
    on Mar 4, 2019
  7. voiddog commented on Mar 8, 2019

    @voiddog
    Author

    @pq Updating the flutter sdk or intelij idea flutter plugin?

  8. pq commented on Mar 8, 2019

    @pq
    Collaborator
  9. voiddog commented on Mar 9, 2019

    @voiddog
    Author

    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.

  10. voiddog commented on Apr 2, 2019

    @voiddog
    Author

    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 has Dart Packages. The flutter sdk source code is in Dart Packages

  11. voiddog commented on Apr 2, 2019

    @voiddog
    Author

    The left project is a flutter plugin, right is a flutter application

  12. AlexV525 commented on Feb 22, 2022

    @AlexV525
    Member

    This can be only reproduced with plugin, neither package nor project has the same issue.

    Plugin Others
    image image

    FYI @pq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions