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:
dotnet/runtime
reposrc/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
and System.Text.Json
)devenv
- Open a project or solution
or devenv 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
cc @dibarbet can you work with Mohit on this
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
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.
I have also just upgraded to 16.5.0 and I am getting the same waiting for intellisense to finish message as @RolandJochems
Sam issue as well. Newest version of VS Preview works.
I have also just upgraded to 16.5.0 and got this issue. After updated to 16.5.1 - same result as well
@xpeH I was able to fix it for as I had a .cshtml and .razor file with the same name.
@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 upgraded to VS 2019 Pro 16.5.1 and have the same issue ... also cannot clean or build projects (even new console projects) ... uninstalling all of VS and reinstalling
cc @davkean
Also experiencing this issue +1
Folks that are running into this, please Help -> Send Feedback -> Report a Problem making sure to record the instance of Visual Studio that has the problem _while_ it has the problem. This lets us grab logs & dumps that will help us figure out the cause.
Same issue here. This is just following MVC .Net Core MSDocs Tutorial. I have version
Microsoft Visual Studio Professional 2019 Preview
Version 16.6.0 Preview 2.0
@johnguilbert1970 Can you point me to your Developer Feedback item?
@davkean My report can be found here
I tried with 16.5.2, it seems to be stuck in Loading Intellisense - Loading 231/233 XXX.csproj and even if I reload the project both numbers 231/233 are just going higher. If I only unload the project it stuck on another one.
Thanks @pranshum.
@MikaelFerland Can you point me to your Developer feedback item?
same here
Sorted this. Had to close open document windows and it fixed issue. Not sure if there were duplicate windows. It's still a bug though.
-----Original Message-----
From: "Mike" notifications@github.com
Sent: Wednesday, 1 April, 2020 12:38
To: "dotnet/roslyn" roslyn@noreply.github.com
Cc: "johnguilbert1970" johnguilbert@cwgsy.net, "Mention" mention@noreply.github.com
Subject: Re: [dotnet/roslyn] Visual Studio 2019 IntelliSense won't finish loading for certain projects (#41315)
@davkean https://developercommunity.visualstudio.com/content/problem/973105/intellisense-wont-finish-loading-for-certain-proje-1.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub , or unsubscribe .
I found a workaround, I unchecked the feature here :
Environment->Preview Features->Load project faster
Otherwise, the Intellisense never end is loading.
For me, a Blazor App project prevented IntelliSense from loading.
I uninstalled ReSharper - had no luck.
Deleted all VS caches, reinstalled Visual Studio - no luck again.
Finally, I managed to workaround the issue by delete empty .g.cs
files from the Blazor App project (auto generated files for razor components) and upgrading the package
Microsoft.VisualStudio.Azure.Containers.Tools.Targets
to version 1.10.8 in the Blazor App. A quick restart of Visual Studio and things were seemingly back to some form of normality...
Curiously enough, this issue only started happening after upgrading VS to 16.5.1.
Had the problem with 16.5.1 and resx files. Upgraded to 16.5.2 which seemed to fix it
am having same issue and not able to solve it.
Also having the same issue with my Blazor projects on VS 2019 preview 16.6
Also having the same issue , Blazor webassembly projects , VS 2019 16.6.0 Preview 2.1.
Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview3.20168.1
Had this issue VS2019 16.5.2. Libraries/desktop projects would hang forever loading project properties window saying waiting for Intellisense to finish loading. ASP.NET projects wouldn't do anything when choosing properties.
Turning off Load Projects Faster fixed the problem as mentioned by MikaelFerland.
Turning off Load Projects Faster as mentioned by MikaelFerland worked for me too. Thank you!
Seems like they have rolled out a fix for it
I'm having this issue when I go Main Menu > Test > Analyze Code Coverage for All Tests. I also get prompted to close the .coverage
file immediately after it opens, which is weird.
Problem still persists.
No IntelliSense support neither in xaml nor in code. Turning off Load Projects Faster doesn't fix it. VS 16.6.0, Xamarin project.
Neither disabling _Load Projects Faster_, nor updating to 16.6 (with _Load Projects Faster_ enabled or disabled) fixed the issue for me.
As you can see, I have a very simple class - I'm using ReactiveExtensions to set up some observables. lambda _x_ is _this_, which is the AppViewModel. The compiler and mouse-over correctly finds my class property (TermResult), but it won't show up in the intellisense auto-complete.
In case it's related, there's a massive amount of UI lag when trying to use the arrow keys to navigate the intellisense autocomplete drop down. Sometimes, pressing up or down will take over a second to actually move the selection, despite the rest of my typing experience being perfectly responsive.
Still occuring in 16.6.2. Turning off Load Projects Faste as mentioned by MikaelFerland still works as a workaround.
Still occurring in 16.6.3
MikaelFerland workaround works.
Also the magical "run as administrator" worked for me 😈
Still broken in 16.7.2 - stuck loading intellisense in the background - we have 10k RESX files - seems like an issue with project file volume. This feature also prevents us from saving any RESX files using the Microsoft.Net.Sdk
CSPROJ format with EnableDefaultEmbeddedResourceItems=true
as it locks both the RESX
and Designer.cs
files preventing writing.
Still broken in 16.8.0 Preview 3 - The workaround (Disabling "Load projects faster") solved it.
Could you please file a feedback item and attach a heap dump? If possible, please provide a title as specific as possible, to be able to distinguish from other similar issues.
These instructions explain how to do that:
https://docs.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2019
Thank you,
Adrian
Most helpful comment
I found a workaround, I unchecked the feature here :
Environment->Preview Features->Load project faster
Otherwise, the Intellisense never end is loading.