spotbugs / spotbugs

SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.

Home Page:https://spotbugs.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eclipse plug-in: false warning about not built project?

marco-brandizi opened this issue · comments

When using the Eclipse plug-in, on some projects, I get a warning like: "You are going to run SpotBugs analysis on a not compiled or partially compiled project".

Then I'm offered to continue nonetheless, however, if SpotBugs doesn't report any bug, I'm no longer sure if there aren't any or if it's SB that couldn't terminate its analysis, as the warning says (I have much experience as a developer, but even more of the Murphy law, so to me, such a situation sounds like too good to be real...).

Whatever it is, this message shouldn't appear when the project is indeed built and without errors (ie, in the 'Problems' box).

Having looked at the code, and this check on description.isAutoBuilding() is suspicious: I have the 'auto-build' option off (cause I have projects with tons of dependencies and I can't allow Eclipse to rebuild them all the time), but the projects causing the warning above are already built when I run SB.

Details:

SpotBugs version: 4.8.3.r202312121044-1e42fc9
Eclipse version: 2023-12 (4.30.0) Build id: 20231201-2043
OS: macOS 14.3.1 (23D60)

Thanks for opening your first issue here! 😃
Please check our contributing guideline. Especially when you report a problem, make sure you share a Minimal, Complete, and Verifiable example to reproduce it in this issue.