Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The visualizer tool doesn't work - VS 2017 Enterprise #51

Closed
BrunoParrotta opened this issue Dec 4, 2019 · 7 comments
Closed

The visualizer tool doesn't work - VS 2017 Enterprise #51

BrunoParrotta opened this issue Dec 4, 2019 · 7 comments

Comments

@BrunoParrotta
Copy link

BrunoParrotta commented Dec 4, 2019

The error is
"Impossibile caricare il tipo 'System.ValueTuple`2' dall'assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."

  • Stack trace:

at ParseTreeVisualizer.VisualizerData..ctor(Object o, Config config) in C:\projects\antlr4parsetreevisualizer\Shared\Models\VisualizerData.cs:line 192
at ParseTreeVisualizer.ObjectSource.TransferData(Object target, Stream incomingData, Stream outgoingData) in C:\projects\antlr4parsetreevisualizer\Shared\VisualizerDataObjectSource.cs:line 10
at Microsoft.VisualStudio.DebuggerVisualizers.ClrCustomVisualizers.ClrCustomVisualizerDebuggeeHost.TransferData(Object visualizedObject, Byte[] uiSideData)

Visual studio 2017 Enterprise - Version 15.9.17
.Net Framework 4.6.01055
AntlrRuntime DLL: version 4.6.5

@BrunoParrotta BrunoParrotta changed the title The visualizer tool doesn't work The visualizer tool doesn't work - VS 2017 Enterprise Dec 4, 2019
@zspitz
Copy link
Owner

zspitz commented Dec 4, 2019

As an immediate workaround, you could download the NuGet ValueTuple package and extract the dlls into the visualizer folder.

I'll look into a more permanent solution.

@zspitz
Copy link
Owner

zspitz commented Dec 4, 2019

@BrunoParrotta I'm guessing this is because you're targeting .NET Framework 4.7.2, and value tuples were only introduced in 4.7.

If you open the above-mentioned NuGet package with an archiver, you want lib\net461\System.ValueTuple.dll.

@BrunoParrotta
Copy link
Author

BrunoParrotta commented Dec 5, 2019

@zspitz thank for your answer, but i put
System.ValueTuple.Dll got from system.valuetuple.4.5.0.nupkg
in the same directory of Antlr4.Runtime.ParseTreeVisualizer
but it doesn't work.... :_-(

Stack trace is the same.

@zspitz
Copy link
Owner

zspitz commented Dec 5, 2019

@BrunoParrotta Your project is targeting .NET Framework 4.6.0, which only supports .NET Standard 1.0. Perhaps try the version in lib\netstandard1.0\?

I apologize for trying to find these hacky workarounds; I don't have the time right now to give this issue the attention it deserves. Perhaps in a few days.

@BrunoParrotta
Copy link
Author

@zspitz Thank you for your support, but it doesnt' work...
Any other ideas?

@BrunoParrotta
Copy link
Author

BrunoParrotta commented Dec 16, 2019

Solved after download of framework .net472, because it wasn't installed on my pc.
I thought it was....
this is the link. https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net472-web-installer

After solved this my little trouble i can say that this is a great tool!
Congratulations for the work done!

@zspitz
Copy link
Owner

zspitz commented Dec 16, 2019

That's great to hear, and I'm sorry I wasn't able to give this the attention it deserved.

Just to confirm: your project is still targeting 4.6.0?

@zspitz zspitz closed this as completed Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants