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

Generator problems with new .NET types #34

Open
lemonmojo opened this issue Dec 10, 2019 · 1 comment
Open

Generator problems with new .NET types #34

lemonmojo opened this issue Dec 10, 2019 · 1 comment

Comments

@lemonmojo
Copy link
Contributor

The generator currently has problems with certain new types in the Mono framework like System.ReadOnlyMemory.

Here's a sample stack trace:

System.Exception: System_ReadOnlyMemoryA1[T] is not a valid ObjC identifier
  at Dubrovnik.Tools.Facets.CodeFacet.ObjCIdentifierFromManagedIdentifier (System.String managedIdentifier) [0x000f0] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.CodeFacet..ctor (Dubrovnik.Tools.Facets.CodeFacet facet) [0x00021] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.CodeFacet..ctor (System.Xml.Linq.XElement xelement) [0x0024c] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.ParameterFacet..ctor (System.Xml.Linq.XElement xelement) [0x00000] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <ba70b91736bd40cb990a357097dba9c3>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x0022b] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x0009c] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at Dubrovnik.Tools.Facets.FacetList`1[TFacet]..ctor (System.Xml.Linq.XElement parent, System.String childname, Dubrovnik.Tools.Facets.CodeFacet Parent) [0x0004b] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.MethodFacet..ctor (System.Xml.Linq.XElement xelement) [0x00009] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <ba70b91736bd40cb990a357097dba9c3>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x0022b] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x0009c] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at Dubrovnik.Tools.Facets.FacetList`1[TFacet]..ctor (System.Xml.Linq.XElement parent, System.String childname, Dubrovnik.Tools.Facets.CodeFacet Parent) [0x0004b] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.InterfaceFacet..ctor (System.Xml.Linq.XElement xelement) [0x0002f] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.ClassFacet..ctor (System.Xml.Linq.XElement xelement) [0x00000] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.StructFacet..ctor (System.Xml.Linq.XElement xelement) [0x00000] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <ba70b91736bd40cb990a357097dba9c3>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x0022b] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x0009c] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at Dubrovnik.Tools.Facets.FacetList`1[TFacet]..ctor (System.Xml.Linq.XElement parent, System.String childname, Dubrovnik.Tools.Facets.CodeFacet Parent) [0x0004b] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.NamespaceFacet..ctor (System.Xml.Linq.XElement xelement) [0x00042] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <ba70b91736bd40cb990a357097dba9c3>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x0022b] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x0009c] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <ba70b91736bd40cb990a357097dba9c3>:0 
  at Dubrovnik.Tools.Facets.FacetList`1[TFacet]..ctor (System.Xml.Linq.XElement parent, System.String childname, Dubrovnik.Tools.Facets.CodeFacet Parent) [0x0004b] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.Facets.AssemblyFacet..ctor (System.Xml.Linq.XElement xelement) [0x00009] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Tools.CodeGenerator.Execute () [0x0000c] in <3d489b2013324dc78b323a9d3008a96c>:0 
  at Dubrovnik.Generator.Program.Main (System.String[] args) [0x000df] in <20348a9d193143c0a91eb30f8671f2e9>:0
@KosmicTask
Copy link
Contributor

KosmicTask commented Dec 11, 2019 via email

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