fbpx

ILSpy infelicity with XSharpLanguage plugin

More
6 months 1 week ago - 6 months 1 week ago #1 by Bruce M. Axtens
ILSpy infelicity with XSharpLanguage plugin was created by Bruce M. Axtens
System.TypeLoadException: Method 'VisitTupleExpression' in type 'ILSpy.XSharpLanguage.XSharpOutputVisitor' from assembly 'ILSpy.XSharpLanguage.Plugin, Version=1.0.1.65534, Culture=neutral, PublicKeyToken=null' does not have an implementation.
   at ILSpy.XSharpLanguage.XSharpLanguage.WriteCode(ITextOutput output, DecompilerSettings settings, SyntaxTree syntaxTree, IDecompilerTypeSystem typeSystem)
   at ILSpy.XSharpLanguage.XSharpLanguage.DecompileMethod(MethodDefinition methoddef, ITextOutput output, DecompilationOptions options)
   at ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput)
   at ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass33_0.<DecompileAsync>b__0()

The binary was compiled with .NET 4.7.2 but the same applies to 4.6.1 binaries.

Using
05/25/2018  11:58 AM            90,112 ILSpy.XSharpLanguage.Plugin.dll
Last edit: 6 months 1 week ago by Bruce M. Axtens.

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #2 by Johan Nel
Replied by Johan Nel on topic ILSpy infelicity with XSharpLanguage plugin
Hi Bruce,

bugmagnet wrote:

   at ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass33_0.<DecompileAsync>b__0()

I think the problem arise in this line:
DecompilerTextView.<>c__DisplayClass33_0.<DecompileAsync>b__0()
// Note the .<>c__DisplayClass33_0
Should probably not be too difficult for Fabrice to fix. He need to remove the <> or place the correct Generic type into it.

Regards,

______________________
Johan Nel
George, South Africa

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #3 by Fabrice Foray
Replied by Fabrice Foray on topic ILSpy infelicity with XSharpLanguage plugin
Hi Bruce,

can you give me an access to the Dll/exe that you were trying to decompile, and indicate me where it does crash ?

Thanks
Fab

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #4 by Bruce M. Axtens
Replied by Bruce M. Axtens on topic ILSpy infelicity with XSharpLanguage plugin
I built a simple HelloWorld which I hope attaches well. Apart from that this is the error message that appeared when I closed ILSpy after selecting the Program node of HelloWorld and then changing the language to XSharp

Bruce.
System.TypeLoadException: Method 'VisitTupleExpression' in type 'ILSpy.XSharpLanguage.XSharpOutputVisitor' from assembly 'ILSpy.XSharpLanguage.Plugin, Version=1.0.1.65534, Culture=neutral, PublicKeyToken=null' does not have an implementation.
   at ILSpy.XSharpLanguage.XSharpLanguage.TypeToString(ConvertTypeOptions options, TypeReference typeRef, ICustomAttributeProvider typeAttributes)
   at ILSpy.XSharpLanguage.XSharpLanguage.FormatTypeName(TypeDefinition type)
   at ICSharpCode.ILSpy.TreeNodes.TypeTreeNode.get_Text()
   at ICSharpCode.TreeView.SharpTreeNode.ToString()
   at ICSharpCode.ILSpy.MainWindow.GetPathForNode(SharpTreeNode node)
   at ICSharpCode.ILSpy.MainWindow.OnClosing(CancelEventArgs e)
   at System.Windows.Window.WmClose()
   at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Attachments:

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #5 by Fabrice Foray
Replied by Fabrice Foray on topic ILSpy infelicity with XSharpLanguage plugin
Hi Bruce,
good catch ! :)
In fact, it appears that you are using the lastest version of ILSpy, right ? ( Version ILSpy version 3.2.0.3856 )

This versions introduced a new member : VisitTupleExpression, which is missing in the current version of the Plugin.

I will correct that asap, and keep you informed.

Fab

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #6 by Fabrice Foray
Replied by Fabrice Foray on topic ILSpy infelicity with XSharpLanguage plugin
Bruce,

I've uploaded a new version of the plugin that support ILSpy Version 3.2.x

Can you please get it and check that it works as expected ?

Thanks.
Fab

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #7 by Karl Faller
Replied by Karl Faller on topic ILSpy infelicity with XSharpLanguage plugin
Fabrice,
FYI, the download page still has "Last modified on: 2018-05-04", which is somewhat confusing ;)- inside it has the new dll.
The following user(s) said Thank You: Bruce M. Axtens

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #8 by Bruce M. Axtens
Replied by Bruce M. Axtens on topic ILSpy infelicity with XSharpLanguage plugin
Okay, working perfectly now.

Thank you very much indeed.

Bruce.

Please Log in or Create an account to join the conversation.