roslyn: Visual Studio 2019 IntelliSense won't finish loading for certain projects
Version Used: Visual Studio 2019 Enterprise/Community Preview 16.5 P2. Was able to reproduce on two separate installations where one was a fresh installation. Steps to Reproduce:
- Clone
dotnet/runtime
repo - Locate any of the solution files under
src/libraries/*
folder (While I haven’t checked all of them, all of random ones I’ve opened seemed to suffer from the same problem; to list a few,System.IO.FileSystem
,System.Net.Sockets
,System.Runtime
andSystem.Text.Json
) - Open the solution via
devenv
-Open a project or solution
ordevenv SolutionName.sln
Expected Behavior: IntelliSense should finish loading eventually in the background tasks list
Actual Behavior:
It gets stuck loading indefinitely it seems; even after two to three hours of waiting it did not finish loading. It gets stuck at Loading <n-1>/<n>
, Loading <n>/<n>
or Load pending
as shown below:
It is possible that the projects have something in common and that is causing problems, but it feels rather odd to just silently get stuck here.
Attaching VS logs:
Opened through the menu (devenv /log ...
), when it got stuck at “Loading 2/3”
(I’m not sure if opening through the menu or opening directly affects on where it gets stuck at. It appears to be somewhat random)
VS version / Installed workloads
Microsoft Visual Studio Enterprise 2019 Preview
Version 16.5.0 Preview 2.0
VisualStudio.16.Preview/16.5.0-pre.2.0+29721.120
Microsoft .NET Framework
Version 4.8.03921
Installed Version: Enterprise
Visual C++ 2019 00435-60000-00000-AA271
Microsoft Visual C++ 2019
ASP.NET and Web Tools 2019 16.5.170.20430
ASP.NET and Web Tools 2019
Azure App Service Tools v3.0.0 16.5.170.20430
Azure App Service Tools v3.0.0
C# Tools 3.5.0-beta2-20057-04+f43cfcd2be1b781e0b5a9153776f7e5fecf92b89
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
NuGet Package Manager 5.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
Syntax Visualizer 1.0
An extension for visualizing Roslyn SyntaxTrees.
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
TypeScript Tools 16.0.20113.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 3.5.0-beta2-20057-04+f43cfcd2be1b781e0b5a9153776f7e5fecf92b89
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.8.0.0 for F# 4.7 16.5.0-beta.20071.14+c4c09df4d5a68c3e9a51948bab554d11e2c141f2
Microsoft Visual F# Tools 10.8.0.0 for F# 4.7
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 40 (6 by maintainers)
I found a workaround, I unchecked the feature here : Environment->Preview Features->Load project faster
Otherwise, the Intellisense never end is loading.
Still broken in 16.8.0 Preview 3 - The workaround (Disabling “Load projects faster”) solved it.
I updated to visual studio 16.5.0 today. And now I get waiting for intellisense to finish, Also publishing projects that use GitVersionTask fail because " The “WriteVersionInfoToBuildLog” task failed unexpectedly." It worked perfectly until I upgraded visual studio.
@martosource interesting. This might be the crux of the issue for me. Intellisense only gets caught on certain Blazor projects for me and my fix was to just unload them from my solution. It sounds like your issues were Blazor related as well. I am going to try your fix and I will report my findings.
I have also just upgraded to 16.5.0 and I am getting the same waiting for intellisense to finish message as @RolandJochems
Dupe of https://github.com/dotnet/project-system/issues/5834 and https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1052518/ Should be resolved in next 16.5 preview