Is connected mode used: yes, but disconnecting does not solve the problem
Connected to SonarCloud or SonarQube (and which version): * Community Edition
Version 8.9.10 (build 61524)
And a thorough description of the problem / question:
I suppose since the last update of the SonarLint plugin, or since i tried connecting sonarqube using a token instead of my login this behaviour started.
To each of the *.iml module config file a section is suddenly written:
Disabling the SonarQube connection and restarting the IDE (latest Intellij Idea) does not resolve the problem.
This affects a LOT of files that are shared with a LOT of developers and we definitely do NOT want to commit this in SVN, if this cannot be fixed I think I will need to stop using SonarLint…
I have to agree here. The plugin writing to this file needs to be configurable. Especially if the IDE isn’t connected to the backend service. What about adding it to another file within the .idea folder?
Sorry for the late response. We introduced this change in a recent version (8.5) without thinking about this consequence. We understand it is annoying so we will change that for the next release (ticket). In the meantime, you can indeed downgrade to version 8.4 from the Marketplace.
Sorry for the inconvenience and thanks for raising this
Unfortunately, we had other higher-priority topics in the last few months. We still plan to fix it, but it won’t realistically happen before Q1 2024. Sorry for the inconvenience
Unfortunately, still no update to provide, we’ve been busy with other more important topics. It’s still on our radar, I just don’t know when we will get to it. Let me re-discuss with the team
For me, this topic is probably more important than anything else you guys are doing. Having all modules with changes that should not be committed is major pain for me:
As a developer - I have to move them to changelist that should not be committed
It causes conflicts when other developers commit the changes and I merge from them
As a code reviewer I have to ask others to revert these changes if present in merge requests
All in all - this causes waste of time for great number of developers that could be better spent in real development activities.
To give an update on this topic, we understand the pain it provides and have spent some time bootstrapping a solution to the problem. We will try to provide a fix in the upcoming release; you can keep an eye on the progress via this ticket that was mentioned earlier.
We just released SonarLint 10.4.2, which includes a workaround to this issue. We do not generate a UUID per module anymore as we now rely on our already existing sonarlint.xml in the .idea folder to store the necessary information (which does not rely on UUID anymore, but on tracking the module name changes).
Please have a try and see if the problem got resolved. Note that if you have resolved some anticipated issues (an issue existing locally only and not yet found on SonarQube/SonarCloud), they will be lost when switching to the new version.