Bug 52262 - gapi2-codegen generates invalid field with void type
Summary: gapi2-codegen generates invalid field with void type
Status: RESOLVED FIXED
Alias: None
Product: Gtk#
Classification: Mono
Component: gtk-sharp ()
Version: 2.x
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marius Ungureanu
URL:
Depends on:
Blocks:
 
Reported: 2017-02-02 23:48 UTC by gilles.filippini
Modified: 2017-04-03 11:24 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
testcase (453 bytes, text/xml)
2017-02-02 23:48 UTC, gilles.filippini
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description gilles.filippini 2017-02-02 23:48:17 UTC
Created attachment 19704 [details]
testcase

Hi,

While investigating about Debian bug #849932 [1] I've setup a very simple test case (attached) for gapi2-codegen which generates an invalid field with void type. This error appears first with commit dd4c742 [2] from the github repo.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849932
[2] https://github.com/mono/gtk-sharp/commit/dd4c74292e9a91461a778f1759b64facf7cf68ac

To reproduce, use :
 $ gapi2-codegen --generate indicate-api.xml --outdir=.
and look at file ListenerServer.cs which contains the faulty line:
 static void _gtype = new void (indicate_listener_server_get_type());

Thanks,

_g.
Comment 1 Andres G. Aragoneses 2017-02-08 03:22:47 UTC
What exact version of gtk# is this?
Comment 2 gilles.filippini 2017-02-08 18:10:33 UTC
The bug showed up first in gtk# release 2.12.39. Release 2.12.29 is OK. there is no gtk# release between those.

Thanks,

_g.
Comment 3 Marius Ungureanu 2017-03-13 10:03:36 UTC
I'll take a look at this as soon as possible.
Comment 4 gilles.filippini 2017-03-29 14:55:03 UTC
Hi,

There is now a patch proposal attached to the debian bug [1].

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849932

Thanks,

_g.
Comment 5 Marius Ungureanu 2017-04-03 11:24:49 UTC
The back is backported now to gtk-sharp 2-12 branch.