FortuneN / FineCodeCoverage

Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)
https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage
Other
516 stars 39 forks source link

Not working after uninstall/reinstall #359

Closed Mike-Johns closed 3 months ago

Mike-Johns commented 10 months ago

Installed product versions

Description

I was really enjoying this extension, and then I had to uninstall/reinstall and now when I open my solution in Visual Studio, I see lots of error messages from FCC starting with

Fine Code Coverage 11/2/2023 2:11:25 PM: Failed to load 'Exclude' setting System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. File name: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' at FineCodeCoverage.Options.JsonConvertService.DeserializeObject(String value, Type propertyType) at FineCodeCoverage.Options.AppOptionsProvider.LoadSettingsFromStorage(IAppOptions instance) in D:\a\FineCodeCoverage\FineCodeCoverage\SharedProject\Options\AppOptionsProvider.cs:line 94

Steps to recreate

  1. Have FCC working
  2. Uninstall FCC
  3. Install FCC

Current behavior

FCC won't start up.

Expected behavior

FCC should start.

Side Notes

Mike-Johns commented 10 months ago

I got FCC working again by deleting the x64\Debug directory in my solution's output (it contained a fine-code-coverage directory that I'm guessing didn't do well through uninstall/reinstall). After that, FCC seems to be working again, but I still see those same errors on initialization.

tonyhallett commented 9 months ago

FCC installs data in ...AppData\Local\FineCodeCoverage You could try uninstalling then deleting this directory and then re-installing.

Other than that you could use vs 2022.

Muhammad-Uzair-Ghaffar commented 8 months ago

I also faced the issue FCC not working. Coverage logs showed me "coverage not collected as FCC disabled". I wasn't able to find proper solution. I think there are no proper documentation of general settings (what every function in settings is for?) I was also not getting the coverage but by chance turned on Run MS Coverage (It worked for me).

tonyhallett commented 7 months ago

@Muhammad-Uzair-Ghaffar Not the same issue - looks like in your case FCC is working but you had no coverage as you had disabled it.

tonyhallett commented 7 months ago

@Mike-Johns What other extensions do you have installed ?

tonyhallett commented 7 months ago

Note that Newtonsoft.Json was added 28/3/2022