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?

1
5 comments

Have you tried latest version of inspectcode? Does it have the same problem?

0

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.

<Project Name="MainWindow">
<Issue TypeId="ResxNotResolved" File="F:\WarningCheckDir\183664642\mapviewer\Trunk\Sources\MainWindow\Properties\Resources.resx" Offset="5854-5874" Line="120" Message="Cannot resolve assembly 'System.Windows.Forms'"/>
<Issue TypeId="ResxNotResolved" File="F:\WarningCheckDir\183664642\mapviewer\Trunk\Sources\MainWindow\Properties\Resources.resx" Offset="5978-5984" Line="121" Message="Cannot resolve namespace 'System'"/>
<Issue TypeId="ResxNotResolved" File="F:\WarningCheckDir\183664642\mapviewer\Trunk\Sources\MainWindow\Properties\Resources.resx" Offset="6334-6340" Line="127" Message="Cannot resolve namespace 'System'"/>
<Issue TypeId="ResxNotResolved" File="F:\WarningCheckDir\183664642\mapviewer\Trunk\Sources\MainWindow\Properties\Resources.resx" Offset="6566-6572" Line="130" Message="Cannot resolve namespace 'System'"/>
</Project>
</Issues>
</Report>
 
If i delete the cache file inside system.windows.forms.xml folder inside XmlIndex the warning does not comes up after re-run.
 
I separated the cache location for multiple analysis running on my machine due to the error I mentioned in the post. Any idea why this is happeing?
0

No idea. Is it possible to create any repro for it ?

0

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

The OutputPath property is not set for project 'CivilGeo.ReportGenerator.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x64'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. at (780:5)
error	14-Sep-2020 10:08:51	Can't resolve reference CivilGeo.Application.Core: Reference wasn't resolved by MsBuild
error	14-Sep-2020 10:08:51	Can't resolve reference CommonServiceLocator: Reference wasn't resolved by MsBuild
error	14-Sep-2020 10:08:51	Can't resolve reference PresentationCore: Reference wasn't resolved by MsBuild
error	14-Sep-2020 10:08:51	Can't resolve reference PresentationFramework: Reference wasn't resolved by MsBuild
error	14-Sep-2020 10:08:51	Can't resolve reference Prism: Reference wasn't resolved by MsBuild
error	14-Sep-2020 10:08:51	Can't resolve reference Prism.Wpf: Reference wasn't resolved by MsBuild
error	14-Sep-2020 10:08:51	Can't resolve reference System: Reference wasn't resolved by MsBuild
error	14-Sep-2020 10:08:51	Can't resolve reference System.ComponentModel.Composition: Reference wasn't resolved by MsBuild
error	14-Sep-2020 10:08:51	Can't resolve reference System.Core: Reference wasn't resolved by MsBuild

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!

0

Does inspectcode 2020.2.2 produce more logs with option "--verbosity=TRACE" ?

0

Please sign in to leave a comment.