You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the latest preview update of Visual Studio I've been getting a message on startup that CSharpier did not load correctly.
It says to look in the log file, and it contained this information:
<entry>
<record>466</record>
<time>2023/08/30 06:55:26.685</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [CSharpierPackage]</description>
<guid>{D348BA73-11DC-46BE-8660-6D9819FC2C52}</guid>
</entry>
<entry>
<record>467</record>
<time>2023/08/30 06:55:26.826</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [CSharpierPackage]Source: '' Description: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
 at EnvDTE.DTE.get_ActiveDocument()
 at CSharpier.VisualStudio.CSharpierPackage.<InitializeAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
 at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)</description>
<guid>{D348BA73-11DC-46BE-8660-6D9819FC2C52}</guid>
<hr>0x80070057 - E_INVALIDARG</hr>
<errorinfo></errorinfo>
</entry>
Visual Studio version:
The text was updated successfully, but these errors were encountered:
I couldn't reproduce this, but the code that is failing is trying to warm up csharpier using the active document. Adding a try catch around it seemed like an easy fix.
After the latest preview update of Visual Studio I've been getting a message on startup that CSharpier did not load correctly.
It says to look in the log file, and it contained this information:
Visual Studio version:
The text was updated successfully, but these errors were encountered: