mono / gir-sharp

C# binding generator for GIR format
MIT License
12 stars 10 forks source link

Error on using gir #72

Open wolfgangmauer opened 5 years ago

wolfgangmauer commented 5 years ago

My first use of git generates the following error(warning?) Where is my mistake?

mono ./Gir.exe ~/gtksourceview-3/gtksourceview/GtkSource-3.0.gir

Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key 'Gdk.Event' was not present in the dictionary. at System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (TKey key) [0x0001e] in <389c4d4236ae48b79e09300e03bb02e8>:0 at Gir.SymbolTable.get_Item (System.String type) [0x00000] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.Type.GetSymbol (Gir.GenerationOptions opts) [0x00007] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.ITypeOrArrayExtensions.Resolve (Gir.ITypeOrArray toResolve, Gir.GenerationOptions opts) [0x00022] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.IGeneratableExtensions.BuildParameters (Gir.IMethodLike callable, Gir.GenerationOptions opts, System.Boolean appendInstanceParameters) [0x00078] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.IGeneratableExtensions.GenerateImport (Gir.INativeCallable callable, Gir.IGeneratable parent, Gir.IndentWriter writer) [0x00010] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.IGeneratableExtensions.GenerateMembers (Gir.IGeneratable gen, Gir.IndentWriter writer, System.Func2[T,TResult] where) [0x00051] in :0 at Gir.Class.Generate (Gir.GenerationOptions opts) [0x000d3] in :0 at Gir.MainClass.Main (System.String[] args) [0x000b8] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.Collections.Generic.KeyNotFoundException: The given key 'Gdk.Event' was not present in the dictionary. at System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (TKey key) [0x0001e] in <389c4d4236ae48b79e09300e03bb02e8>:0 at Gir.SymbolTable.get_Item (System.String type) [0x00000] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.Type.GetSymbol (Gir.GenerationOptions opts) [0x00007] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.ITypeOrArrayExtensions.Resolve (Gir.ITypeOrArray toResolve, Gir.GenerationOptions opts) [0x00022] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.IGeneratableExtensions.BuildParameters (Gir.IMethodLike callable, Gir.GenerationOptions opts, System.Boolean appendInstanceParameters) [0x00078] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.IGeneratableExtensions.GenerateImport (Gir.INativeCallable callable, Gir.IGeneratable parent, Gir.IndentWriter writer) [0x00010] in <efc50789cfd34fb3ace840b1a88b601b>:0 at Gir.IGeneratableExtensions.GenerateMembers (Gir.IGeneratable gen, Gir.IndentWriter writer, System.Func2[T,TResult] where) [0x00051] in :0 at Gir.Class.Generate (Gir.GenerationOptions opts) [0x000d3] in :0 at Gir.MainClass.Main (System.String[] args) [0x000b8] in :0

decriptor commented 5 years ago

@wolfgangmauer Thanks for the issue. As we have time we are trying to bring this effort to 1.0. It isn't useful... yet :)

decriptor commented 5 years ago

Would you mind including the gir file however.

wolfgangmauer commented 5 years ago

I would, to but don't know how? It's a large generated file...

Am 25.01.19 um 07:36 schrieb Stephen Shaw:

Would you mind including the gir file however.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mono/gir-sharp/issues/72#issuecomment-457471463, or mute the thread https://github.com/notifications/unsubscribe-auth/AaqKPA0gVWsOp3c52jP62iuBw0IwO4dGks5vGqXsgaJpZM4XyaS2.

decriptor commented 5 years ago

Maybe just a link would work. I assume it is up somewhere public?

Dadoum commented 4 years ago

https://dpaste.org/EZF0