Dart analyzer and Intellij IDEA is once in a while unusable - and Intellij IDEA just becomes nothing but a raw text editor #45723
Labels
analyzer-server
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
area-intellij
Tracking issues for the Dart IntelliJ plugin.
P2
A bug or feature request we're likely to work on
type-performance
Issue relates to performance or code size
Hi thanks for the lib! But such behavior of dart analyzer & intellij idea is driving me crazy...
I write Flutter program using Intellij IDEA (with dart & flutter plugins), but the experience is very painful and even unuseable recently :( Let me try to explain it in detail in order to seek the root cause easier:
Firstly, once in a while, the following happens: The syntax highlight disappeaers (every word is white except for keywords; but you know, normally there are many colors, such as purple for fields). The jumping does not work completely. For example, originally I can
cmd+B
on a class/method name to jump to the definition of the class/method, but now I cannot. In short, almost everything does not work and Intellij IDEA just work as if it is a pure text editor!Example screenshot:
Secondly, I also observe that, when the things above happen, the code formatter also behaves very strangely. When I trigger "format the file", it takes many seconds, and the finally formatted file is strange, in a format that is contrary to the normal format required by Flutter. I guess it is like formatting just partially, but I am not sure. For example, in the screenshot above, I originally added just one or two lines of code, and format it, and it looks like what is in the screenshot. You know, the standard formatting is completely not like this.
Here is another example of strange formatting. Left hand side is the code formatted when flutter behaves normally; right hand side is formatted when it is strange.
Thirdly, such case sometimes last for a few minutes, sometimes even >15 minutes or longer. I have tried the following, but sometimes it works, sometimes it does not work:
exit intellij, delete the whole
~/.dartServer
folder (about 1GB), restart intellijwait for minutes, even for half an hour
try to continue programming as if intellij is a raw text editor (or worse)
Dart SDK Version latest
Whether you are using Windows, MacOSX, or Linux (if applicable) macos
Whether you are using Chrome, Safari, Firefox, Edge (if applicable) no, intellij
more info that is possbly related:
the analysis-driver folder is about 1GB
I have read: flutter/flutter-intellij#4012 , flutter/flutter-intellij#4142 , #28383 , etc
The text was updated successfully, but these errors were encountered: