-
-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Expected Behavior
Detekt findings are always highlighted / underlined in the Android Studio project.
Observed Behavior
Detekt findings tend to be not highlighted / underlined.
Steps to Reproduce
Unknown
Context
This is an issue I have been experiencing since Android Studio Meerkat and still am experiencing in Android Studio Narwhal. To be fair, I think it might be something with my setup or Android Studio rather than detekt itself, but since I didn't find anything related in the issues, I thought I still might get some help here.
Now for the issue: As described above the highlighting of detekt issues tends to just not work for unknown reasons. I always notice this when my Bitrise builds fail due to detekt. Running the detekt command in gradle or just from the context menu also displays the issues correctly with their specific positions, but the highlighting is just not there. Be aware that he highlighting setting is still enabled, though and baseline and config files are attached correctly.
Usually a restart of the entire IDE fixes the issue, but I am unaware of what causes it. One of my theories was switching the theme of the IDE, but it still happened after I stopped doing that. Another one might be the file not having the the "up-to-date" state, but instead a "Refresh needed" (but even after rebuilding that state doesn't change).
Your Environment
- Version of detekt used: 2.4.3
- Version of Gradle used (if applicable): 8.10
- Operating System and version: Macbook Pro M3
- Android Studio Version: 2025.1.4 (Narwhal 4 Feature Drop)