dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.04k stars 4.03k forks source link

Quick info stopped working #74644

Open Peter-Juhasz opened 3 months ago

Peter-Juhasz commented 3 months ago

Version Used: 17.11.0 Preview 6.0 (no 3rd party extensions enabled)

Steps to Reproduce:

It has just suddenly stopped working in all editors (while other language services are working fine):

https://github.com/user-attachments/assets/d438cd32-c5f2-4488-b345-f0e0cab3d729

Diagnostic Id: N/A

Expected Behavior: Quick info works continuously.

Actual Behavior: Quick info stopped working.

Peter-Juhasz commented 3 months ago

When I tried to restart Visual Studio, it was completely broken and couldn't load a single package:

image

I got the following errors in the ActivitiyLog.xml:

  <entry>
    <record>1744</record>
    <time>2024/08/04 08:59:30.279</time>
    <type>Error</type>
    <source>Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost</source>
    <description>Value cannot be null.&#x000D;&#x000A;Parameter name: path</description>
  </entry>
  <entry>
    <record>1757</record>
    <time>2024/08/04 08:59:30.317</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectPackage]Source: &apos;Microsoft.VisualStudio.Validation&apos; Description: Cannot find an instance of the Microsoft.VisualStudio.ComponentModelHost.IComponentModel service.&#x000D;&#x000A;</description>
    <guid>{3347BEE8-D7A1-4082-95E4-38A439553CC2}</guid>
    <hr>0x80131500</hr>
    <errorinfo></errorinfo>
  </entry>
Peter-Juhasz commented 3 months ago

The second restart was somewhat better (no tons of "could not load package errors"), but it could not load my .NET projects:

image

After right click Reload Project, it was able to load my projects marked as "incompatible".