Duplicate Finder .Net report shows "Null"

Hi!

I setup DuplicateFinder .Net as a build step.

Duplicate Finder finds some duplicates and display the number of duplicates.

BUT, if we go to the "Duplicates" tab, the duplicate fragment shows "null" (in red)

We are running TeamCity version 6.0.3 (build 15925)

Please see screenshot, below:

DuplicateFinder_Null.jpg

Here is the build log of this step:

[03:08:28]: Step 3/3 (16s)
[03:08:28]: [Step 3/3] Using runner: dotnet-dupfinder
[03:08:28]: [Step 3/3] Searching for duplicates
[03:08:28]: [Step 3/3] Starting: C:\BuildAgent\plugins\dotnet-dupfinder\bin\dupfinder.exe --show-stats --show-text --discard-cost=70 --debug -e **/*generated*.cs -i Src/Emc.Dcc/_Root/Uim*/**/*.cs -o 05A1B22A-DE6E-49ae-AA30-DC52A074EF22\result.xml
[03:08:28]: [Step 3/3] in directory: D:\DCC
[03:08:29]: [Step 3/3] JetBrains Duplicates Finder for .NET. Version 0.0.0.0
[03:08:29]: [Step 3/3] Running in 32-bit mode, .NET runtime 2.0.50727.3620 under Microsoft Windows NT 5.1.2600 Service Pack 3
[03:08:29]: [Step 3/3] Running with options:
[03:08:30]: [Step 3/3] <DupFinderOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
[03:08:30]: [Step 3/3] <Debug>true</Debug>
[03:08:30]: [Step 3/3] <DiscardCost>70</DiscardCost>
[03:08:30]: [Step 3/3] <DiscardFieldsName>false</DiscardFieldsName>
[03:08:30]: [Step 3/3] <DiscardLiterals>false</DiscardLiterals>
[03:08:30]: [Step 3/3] <DiscardLocalVariablesName>false</DiscardLocalVariablesName>
[03:08:30]: [Step 3/3] <DiscardTypes>false</DiscardTypes>
[03:08:30]: [Step 3/3] <IdlePriority>false</IdlePriority>
[03:08:30]: [Step 3/3] <ExcludeFiles>
[03:08:30]: [Step 3/3] <Pattern>**/*generated*.cs</Pattern>
[03:08:30]: [Step 3/3] </ExcludeFiles>
[03:08:30]: [Step 3/3] <ExcludeFilesByStartingCommentSubstring />
[03:08:30]: [Step 3/3] <ExcludeCodeRegionsByNameSubstring />
[03:08:30]: [Step 3/3] <IncludeFiles>
[03:08:30]: [Step 3/3] <Pattern>-i</Pattern>
[03:08:30]: [Step 3/3] <Pattern>Src/Emc.Dcc/_Root/Uim*/**/*.cs</Pattern>
[03:08:30]: [Step 3/3] </IncludeFiles>
[03:08:30]: [Step 3/3] <NormalizeTypes>false</NormalizeTypes>
[03:08:30]: [Step 3/3] <OutputFile>05A1B22A-DE6E-49ae-AA30-DC52A074EF22\result.xml</OutputFile>
[03:08:30]: [Step 3/3] <ShowStats>true</ShowStats>
[03:08:30]: [Step 3/3] <ShowText>true</ShowText>
[03:08:30]: [Step 3/3] </DupFinderOptions>
[03:08:36]: [Step 3/3] DEBUG Will output to 05A1B22A-DE6E-49ae-AA30-DC52A074EF22\result.xml
[03:08:36]: [Step 3/3] DEBUG [PMM] Add project: Miscellaneous Files, provider: JetBrains.ReSharper.Psi.Impl.MiscFilesProjectPsiModuleProviderFactory+MiscFilesProjectPsiModuleProvider
[03:08:36]: [Step 3/3] DEBUG [PMM] Add project: &, provider: JetBrains.ReSharper.Psi.Impl.SolutionFolderPsiModuleProviderFactory+SolutionFolderPsiModuleProvider
[03:08:36]: [Step 3/3] DEBUG [PMM] Add: JetBrains.Annotations, Version=6.0.2008.71, Culture=neutral, PublicKeyToken=d650307557ffde1d
[03:08:36]: [Step 3/3] DEBUG [PMM] Add: mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
[03:08:37]: [Step 3/3] DEBUG [JetDispatcher] Thread ApplicationMutices:7 created a synchro context marshaller.
[03:08:37]: [Step 3/3] DEBUG [JetDispatcher] Thread ApplicationMutices:7 pwned.
[03:08:37]: [Step 3/3] DEBUG [JetDispatcher] Thread <NULL>:5 created a synchro context marshaller.
[03:08:37]: [Step 3/3] DEBUG [JetDispatcher] Thread <NULL>:5 pwned.
[03:08:37]: [Step 3/3] DEBUG Scanning file system
[03:08:38]: [Step 3/3] DEBUG Matched files:
[03:08:38]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\MainControl.xaml.cs
...
[03:08:38]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimScriptSample\Properties\AssemblyInfo.cs
[03:08:38]: [Step 3/3] DEBUG Found 192 files by patterns
[03:08:38]: [Step 3/3] DEBUG Searching for duplicates
[03:08:38]: [Step 3/3] DEBUG Collecting fragments
[03:08:39]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimDesignerCore\DataAccess\DocumentEventArgs.cs (0/192) (ManagedMem 5MB)
...
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimScriptSample\ScriptTestUIMDocBestBerryCompany.cs (191/192) (ManagedMem 10MB)
[03:08:43]: [Step 3/3] DEBUG Top files by collected fragments:
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimScriptSample\ScriptTestUIMDocBestBerryCompany.cs - 1030 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\obj\Debug\UI\DocumentRibbon.g.cs - 511 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimDesignerCore\UI\Lib\FormCanvas\FormCanvas.cs - 352 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\UI\Lib\FormCanvas\FormCanvas.cs - 327 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\obj\Debug\UI\NewDocumentWindow.g.cs - 322 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\UIModel\DocumentViewModel.cs - 308 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\obj\Debug\UI\AllDocumentsTab.g.cs - 278 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimDesignerCore\UI\Lib\RichTextBoxWithIntellisense\ExpressionEditorForm.Designer.cs - 233 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimDesignerCore\UI\Lib\FormCanvas\FormGridDecorator.cs - 224 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\UI\Lib\FormCanvas\FormGridDecorator.cs - 224 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\obj\Debug\UI\ValidationRulesView.g.cs - 221 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\UIModel\SectionViewModel.cs - 178 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimDesignerCore\UI\Lib\GridViewSort.cs - 151 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UIMDesigner\UIModel\FieldControlViewModel.cs - 132 fragments
[03:08:43]: [Step 3/3] DEBUG D:\DCC\Src\Emc.Dcc\_Root\UimRecognitionDesigner\obj\Debug\UI\NewProjectWindow.g.cs - 116 fragments
[03:08:43]: [Step 3/3] DEBUG GC.GetTotalMemory() after hashing stage = 10,2 Mb
[03:08:43]: [Step 3/3] DEBUG Sorting duplicates
[03:08:43]: [Step 3/3] DEBUG Writing report
[03:08:43]: [Step 3/3] INFO Total time: 00:00:11.7031250
[03:08:43]: [Step 3/3] INFO User time: 00:00:09
[03:08:43]: [Step 3/3] INFO Peak virtual memory: 194MB
[03:08:43]: [Step 3/3] INFO Peak working set: 76MB
[03:08:43]: [Step 3/3] Process exited with code 0
[03:08:43]: [Step 3/3] Publishing artifacts
[03:08:43]: [Publishing artifacts] Paths to publish: [05A1B22A-DE6E-49ae-AA30-DC52A074EF22/result.xml]
[03:08:43]: [Publishing artifacts] Sending files
[03:08:43]: [Step 3/3] Importing results
[03:08:47]: [Step 3/3] Processing data
[03:08:43]: [Step 3/3] Sending fragments...
[03:08:43]: [Step 3/3] Sending duplicates...
[03:08:48]: [Step 3/3] updating diff...
[03:08:48]: [Step 3/3] Duplicates: 117 (+0 -0)
[03:08:46]: Publishing artifacts
[03:08:46]: [Publishing artifacts] Paths to publish: [teamcity-info.xml]
[03:08:46]: [Publishing artifacts] Sending files
[03:08:50]: Build finished
[03:08:50]: Total: 358 (+0 -0) Errors: 131 (+0 -0)


11 comments

Hi Gwenael

To show file content TeamCity server needs to read it from VCS, but for some reason it fails.
Please post screenshots of

  • VCS settings in the build configuration
  • VCS checkout rules in this configuration
  • settings of attached VCS roots

and teamcity-vcs.log

Thanks

0

Thanks Michael for your help.

Note that at the same project level, I have another build working just fine with retrieving the Duplicates.

The build causing issue has 2 VCS attached.

I tried to merge into only one VCS, but no luck, I am still getting the "null" when selecting any duplicate file.

So please find the screenshot of our VCS Settings:

VCS_Settings.jpg

VCS_DCC.jpg

VCS_API.jpg

Sorry I didn't find teamcity-vcs.log

Thanks again for your help.

Gwen

0

Hi

I see you're using Perforce. We cannot reproduce this problem yet, but made several related fixes for Perforce support in TeamCity 6.5.
We had another customer who reported simillar issue recently, and seems it has been fixed in this new version.

Thanks

0

Michael,

Following your advice above, I have upgraded to Team City 6.5.4 and I still see this problem. I am also using perforce.

I am wondering if team city is using incorrect slashes. I think perforce expects \, but the log file shows /. Its just a guess.

I have VCS debug logging switched on, but it doesn't seem to give the actual perforce command being used so I cannot confirm if this is the issue. The log file extracts are below:

In the duplicate's artifacts xml:

<FileName>netprojects\Services\Charting\SeriesService.cs</FileName>

On team city build page, duplicates tab:

#1 SeriesService.cs:45 (netprojects/Services/Charting/)

In teamcity-vcs.log:

[2011-10-03 12:59:26,917]  DEBUG [1&startLine=45 ] -      jetbrains.buildServer.VCS - File content is requested for file 'netprojects/Services/Charting/SeriesService.cs' in build #70 {build id=5269}

In stdout_20111001.log:

[2011-10-03 12:59:26,917]   WARN - or.DuplicatesTabTextController - Unexpected exception occured: null

Thanks.

0

Hi Norman

Reproduce the issue within Duplicates Finder and go to Changes tab for this problem build, is source file content diplayed correctly there?

0

Thanks for your response.

I can see the contents of the same file which shows null in the duplicates tab. Both current and previous versions are displayed side-by-side on the changes tab.

0

Norman, thank you for quick response.

We had this issue reported few times before, but as far as we know - upgrade to version 6.5 helped for those customers.
Can I ask you to provide us details:
screnshots of

  • VCS settings in the build configuration
  • VCS checkout rules in this configuration
  • settings of attached VCS roots

and teamcity-vcs.log

Michael

0

Sorry for the delay. Please see the attached file containing the information you have asked for.



Attachment(s):
team_city_duplicates_info.txt.zip
0

Michael - have you had chance to look into this? Thanks.

0

Hello Norman

I'm sorry for the delay. We'll need a couple of days more to research this issue.

Michael

0

Michael - have you had chance to look into this? Thanks.

0

Please sign in to leave a comment.