Deleted maven module-folders are recreated by Sonarlint when IntelliJ is started

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version: / IntelliJ 2023.3 (also present in 2023.2+)
  • Programming language you’re coding in: Java
  • Is connected mode used: no
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question:

  • A few months ago we deleted a module from our multi-module maven project
  • However this module keeps reappearing when starting IntelliJ with the SonarLint Plugin
  • Only a .iml file is created inside the module directory with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
  <component name="SonarLintModuleSettings">
    <option name="uniqueId" value="<someUUID>" />

To fix the problem I already tried:

  • Disabling Sonarlint
  • Restaring the IDE
  • Deleting %USERPROFILE%.sonarlint
  • Deleting .idea\sonarlint
  • Deleting/Invalidating all caches in IntelliJ
  • Re-Enabling the Sonarlint plugin again

But the modules are still recreated after starting IntelliJ

Hello @AB-xdev,

We are already aware of this problem. A fix should land at some point, to be transparent it’s not in our immediate priorities.

Thanks for reporting this

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.