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

Inheritance issues while building #3

Open
geist-tea opened this issue Jan 2, 2021 · 2 comments
Open

Inheritance issues while building #3

geist-tea opened this issue Jan 2, 2021 · 2 comments

Comments

@geist-tea
Copy link

go/src/github.com/diamondburned/handy/handy_generated.go:40:5: cannot use (*glib.Object)(nil) (type *glib.Object) as type objector in assignment:
        *glib.Object does not implement objector (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
go/src/github.com/diamondburned/handy/handy_generated.go:703:4: cannot use &gtk.Widget literal (type *gtk.Widget) as type Caster in field value:
        *gtk.Widget does not implement Caster (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
go/src/github.com/diamondburned/handy/handy_generated.go:1176:4: cannot use &gtk.Widget literal (type *gtk.Widget) as type Caster in field value:
        *gtk.Widget does not implement Caster (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
go/src/github.com/diamondburned/handy/handy_generated.go:2056:4: cannot use &gtk.Widget literal (type *gtk.Widget) as type Caster in field value:
        *gtk.Widget does not implement Caster (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
go/src/github.com/diamondburned/handy/handy_generated.go:2917:3: cannot use &gtk.Widget literal (type *gtk.Widget) as type Caster in field value:
        *gtk.Widget does not implement Caster (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
@diamondburned
Copy link
Owner

This is caused by PR gotk3/gotk3#706.

A fix would be to either rollback to previous handy commits or replace gotk3 with the version the code was changed to:

replace github.com/gotk3/gotk3 => github.com/diamondburned/gotk3 v0.0.0-20201229054305-848200601f20

@diamondburned
Copy link
Owner

Tacking this issue here because it's part of the problem: golang/go#30354

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