Fody + Mono: unimplemented feature exception

119 views
Skip to first unread message

Luke Segars

unread,
May 31, 2015, 4:44:48 AM5/31/15
to mono-...@googlegroups.com
Hello!

I'm very new to Mono and Fody but am having some trouble compiling a C# project in Linux using Mono. It looks like I'm getting a "feature not implemented" error and I'm having trouble telling whether that's because some feature isn't implemented (and which one if so) or whether I'm' doing something wrong. The wiki at https://github.com/Fody/Fody/wiki/Mono makes me think that Fody is fully Mono compatible though I may be wrong. 
 
The exception and stack trace that I get during compilation w/ xbuild is:

/home/luke/git/hybrasyl.server/hybrasyl/packages/Fody.1.28.3/build/Fody.targets (FodyTarget target) ->

: error : Fody: An unhandled exception occurred:
Exception:
The requested feature is not implemented.
StackTrace:
at Mono.Cecil.Mdb.MdbReaderProvider.GetSymbolReader (Mono.Cecil.ModuleDefinition,System.IO.Stream) <0x00017>
at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition,Mono.Cecil.ReaderParameters) <0x000c3>
at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image,Mono.Cecil.ReaderParameters) <0x000e7>
at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream,Mono.Cecil.ReaderParameters) <0x00063>n 
at ModuleWeaver.GetTemplateModuleDefinition () <0x0012f>
at ModuleWeaver.ImportAssemblyLoader (bool) <0x00027>
at ModuleWeaver.Execute () <0x000bb>
at (wrapper dynamic-method) object.lambda_method (System.Runtime.CompilerServices.Closure,object) <0x00045>
at InnerWeaver.ExecuteWeavers () <0x0029f>
at InnerWeaver.Execute () <0x00113>

Source:
Mono.Cecil.Mdb
TargetSite:
Mono.Cecil.Cil.ISymbolReader GetSymbolReader(Mono.Cecil.ModuleDefinition, System.IO.Stream)

Any pointers about what might be causing this, and whether the feature exists? Thank you!
Luke

Luke Segars

unread,
May 31, 2015, 4:48:33 AM5/31/15
to mono-...@googlegroups.com
Perhaps worth mentioning that I'm posting here since it looks from the stack trace that Cecil may in fact be what's throwing the exception...apologies for spam if that's incorrect :)

Project source is available here in case it's useful: https://github.com/hybrasyl/server.

Jb Evain

unread,
May 31, 2015, 4:50:09 AM5/31/15
to mono-...@googlegroups.com
Hi!

For a while, the GetSymbolReader overload taking a stream wasn't
implemented in the mdb provider, that's what you're seeing.

It looks like the Fody version you're using is not up to date for this
particular assembly.

Jb
> --
> --
> --
> mono-cecil
> ---
> You received this message because you are subscribed to the Google Groups
> "mono-cecil" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mono-cecil+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Luke Segars

unread,
Jun 1, 2015, 2:47:18 AM6/1/15
to mono-...@googlegroups.com
Thanks for the quick response Jb. I checked in with the folks at Fody and they've got a new version in beta that supports it: https://github.com/Fody/Fody/issues/174 for more info. Appreciate the help!

You received this message because you are subscribed to a topic in the Google Groups "mono-cecil" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mono-cecil/YzqGDXTUJdA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mono-cecil+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages