[Gtk-sharp-list] CVS Broken? - Another problem now
Charles Iliya Krempeaux
charles@reptile.ca
08 Apr 2003 09:32:29 -0700
--=-05kVWJyqh5kO3vKGjxNw
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,
OK, I did a...
cd sources
make get-source-code
make
To generate the api files. But now I have a new problem.
After running make (on the entire Gtk# source code), I get the following
error.
make[1]: Leaving directory
`/home/charles/Documents/Work/Projects/GNOME.NET/LIVE/gtk-sharp/gdk'
make[1]: Entering directory
`/home/charles/Documents/Work/Projects/GNOME.NET/LIVE/gtk-sharp/gtk'
mcs --unsafe --target library -r System.Drawing -L ../glib -L ../pango
-L ../atk -L ../gdk -r glib-sharp.dll -r pango-sharp.dll -r
atk-sharp.dll -r gdk-sharp.dll -o gtk-sharp.dll --recurse '*.cs'
./generated/Progress.cs(26) error CS-0025: : Parsing error=20
System.ArgumentException: Key duplication when adding:
Gtk.Progress.widget
in <0x0027b> 00 System.Collections.Hashtable:PutImpl
(object,object,bool)
in <0x0001c> 00 System.Collections.Hashtable:Add (object,object)
in <0x00116> 00 Mono.CSharp.TypeContainer:AddProperty
(Mono.CSharp.Property)
in <0x03a11> 00 Mono.CSharp.CSharpParser:yyparse
(Mono.CSharp.yyParser.yyInput)
in <0x00075> 00 Mono.CSharp.CSharpParser:parse ()
Compilation failed: 1 error(s), 0 warnings
make[1]: *** [gtk-sharp.dll] Error 1
make[1]: Leaving directory
`/home/charles/Documents/Work/Projects/GNOME.NET/LIVE/gtk-sharp/gtk'
make: *** [binding] Error 1
Any ideas?
Looking at gtk/generated/Progress.cs, what seems to be causing the error
is the following...
public Gtk.Widget widget;
public Gtk.Widget widget {
get {
Gtk.Widget ret =3D (Gtk.Widget)
GLib.Object.GetObject(widget);
ret.Ref ();
return ret;
}
set { widget =3D value.Handle; }
}
It seems to be complaining that a (instance) variable and a property
both have the same name.
See ya
On Tue, 2003-04-08 at 04:52, Gonzalo Paniagua Javier wrote:
> El mar, 08 de 04 de 2003 a las 09:30, Charles Iliya Krempeaux escribi=F3:
> > ./generated/RsvgSharp.SizeFuncNative.cs(25) error CS1501: Can not find
> > a constructor for this argument list
> > ./generated/RsvgSharp.SizeFuncNative.cs(15) error CS0103: The name
> > `RemoveIfNotAlive' could not be found in `RsvgSharp.SizeFuncWrapper'
>=20
> My last patch added that method to glib/DelegateWrapper.cs and also
> modified the generator.
>=20
> You need to regenerate the APIs.
>=20
> -Gonzalo
>=20
>=20
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
--=20
Charles Iliya Krempeaux, BSc
charles@reptile.ca
________________________________________________________________________
Reptile Consulting & Services 604-REPTILE http://www.reptile.ca/
--=-05kVWJyqh5kO3vKGjxNw
Content-Type: text/html; charset=utf-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY>
Hello,<BR>
<BR>
OK, I did a...<BR>
<BR>
cd sources<BR>
make get-source-code<BR>
make<BR>
<BR>
To generate the api files. But now I have a new problem.<BR>
<BR>
After running make (on the entire Gtk# source code), I get the following error.<BR>
<BR>
<FONT SIZE="2"><TT>make[1]: Leaving directory `/home/charles/Documents/Work/Projects/GNOME.NET/LIVE/gtk-sharp/gdk'<BR>
make[1]: Entering directory `/home/charles/Documents/Work/Projects/GNOME.NET/LIVE/gtk-sharp/gtk'<BR>
mcs --unsafe --target library -r System.Drawing -L ../glib -L ../pango -L ../atk -L ../gdk -r glib-sharp.dll -r pango-sharp.dll -r atk-sharp.dll -r gdk-sharp.dll -o gtk-sharp.dll --recurse '*.cs'<BR>
./generated/Progress.cs(26) error CS-0025: : Parsing error <BR>
System.ArgumentException: Key duplication when adding: Gtk.Progress.widget<BR>
in <0x0027b> 00 System.Collections.Hashtable:PutImpl (object,object,bool)<BR>
in <0x0001c> 00 System.Collections.Hashtable:Add (object,object)<BR>
in <0x00116> 00 Mono.CSharp.TypeContainer:AddProperty (Mono.CSharp.Property)<BR>
in <0x03a11> 00 Mono.CSharp.CSharpParser:yyparse (Mono.CSharp.yyParser.yyInput)<BR>
in <0x00075> 00 Mono.CSharp.CSharpParser:parse ()<BR>
<BR>
Compilation failed: 1 error(s), 0 warnings<BR>
make[1]: *** [gtk-sharp.dll] Error 1<BR>
make[1]: Leaving directory `/home/charles/Documents/Work/Projects/GNOME.NET/LIVE/gtk-sharp/gtk'<BR>
make: *** [binding] Error 1</FONT><BR>
</TT><BR>
Any ideas?<BR>
<BR>
<BR>
Looking at gtk/generated/Progress.cs, what seems to be causing the error is the following...<BR>
<BR>
<FONT SIZE="2"><TT> public Gtk.Widget widget;<BR>
<BR>
public Gtk.Widget widget {<BR>
get {<BR>
Gtk.Widget ret = (Gtk.Widget) GLib.Object.GetObject(widget);<BR>
ret.Ref ();<BR>
return ret;<BR>
}<BR>
set { widget = value.Handle; }<BR>
}</TT></FONT><BR>
<BR>
It seems to be complaining that a (instance) variable and a property both have the same name.<BR>
<BR>
<BR>
See ya<BR>
<BR>
<BR>
On Tue, 2003-04-08 at 04:52, Gonzalo Paniagua Javier wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373" SIZE="3"><I>El mar, 08 de 04 de 2003 a las 09:30, Charles Iliya Krempeaux escribió:
> ./generated/RsvgSharp.SizeFuncNative.cs(25) error CS1501: Can not find
> a constructor for this argument list
> ./generated/RsvgSharp.SizeFuncNative.cs(15) error CS0103: The name
> `RemoveIfNotAlive' could not be found in `RsvgSharp.SizeFuncWrapper'
My last patch added that method to glib/DelegateWrapper.cs and also
modified the generator.
You need to regenerate the APIs.
-Gonzalo
_______________________________________________
Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com</FONT>
<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list"><FONT SIZE="3">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</I></FONT></A></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>--
Charles Iliya Krempeaux, BSc
charles@reptile.ca
________________________________________________________________________
Reptile Consulting & Services 604-REPTILE http://www.reptile.ca/</PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>
--=-05kVWJyqh5kO3vKGjxNw--