anyone else see what I am seeing in Android Studio...
# random
a
anyone else see what I am seeing in Android Studio (maybe intellij too) on a regular basis on a really large project with 200+ modules - when there are symbols not imported in the file, the file refuses to syntax highlight or update until either: a. You build the project to surface the actual errors b. fix the imports ? pretty frustrating to see on a regular basis
for example,
RexAction
is not imported and thus syntax highlighting completely breaks
k
Invalidate caches and restart usually fixes that for me FWIW. Still annoying to need to do it though.
a
do you think its related to ktlint, detekt, or other plugins as well? or a kotlin issue. i.e. did you see this at twit?
k
yep, saw this at Twitter sporadically too (1000+ modules)...invalidate caches generally would fix it. Plugins definitely slow down the UI..e.g., we disabled the dagger graph plugin because it slugged and blocked code highlighting from happening.
a
ohh maybe thats the issue. if it is the dagger plugin
k
We had our own DI system so it was irrelevant. But it was definitely slow as hell...
a
could be why app component, and fragment binding modules are unbelievably slow even on an M1… ill try that suggestion.
👍 1
c
This happens to me in fairly small projects too FWIW
a
Do you have the dagger plugin active?
c
like gradle plugin or Intellij plugin?
a
Intellij
I wonder if the kotlin front end compiler (?) is choking or the ide plug-ins that manipulate the state of code for syntax highlighting is what is causing it
Or it runs in same process loop causing syntax highlighting to get paused