madskristensen / RainbowBraces

A Visual Studio extension
Apache License 2.0
132 stars 7 forks source link

Rainbow Braces version 1.0.57 fails to load on Visual Studio 2022 v17.4.2 #45

Open deadlydog opened 1 year ago

deadlydog commented 1 year ago

Describe the bug Rainbow Braces version 1.0.57 fails to load on Visual Studio 2022 v17.4.2.

To Reproduce Steps to reproduce the behavior:

  1. Load any C# solution
  2. You are presented with the following error dialog:
---------------------------
Microsoft Visual Studio
---------------------------
The 'RainbowBracesPackage' package did not load correctly.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\Dan.Schroeder\AppData\Roaming\Microsoft\VisualStudio\17.0_806f873b\ActivityLog.xml'.

Restarting Visual Studio could help resolve this issue.

Continue to show this error message?
---------------------------
Yes   No   
---------------------------

Expected behavior The extension should load correctly without throwing an error

Screenshots If applicable, add screenshots to help explain your problem.

Additional context This is the error logged in ActivityLog.xml

  <entry>
    <record>479</record>
    <time>2022/11/30 17:54:19.733</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [RainbowBracesPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;Community.VisualStudio.Toolkit, Version=17.0.430.0, Culture=neutral, PublicKeyToken=79441d341a79572c&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Community.VisualStudio.Toolkit, Version=17.0.430.0, Culture=neutral, PublicKeyToken=79441d341a79572c&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Community.VisualStudio.Toolkit, Version=17.0.430.0, Culture=neutral, PublicKeyToken=79441d341a79572c&apos;&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A;   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{8EB8A1E7-610C-47EC-B867-A8B500937F99}</guid>
    <hr>0x80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

This started occurring after updating to VS 2022 v17.4.2 and Rainbow Braces v1.0.57. Both had updates released yesterday, and I updated both of them around the same time, so I'm not certain if just one is at fault, or the combination of both.

frankdoylezw commented 1 year ago

This is also happening on 17.5.2. Same steps to repro and same error in the log file.