Skip to content

Highlighting detekt findings randomly stop working #530

@Chebulex

Description

@Chebulex

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions