-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Super Quick Info no longer works under Visual Studio 17.12.3! #341
Comments
Sorry to see that. I could not reproduce this issue. |
Hi.
As far as I can tell, yes.
I looked but I didn't find anything suspicious. All I found was the expected <entry>
<record>1707</record>
<time>2024/12/30 04:41:36.921</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [CodistPackage]</description>
<guid>{C7B93D20-621F-4B21-9D28-D51157EF0B94}</guid>
</entry> Bottom line: nothing interesting. So I decided to dig deeper. It so happens I also develop a VS extension of my own. So I've installed Codist in the ROSLYN VS instance that is launched when I debug my own VS extension, and here's what I got the first time I hovered my mouse over a method: <entry>
<record>2055</record>
<time>2025/01/04 18:13:45.608</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.AggregateException: One or more errors occurred. ---> System.TypeInitializationException: The type initializer for 'Codist.SymbolFormatter' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Codist.SyntaxHighlight.FormatStore' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Codist.ThemeHelper' threw an exception. ---> System.Runtime.InteropServices.COMException: GetCurrentThemeInfo must be called on the UI thread.
 at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(String callerMemberName)
 at Codist.ThemeHelper.GetCurrentThemeInfo() in D:\Codes\Open Source Projects\Codist\Codist\Helpers\ThemeHelper.cs:line 68
 at Codist.ThemeHelper..cctor() in D:\Codes\Open Source Projects\Codist\Codist\Helpers\ThemeHelper.cs:line 25
 --- End of inner exception stack trace ---
 at Codist.ThemeHelper.add_ThemeChanged(EventHandler`1 value)
 at Codist.SyntaxHighlight.FormatStore.InitSyntaxStyleCache() in D:\Codes\Open Source Projects\Codist\Codist\SyntaxHighlight\FormatStore.cs:line 192
 at Codist.SyntaxHighlight.FormatStore..cctor() in D:\Codes\Open Source Projects\Codist\Codist\SyntaxHighlight\FormatStore.cs:line 29
 --- End of inner exception stack trace ---
 at Codist.SymbolFormatter.<>c__DisplayClass125_0.<CreatePropertySetter>b__0(String ct, SymbolFormatter f) in D:\Codes\Open Source Projects\Codist\Codist\Semantics\SymbolFormatter.cs:line 1286
 at Codist.SymbolFormatter..ctor(Func`2 brushConfigurator) in D:\Codes\Open Source Projects\Codist\Codist\Semantics\SymbolFormatter.cs:line 40
 at Codist.SymbolFormatter..cctor() in D:\Codes\Open Source Projects\Codist\Codist\Semantics\SymbolFormatter.cs:line 29
 --- End of inner exception stack trace ---
 at Codist.QuickInfo.CSharpQuickInfo.OverrideDocumentation(SyntaxNode node, IQuickInfoOverride qiWrapper, ISymbol symbol, SemanticModel semanticModel, CancellationToken cancellationToken) in D:\Codes\Open Source Projects\Codist\Codist\QuickInfo\CSharpQuickInfo.cs:line 497
 at Codist.QuickInfo.CSharpQuickInfo.<InternalGetQuickInfoItemAsync>d__26.MoveNext() in D:\Codes\Open Source Projects\Codist\Codist\QuickInfo\CSharpQuickInfo.cs:line 362
--- 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 Codist.QuickInfo.SingletonQuickInfoSource.<InternalGetQuickInfoItemAsync>d__2.MoveNext() in D:\Codes\Open Source Projects\Codist\Codist\QuickInfo\QuickInfoFactories.cs:line 130
--- 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.Language.Intellisense.Implementation.AsyncQuickInfoSession.<ComputeSourceContentAsync>d__39.MoveNext()
 --- End of inner exception stack trace ---
 at Microsoft.VisualStudio.Language.Intellisense.Implementation.AsyncQuickInfoSession.<UpdateAsync>d__32.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.Language.Intellisense.Implementation.AsyncQuickInfoPresentationSession.<UpdateAsync>d__5.MoveNext()
---> (Inner Exception #0) System.TypeInitializationException: The type initializer for 'Codist.SymbolFormatter' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Codist.SyntaxHighlight.FormatStore' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Codist.ThemeHelper' threw an exception. ---> System.Runtime.InteropServices.COMException: GetCurrentThemeInfo must be called on the UI thread.
 at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(String callerMemberName)
 at Codist.ThemeHelper.GetCurrentThemeInfo() in D:\Codes\Open Source Projects\Codist\Codist\Helpers\ThemeHelper.cs:line 68
 at Codist.ThemeHelper..cctor() in D:\Codes\Open Source Projects\Codist\Codist\Helpers\ThemeHelper.cs:line 25
 --- End of inner exception stack trace ---
 at Codist.ThemeHelper.add_ThemeChanged(EventHandler`1 value)
 at Codist.SyntaxHighlight.FormatStore.InitSyntaxStyleCache() in D:\Codes\Open Source Projects\Codist\Codist\SyntaxHighlight\FormatStore.cs:line 192
 at Codist.SyntaxHighlight.FormatStore..cctor() in D:\Codes\Open Source Projects\Codist\Codist\SyntaxHighlight\FormatStore.cs:line 29
 --- End of inner exception stack trace ---
 at Codist.SymbolFormatter.<>c__DisplayClass125_0.<CreatePropertySetter>b__0(String ct, SymbolFormatter f) in D:\Codes\Open Source Projects\Codist\Codist\Semantics\SymbolFormatter.cs:line 1286
 at Codist.SymbolFormatter..ctor(Func`2 brushConfigurator) in D:\Codes\Open Source Projects\Codist\Codist\Semantics\SymbolFormatter.cs:line 40
 at Codist.SymbolFormatter..cctor() in D:\Codes\Open Source Projects\Codist\Codist\Semantics\SymbolFormatter.cs:line 29
 --- End of inner exception stack trace ---
 at Codist.QuickInfo.CSharpQuickInfo.OverrideDocumentation(SyntaxNode node, IQuickInfoOverride qiWrapper, ISymbol symbol, SemanticModel semanticModel, CancellationToken cancellationToken) in D:\Codes\Open Source Projects\Codist\Codist\QuickInfo\CSharpQuickInfo.cs:line 497
 at Codist.QuickInfo.CSharpQuickInfo.<InternalGetQuickInfoItemAsync>d__26.MoveNext() in D:\Codes\Open Source Projects\Codist\Codist\QuickInfo\CSharpQuickInfo.cs:line 362
--- 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 Codist.QuickInfo.SingletonQuickInfoSource.<InternalGetQuickInfoItemAsync>d__2.MoveNext() in D:\Codes\Open Source Projects\Codist\Codist\QuickInfo\QuickInfoFactories.cs:line 130
--- 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.Language.Intellisense.Implementation.AsyncQuickInfoSession.<ComputeSourceContentAsync>d__39.MoveNext()<---
</description>
</entry> Here's the XML decoded
The interesting part is This should help you investigate the issue. Let me know if you need more info. Good hunting! |
I managed to reproduce this issue on my development machine. |
I've just released a new version to fix this nasty bug. |
I've installed Codist 7.9.5.9983 and the bug appears to be fixed. Thanks a lot! |
Good. |
Hello and Happy New Year!
After migrating from Visual Studio 17.11.5 to 17.12.3, I've discovered that Super Quick Info is dead.
Nothing is displayed anymore when it should.
I'm using:
Here are my setting:
Codist.json
Note: I still have an old machine with Visual Studio 2022 v17.11.5 running on Windows 10, also with Codist v7.9.4.9972, and everything works as expected.
Please fix this.
Thanks in advance.
The text was updated successfully, but these errors were encountered: