I updated to Visual Studio 16.10.0 yesterday and had no issues. Today, when opening Visual Studio everything seems to run fine until CodeRush loads. Once it loads and I can see the buttons on the toolbar, Visual Studio stops responding. Currently disabling CodeRush fixes my issue, but I would like to continue using CodeRush. I'm not sure if this is more of a Visual Studio issue or a DevExpress issue, but I figured I would ask here to see if anyone has any recommendations on how to solve my problem.
Unit Testing - Visual Studio hangs up on opening a solution that contains MSTest tests and when running these tests
Answers approved by DevExpress Support
We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.
Note: Hotfixes may be unavailable for betas/updates set for release within a week.
- v21.1.4Download Official Update
- v20.2.12
Hi,
Please accept my apologies for the delayed response.
We couldn't reproduce the issue on our side. Would you please collect the following information for us?
Enable CodeRush and reproduce the crash. Then, please collect:
I look forward to your response.
Hi there,
I have the same issue.
Yesterday I ran a VS repair.
Today I started installing the now missing extensions with adding my most important extension to VS.
I added CodeRush and since then my VS hangs on startup.
Installing VS 2019 16.10 has now been stopped in our organization.
By sending you the expected infos I hope I can help to get this fixed.
I cannot find an ActivityLog.xml in the mentioned folder but there's a file called ActivityLog.Setup.xml.
I added the latest CR logs and the CR settings as well.
Here's the VS Copy Info output:
Microsoft Visual Studio Enterprise 2019
Version 16.10.0
VisualStudio.16.Release/16.10.0+31321.278
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Enterprise
Architecture Diagrams and Analysis Tools 00435-60000-00000-AA583
Microsoft Architecture Diagrams and Analysis Tools
Visual C++ 2019 00435-60000-00000-AA583
Microsoft Visual C++ 2019
ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools
ANTSVsPackage 3.3.0.1163
Start ANTS Performance and Memory Profilers from Visual Studio
ASA Service Provider 1.0
ASP.NET and Web Tools 2019 16.10.525.31942
ASP.NET and Web Tools 2019
ASP.NET Web Frameworks and Tools 2012 16.10.525.31942
For additional information, visit https://www.asp.net/
ASP.NET Web Frameworks and Tools 2019 16.10.525.31942
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 16.10.525.31942
Azure App Service Tools v3.0.0
Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.6.1000.0
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 16.10.525.31942
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.6.1000.0
Microsoft Azure Stream Analytics Tools for Visual Studio
C# Tools 3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb
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.
ConvertToDevExtremeCommand Extension 1.0
ConvertToDevExtremeCommand Visual Studio Extension Detailed Info
Cookiecutter 16.10.21111.19
Provides tools for finding, instantiating and customizing templates in cookiecutter format.
DevExpress Reporting Extension 1.3
A Visual Studio extension that invokes the Report Designer editor for report definition VSREPX files.
DevExpress.DeploymentTool 1.0
A useful tool for deploying DevExpress assemblies.
DevExpress.Win.LayoutAssistant Extension 1.0
DevExpress.Win.LayoutAssistant Visual Studio Extension Detailed Info
Dotfuscator Community Edition 6.3.0+8b29d6f4a2
PreEmptive Protection - Dotfuscator CE
Extensibility Message Bus 1.2.6 (master@34d6af2)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Fabric.DiagnosticEvents 1.0
Fabric Diagnostic Events
GitHub.VisualStudio 2.11.106.19330
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info
Microsoft Azure HDInsight Azure Node 2.6.1000.0
HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service 2.6.1000.0
Language service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio 16.10
Microsoft Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service 2.6.1000.0
Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node 1.0
Azure Stream Analytics Node under Azure Node
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.40423.1
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 2.1.113+g422d40002e.RR
Install client-side libraries easily to any web project
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 Tools for Containers 1.2
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio 16.10.15 (552afdf)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 5.10.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Office Developer Tools for Visual Studio 16.0.31130.00
Microsoft Office Developer Tools for Visual Studio
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
Python 16.10.21111.19
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.
Python - Conda support 16.10.21111.19
Conda support for Python projects.
Python - Django support 16.10.21111.19
Provides templates and integration for the Django web framework.
Python - Profiling support 16.10.21111.19
Profiling support for Python projects.
Razor (ASP.NET Core) 16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725
Provides languages services for ASP.NET Core Razor.
Snapshot Debugging Extension 1.0
Snapshot Debugging Visual Studio Extension Detailed Info
SQL Server Data Tools 16.0.62105.04180
Microsoft SQL Server Data Tools
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
TypeScript Tools 16.0.30429.2002
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb
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 16.10.0-beta.21262.7+1b23bbeda88ea3cb9be9af777f4c99fa8663df81
Microsoft Visual F# Tools
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Container Tools Extensions 1.0
View, manage, and diagnose containers within Visual Studio.
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
Visual Studio Tools for Kubernetes 1.0
Visual Studio Tools for Kubernetes
VisualStudio.DeviceLog 1.0
Information about my package
VisualStudio.Foo 1.0
Information about my package
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
Xamarin 16.10.000.228 (d16-10@1c8354c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 16.10.0.115 (remotes/origin/c750fbf1bde3c720d077f51640fe197c6dac7cbe@c750fbf1b)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 16.10.5 (355b57a)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 11.3.0.1 (d16-10/22fc2b3)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: b4a3858
Java.Interop: xamarin/java.interop/d16-10@f39db25
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.35.4@85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-10@c5732a0
Xamarin.iOS and Xamarin.Mac SDK 14.20.0.1 (fe0e2c518)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Best regards,
Alex
Hi Alex,
Thank you for the additional information.
Based on CodeRush logs, this issue may relate to discovering tests from assemblies. Please disable this feature and check whether the issue disappears:
If the issue persists or if it is reproduced when a solution is not loaded, please share a call stack collected when Visual Studio hangs. The following Knowledge Base article contains instructions on how to collect this call stack: Collecting a call stack to track down the cause of VS crash or freeze issues.
I am looking forward to your results.
Hi Alexander,
thank you for you quick response.
Executing the mentioned steps fixes the problem.
I am wondering about the option I had to deactivate because it is called "Collect tests from assemblies when projects are built".
The problem didn't occur when doing a build. It just occurred when opening a solution.
Best regards,
Alex
Hi Alexander,
Disabling "Collect tests from assemblies when projects are built" fixes my issues as well.
Thanks,
Andrew
Alex and Andrew,
Thank you for informing us about your results.
We have reproduced this issue in a project that contains MSTest tests. We are working on it and will notify you of our progress.
When this option is enabled, CodeRush Test Runner checks project output directories on opening a solution. If there are assemblies that correspond to the source code based on pdb file data, Test Runner collects tests from these assemblies. After that, Test Runner rediscovers tests from an assembly if the corresponding project is rebuilt successfully. Alex, thank you for pointing this out. We will change the text for this option to explain its operation more accurately.
Hi guys,
We noticed that Visual Studio hangs on running MSTest tests by CodeRush Test Runner as well. We are working on this issue in the context of this ticket.
We have created a build that fixes the issue:
DevExpress.CodeRush-21.1.3.21153.exe
DevExpress.CodeRush-21.1.3.21153.vsix
Please install this build, enable the "Collect tests from assemblies when projects are built" option, and let us know whether this resolves the issue on your side.
I am looking forward to your results.
Hi Alexander,
just tried it with success!
Re-enabling the option doesn't have any negative effects.
Best regards,
Alex
Hi Alex,
Thank you for informing us of your results. We are happy to hear that this build solves the issue.
Hi Alexander,
Visual Studio is still hanging when "Collect tests from assemblies when projects are built" is enabled. I attached my logging information.
Thanks,
Andrew
Hi Andrew,
Thank you for providing logging information.
Your file with "About Microsoft Visual Studio" information contains the following note:
CodeRush for Roslyn 20.2.10.0
DevExpress CodeRush for Roslyn package.
So, CodeRush extension was not updated correctly on your machine. Please reinstall CodeRush one more time and try to reproduce the issue again. If it is still persist then it will be great help for us providing a call stack collected when Visual Studio hangs. The following Knowledge Base article contains instructions on how to collect this call stack: Collecting a call stack to track down the cause of VS crash or freeze issues.
Hi Alexander,
That's weird. So I reinstalled it, still saw it hang, then began debugging it and I could not replicate it. Now after opening it again, I no longer see it hang. So I guess it is fixed. I will update if I experience this issue again.
Thanks,
Andrew
Hi Andrew,
Thank you for informing us of your results. Feel free to reactivate this thread if you see the issue again.