altcover icon indicating copy to clipboard operation
altcover copied to clipboard

Collection phase failed with an Error

Open bheemvennapureddy opened this issue 9 months ago • 4 comments

Passed:   201, Skipped:     0, Total:   201, Duration: 4 s - CuroAdmin.UnitTests.dll (net8.0)
  ... D:\a\1\s\tests\CuroAdmin.UnitTests\coverage.xml.0.acv (27,011b)
  3,578,198 visits recorded in 00:00:00.0440967 (81,144,349 visits/sec)
  A total of 3,578,198 visits recorded
  Coverage statistics flushing took 35.40 seconds
D:\a\.nuget\cache\Tiger\altcover\8.8.21\build\AltCover.proj(206,5): error :  [D:\a\1\s\tests\CuroAdmin.UnitTests\CuroAdmin.UnitTests.vbproj]
D:\a\.nuget\cache\Tiger\altcover\8.8.21\build\AltCover.proj(206,5): error : ERROR *** Collection phase failed [D:\a\1\s\tests\CuroAdmin.UnitTests\CuroAdmin.UnitTests.vbproj]
D:\a\.nuget\cache\Tiger\altcover\8.8.21\build\AltCover.proj(206,5): error :  [D:\a\1\s\tests\CuroAdmin.UnitTests\CuroAdmin.UnitTests.vbproj]
D:\a\.nuget\cache\Tiger\altcover\8.8.21\build\AltCover.proj(206,5): error :  [D:\a\1\s\tests\CuroAdmin.UnitTests\CuroAdmin.UnitTests.vbproj]
D:\a\.nuget\cache\Tiger\altcover\8.8.21\build\AltCover.proj(206,5): error : Value cannot be null. (Parameter 'value') [D:\a\1\s\tests\CuroAdmin.UnitTests\CuroAdmin.UnitTests.vbproj]
D:\a\.nuget\cache\Tiger\altcover\8.8.21\build\AltCover.proj(206,5): error :  [D:\a\1\s\tests\CuroAdmin.UnitTests\CuroAdmin.UnitTests.vbproj]
D:\a\.nuget\cache\Tiger\altcover\8.8.21\build\AltCover.proj(206,5): error : Details written to D:\a\1\s\tests\CuroAdmin.UnitTests\__Instrumented\AltCover-2024-05-08--17-30-08.log [D:\a\1\s\tests\CuroAdmin.UnitTests\CuroAdmin.UnitTests.vbproj]

##[error

Will add the log file

bheemvennapureddy avatar May 09 '24 13:05 bheemvennapureddy

@SteveGilham let me know if you need any more info on this

bheemvennapureddy avatar May 09 '24 18:05 bheemvennapureddy

Will do, if I can't figure out the failure path from the stack trace.

SteveGilham avatar May 09 '24 21:05 SteveGilham

Steve - if you can share some insights on this that would be helpful. Thanks , Have a great day

bheemvennapureddy avatar May 17 '24 12:05 bheemvennapureddy

Having taken a quick look, it's in the part of the process that takes source file names and compiles a list of the containing directories for the <sources> element of the document. This would happen if there are (synthetic) methods that have sequence points but don't report a source file.

Simple to fix/work-round in the code.

SteveGilham avatar May 22 '24 09:05 SteveGilham

@SteveGilham Sounds good thanks Steve

bheemvennapureddy avatar May 22 '24 16:05 bheemvennapureddy

@SteveGilham Can you share some insights on when this fix will be out?

bheemvennapureddy avatar May 30 '24 20:05 bheemvennapureddy

Should be resolved in release v8.8.74.

SteveGilham avatar May 31 '24 15:05 SteveGilham

Working as expected - thanks for fixing this.

bheemvennapureddy avatar Jun 07 '24 03:06 bheemvennapureddy