https://kotlinlang.org logo
Title
a

agrosner

01/26/2023, 3:27 PM
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

kenkyee

01/26/2023, 3:29 PM
Invalidate caches and restart usually fixes that for me FWIW. Still annoying to need to do it though.
a

agrosner

01/26/2023, 3:30 PM
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

kenkyee

01/26/2023, 3:31 PM
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

agrosner

01/26/2023, 3:31 PM
ohh maybe thats the issue. if it is the dagger plugin
k

kenkyee

01/26/2023, 3:31 PM
We had our own DI system so it was irrelevant. But it was definitely slow as hell...
a

agrosner

01/26/2023, 3:32 PM
could be why app component, and fragment binding modules are unbelievably slow even on an M1… ill try that suggestion.
c

Colton Idle

01/27/2023, 9:51 PM
This happens to me in fairly small projects too FWIW
a

agrosner

01/27/2023, 9:57 PM
Do you have the dagger plugin active?
c

Colton Idle

01/27/2023, 10:01 PM
like gradle plugin or Intellij plugin?
a

agrosner

01/27/2023, 10:45 PM
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