Skip to content

Fine Code Coverage panel's content is blank - FCC output panel has exceptions: Error creating tracked lines #457

@Camios

Description

@Camios

Installed product versions

  • Visual Studio: 2022, 17.11.4
  • This extension: 1.1.223

Description

Trying to use FCC on a large solution. I've run the unit tests, but the Fine Code Coverage panel is blank (apart for toolbar).
On the Output panel, the FCC output shows a lot of problems, but does appear to generate text-based coverage percentages.

Steps to recreate

  1. I installed the latest version of the FCC extension
  2. Note: I don't know if I still have default settings (you can't tell because the Options shows everything as bold which usually means it has been modified). Is there a way to reset them?
  3. I run unit tests from Test Explorer on a C# class library
  4. I check the Fine Code Coverage window

Current behavior

FCC output panel shows exceptions

<snip>
024-10-17T14:02:59: Writing report file '<path>\Bin\Win64-Dll\debug\fine-code-coverage\coverage-tool-output\index.html'
2024-10-17T14:02:59: Report generation took 0.5 seconds
Fine Code Coverage 17/10/2024 2:02:59 PM: Processing cobertura
Fine Code Coverage 17/10/2024 2:03:00 PM: Processing report
Fine Code Coverage 17/10/2024 2:03:00 PM: ================================== DONE ==================================
Fine Code Coverage 17/10/2024 2:03:00 PM: Error creating tracked lines for C:\Users\<user>\AppData\Local\Temp\blpp14e4..cs
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at FineCodeCoverage.Editor.DynamicCoverage.ContainingCodeTrackedLinesBuilder.Create(List`1 lines, ITextSnapshot textSnapshot, String filePath)
   at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.CreateTrackedLines(Boolean initial)
   at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.TryCreateTrackedLines(Boolean initial)
Fine Code Coverage 17/10/2024 2:03:00 PM: Error creating tracked lines for Temp.txt
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at FineCodeCoverage.Editor.DynamicCoverage.ContainingCodeTrackedLinesBuilder.Create(List`1 lines, ITextSnapshot textSnapshot, String filePath)
   at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.CreateTrackedLines(Boolean initial)
   at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.TryCreateTrackedLines(Boolean initial)
Fine Code Coverage 17/10/2024 2:03:00 PM: Error creating tracked lines for Temp.txt
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at FineCodeCoverage.Editor.DynamicCoverage.ContainingCodeTrackedLinesBuilder.Create(List`1 lines, ITextSnapshot textSnapshot, String filePath)
   at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.CreateTrackedLines(Boolean initial)
   at FineCodeCoverage.Editor.DynamicCoverage.BufferLineCoverage.TryCreateTrackedLines(Boolean initial)

Note: I can click on the Cobertura or Hotspot icons in the Fine Code Coverage panel and it opens XML reports.

I'll try to remember to send you an email with the log

Note: on a different, tiny solution, with no unit tests, the fine code coverage panel is at least showing the expected tabs.

Expected behavior

I should see no exceptions in the FCC output panel.
I should see my code coverage visual report in the Fine Code Coverage panel.

Side Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions