agileobjects / ReadableExpressions

A library and Debugger Visualizer which translates Expression Trees into readable C# source code. .NET 3.5+ and .NET Standard 1.0+.
MIT License
395 stars 21 forks source link

"Could not load this custom viewer" in Visual Studio 2022 #140

Closed wk-done closed 2 weeks ago

wk-done commented 4 months ago

Hello, I try to understand the execution plan of an Automapper configuration and tried to follow the instructions of this page. After the installation, I can use the method ToReadableString() to get the string representation of the expression. Visual studio recognizes the new extension, and it shows "ReadableExpressions" in the dropdown list besides the magnifier icon.

grafik

But when I click on it I get the message Could not load this custom viewer.

This is my visual studio configuration

Microsoft Visual Studio Community 2022
Version 17.10.0
VisualStudio.17.Release/17.10.0+34916.146
Microsoft .NET Framework
Version 4.8.09037

Installed Version: Community

ASP.NET and Web Tools   17.10.338.1105
ASP.NET and Web Tools

Azure App Service Tools v3.0.0   17.10.338.1105
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools   17.10.338.1105
Azure Functions and Web Jobs Tools

C# Tools   4.10.0-3.24265.4+91c77369a0242946f66e16a04587e2860357beef
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CodeMaid   12.0
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub Copilot   0.2.889.30432
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager   6.10.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Razor (ASP.NET Core)   17.10.3.2420403+bb51c9aed4e1001def084176c9ec95e1ef6792eb
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools   17.10.171.4
Microsoft SQL Server Data Tools

TypeScript Tools   17.0.30327.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.10.0-3.24265.4+91c77369a0242946f66e16a04587e2860357beef
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   17.10.0-beta.24228.1+dd749058c91585e9b5dae62b0f8df892429ee28f
Microsoft Visual F# Tools

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

Any suggestions what else I could check?

Thank you.

TestAbUser commented 3 months ago

Same issue

SteveWilkes commented 2 weeks ago

v4.7 of the visualizers has now been released and should hopefully significantly improve stability as it writes translations to temp files (which it deletes when closed) instead of sending them across the debuggee/debugger boundary.