Skip to content

Syntax highlighting not working with new dart files in Android Studio #4397

@CathalButler

Description

@CathalButler

Hi,

I recently updated to Android Studio 3.6 running on Linux. After the updated, I started up Android Studio to work on my flutter project and I was asked to update the Dart & Flutter plugins for Android Studio so I did just that. After completing the updates I tried to continue working on my project but now I'm having an issue with new dart files when I make them.

The syntax highlighting is not working at all with the new dart files as seen in the first photo.Screenshot_20200226_140236

In the second one, it seems the syntax highlighting is only working with return types, method types and classes
Screenshot_20200226_141235

Iv tried disabling the plugins, restart the IDE and then enabling them again with zero luck. I have also disabled my theme plugin in case maybe that is what was causing it but it doesn't seem to be.

Here is my flutter doctor -v report

[✓] Flutter (Channel dev, v1.15.3, on Linux, locale en_IE.UTF-8)
• Flutter version 1.15.3 at /home/cathal/Development/flutter
• Framework revision 67826bdce5 (2 weeks ago), 2020-02-10 14:59:32 -0800
• Engine revision 6158f03ef5
• Dart version 2.8.0 (build 2.8.0-dev.8.0 514a8d4c84)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/cathal/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/cathal/Android/Sdk
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 3.6)
• Android Studio at /opt/android-studio
• Flutter plugin version 43.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
• IntelliJ at /opt/intellij-idea-ultimate-edition
• Flutter plugin version 43.0.3
• Dart plugin version 193.6494.35

[✓] Connected device (1 available)
• Web Server • web-server • web-javascript • Flutter Tools

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions