p10tyr / PrestoCoverage

Visual Studio Extension for simple coverage visuals
Apache License 2.0
45 stars 6 forks source link

FileNotFoundException on loading solution #10

Closed yawnston closed 5 years ago

yawnston commented 5 years ago

After installing your extension, when I try to open a solution in Visual Studio, I get the following error message:

image

Here is the relevant part of the log:

964 Error Editor or Editor Extension System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis.Workspaces, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.CodeAnalysis.Workspaces, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at PrestoCoverage.CommentTaggerProvider.CreateTagger[T](ITextView textView, ITextBuffer buffer) at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer) --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

The extension then doesn't work, running tests doesn't show any coverage.

My friend with Visual Studio Professional version doesn't have these issues and the extension works fine.

Microsoft Visual Studio Community 2017 Version 15.7.4 VisualStudio.15.Release/15.7.4+27703.2035 Microsoft .NET Framework Version 4.7.03056

p10tyr commented 5 years ago

@yawnston Does Visual Studio Community 15.8+ exist? The DLL it is trying to load is a Rosyln helper that I use to get various information about the project.. it should be bundled with the Extension but it seems like it just doesn't like VS 2017 v17

I am just wondering how come you are not on 15.8 yet?

p10tyr commented 5 years ago

Thanks for letting me know

I think the problem is because your VS is version 15.7 and that DLL requires 15.8+

I will update my docs to make sure people know that.


From: Daniel Crha notifications@github.com Sent: 22 October 2018 12:33:05 To: ppumkin/PrestoCoverage Cc: Subscribed Subject: [ppumkin/PrestoCoverage] FileNotFoundException on loading solution (#10)

After installing your extension, when I try to open a solution in Visual Studio, I get the following error message:

[image]https://user-images.githubusercontent.com/18127325/47290025-d44c1c00-d5fd-11e8-902f-a9ea9098699d.png

Here is the relevant part of the log:

964

Error

Editor or Editor Extension

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis.Workspaces, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.CodeAnalysis.Workspaces, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at PrestoCoverage.CommentTaggerProvider.CreateTagger[T](ITextView textView, ITextBuffer buffer) at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer) --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

The extension then doesn't work, running tests doesn't show any coverage.

My friend with Visual Studio Professional version doesn't have these issues and the extension works fine.

Microsoft Visual Studio Community 2017 Version 15.7.4 VisualStudio.15.Release/15.7.4+27703.2035 Microsoft .NET Framework Version 4.7.03056

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ppumkin/PrestoCoverage/issues/10, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABMRk3jFsQDxs1k17lqsM93XgB3LXsxbks5unazxgaJpZM4XzOCY.

yawnston commented 5 years ago

@ppumkin I updated to 15.8.7 and your extension now works. I think it's safe to say that was the problem.