SonarLint 2.0 for Intellij - Background task hangs indefinately...

759 views
Skip to first unread message

ch...@romack.com

unread,
Apr 22, 2016, 1:07:49 PM4/22/16
to SonarLint
Since upgrading to 2.0, I have an issue where the sonarlint background task hangs while analyzing 1 of the files in my project.  Any attempts to stop the background task are futile.  Intellij will inevitably stop responding and requires a restart.

Interestingly enough the class being analyzed lives in the generated-sources directory which should be excluded from analysis?

Has anyone else observed/encountered this?

I am running:
Intellij 15.0.3 build #IU-143.1821
JRE 1.8.0_40-release-b119 x86_64 
SonarLint 2.0

Thanks

Duarte Meneses

unread,
Apr 25, 2016, 3:38:27 AM4/25/16
to ch...@romack.com, SonarLint
Unfortunately generated sources are analysed if they are included as sources in IntelliJ.
Does the analysis takes too long, and this is why you try to cancel it?

The cancelling is done on a best effort basis, it might not always work. We plan to re-do completely soon.

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/5301ab97-0f32-49fe-b19d-0ba47a1266bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Duarte MENESES | SonarSource

ch...@romack.com

unread,
Apr 25, 2016, 9:18:09 PM4/25/16
to SonarLint, ch...@romack.com
Duarte -

The analysis never completes... it just continues and eventually Intellij becomes unresponsive and requires a re-start.  It was happening so often that I have had disable "automatically" triggered analysis. 

Regarding generated sources, Intellij makes a distinction between "sources" and "generated sources", but I guess y'all are not able to determine that from within the plugin?
Message has been deleted

eric....@gmail.com

unread,
Nov 21, 2017, 5:58:13 AM11/21/17
to SonarLint
Hi,

it is an old issue, but I just had the same problem as I read your post. So maybe this helps someone else who reads it. On my side it finally helped
  • to clean my project what removed all generated files. IntelliJ stopped the scan after a few seconds (I currently have version 2017.2.6).
  • Rebuild the project to create the files again (rebuild was triggered outside from a console)
  • Synchronize the Project in IntelliJ
  • Restart IntelliJ. It then recognized the generated files again and performed the SonarLint analysis, but this just took less than a minute and finished successfully. Maybe sth. was "weird" with the previous generated files...  I don't know.
Best Regards,
Eric
Reply all
Reply to author
Forward
0 new messages