-
Notifications
You must be signed in to change notification settings - Fork 327
Android studio: freezing color scheme and main editor functions when updating lib files #6385
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
Comments
I have the same problem |
It's so annoying. |
Does this problem occur when the Flutter app is not running? Would it be possible for you to try older versions of the Flutter SDK to see if this problem was introduced recently? I'm asking about the Flutter SDK, not the plugin, because I suspect this is a performance issue in the Dart analyzer. |
More specifically, does this problem occur with Flutter SDK 3.3.2 or 3.3.1? Those have earlier versions of the Dart SDK. More info at https://docs.flutter.dev/development/tools/sdk/releases?tab=linux |
As you said i tried flutter 3.3.1 but it still freezes. |
Thanks for the info. |
This is a performance issue in the Dart analyzer. Please create a new issue here: https://github.com/dart-lang/sdk/issues If you add a link to the issue you create then I'll add the proper labels to bring it to the attention of the analyzer team. |
Thank you for creating an issue in dart-lang repo. |
No, but you could up-vote the one I made. |
@ArZargaryan thanks for filing an issue! Can you indicate whether you have any analyzer plugins in play? These would likely be in |
@srawlins
|
I consider these are related issues. |
No, it`s not a perfomance issue in the Dart analyzer. It's some kind of internal lock in the IDE. |
It's still happenning on my side and everthing is updated |
The same here |
Please see #3255 (comment). This syntax highlighting issue should be tracked at https://youtrack.jetbrains.com/issue/WEB-56916 and may be fixed by changing line ending encoding. |
for anyone having the problem, change your line ending from CRLF to LF (unix style). |
Uh oh!
There was an error while loading. Please reload this page.
Steps to Reproduce
just updating project lib file.
Here is the link to the video where you can see the problem.
When it happens, autocomplete doesn't work either.
About problem
In recent times android studio main functions doesn't work for a few seconds very often when updating any project file.
This is very annoying because you have to wait a few seconds(about 5) for the autocomplete to work, or to go to the resource.
This happens when i edit and save any lib file.
I thought my PC is weak and the problem is my PC, so i decided to build a new PC, but it turned out that this was not the problem.
My PC specs:
CPU- AMD Ryzen 7 5800x 8-cores 16-threads 3.8Ghz
GPU - Nvidia Geforce GTX 1650 DDR6 128bit 4gb
RAM - HyperX DDR4 3200Ghz 16gb * 2
Storage - Netac nv7000 (nvme 7gb/s) 1TB
I built this PC 2 weeks ago(all components are new).
I attached a screenshot where you can see that the color scheme is incorrect and when it looks like this, the most important functions that can be performed with the assistance of the editor become non-working
I want to note that the webstorm always works without such friezes.
Intellij IDEA freezes as well.
So i'm sure the problem is in the flutter plugin.
I also contacted android studio support, but they said that similar problems are related to the flutter plugin.
Version info
Studio Build: Android Studio Dolphin | 2021.3.1 Patch 1 - Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Version of Gradle Plugin: kotlin-gradle-plugin 1.7.20
Version of Gradle: 7.0.2
OS: Windows 11 PRO x64
[√] Flutter (Channel stable, 3.3.5, on Microsoft Windows [Version 10.0.22000.1098], locale en-US)
• Flutter version 3.3.5 on channel stable at D:\Sdk\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d9111f6402 (2 weeks ago), 2022-10-19 12:27:13 -0700
• Engine revision 3ad69d7be3
• Dart version 2.18.2
• DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at D:\Sdk\Android-SDK
• Platform android-33, build-tools 33.0.0
• ANDROID_HOME = D:\Sdk\Android-SDK
• Java binary at: D:\Softwares\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.3)
• Android Studio at D:\Softwares\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[√] IntelliJ IDEA Ultimate Edition (version 2022.2)
• IntelliJ at D:\Softwares\IntelliJ IDEA 2022.2.3
• Flutter plugin version 70.2.5
• Dart plugin version 222.4345.14
[√] Connected device (4 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 12 (API 31) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.1098]
• Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.88
• Edge (web) • edge • web-javascript • Microsoft Edge 90.0.818.66
[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.
The text was updated successfully, but these errors were encountered: