InspectCode.exe Warning: Inconsistent caches for file
Hi,
I am using InspectCode.exe in my build plan which can trigger multiple builds simultaneously. I am getting this warnings like these sometimes when i run inspectcode.exe.
Warning: Inconsistent caches for file GISFillHolesVM.cs: cached=35440 actual=34716. Please, describe how this file could be changed.
Warning: Inconsistent caches for file GISMergePolygonVM.cs: cached=32384 actual=28500. Please, describe how this file could be changed.
Warning: Inconsistent caches for file GISReshapePolylineVM.cs: cached=21398 actual=21333. Please, describe how this file could be changed.
CommandLine I am using -
"F:\WarningCheckDir\183664642\JB_ReSharper_CLT_2019.1.1\inspectcode.exe" --output="F:/WarningCheckDir/183664642\ResharperReportHMS.xml" --severity="WARNING" --profile="F:\WarningCheckDir\183664642\GeoHECHMS\Trunk\Sources\GHH_Dev.sln.DotSettings.user" "F:\WarningCheckDir\183664642\GeoHECHMS\Trunk\Sources\GHH_Dev.sln" --properties="configuration=LicensingHMS;platform=x64" --absolute-paths --caches-home="F:\WarningCheckDir\183664642\ReSharperCache"
As you can see that i am using --cache-home to have separate caches locations for each build and also insepectcode.exe is also dedicated to each build and not running from common location.
When this warning comes up, the count of Re# warnings are also incorrect. Can somebody explain why this is coming? Any solution/workarond?
Please sign in to leave a comment.
Have you tried latest version of inspectcode? Does it have the same problem?
No I have not.
Just adding up, as I have recently separated the cache location for multiple builds. this warning comes up in my code which is not possible as we do not change this file.
No idea. Is it possible to create any repro for it ?
I tried updating to latest version 2020.2.2, turns out my build got hung for more than 2 hours and the logs just shows-
Updating Caches...
Reverting back to 2019.1.1 I am having inconsistent cache issue (even though builds are running separately with separate cache locations).
Also, sometimes I also get below warnings
This comes when project was built in different configuration than what inspectcode.exe expects.
My projects are being build in same configuration and most of the times logs are clean, but sometimes things like this happen which breaks my automation.
Any help would be greatly appreciated.
Thanks!
Does inspectcode 2020.2.2 produce more logs with option "--verbosity=TRACE" ?