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

compilation failure #11

Closed
Beepeeko opened this issue Jan 6, 2021 · 3 comments
Closed

compilation failure #11

Beepeeko opened this issue Jan 6, 2021 · 3 comments

Comments

@Beepeeko
Copy link

Beepeeko commented Jan 6, 2021

Hi, when I try compiling this (awesome) project, it fails with this error

$ GO111MODULE=on go get -u github.com/diamondburned/cchat-gtk

go: github.com/diamondburned/cchat-gtk upgrade => v0.0.0-20210106052752-9cb3f71e77bf
go: github.com/alecthomas/chroma upgrade => v0.8.2
go: golang.org/x/time upgrade => v0.0.0-20201208040808-7e3f01d25324
go: github.com/danieljoos/wincred upgrade => v1.1.0
go: golang.org/x/image upgrade => v0.0.0-20201208152932-35266b937fa6
go: github.com/gotk3/gotk3 upgrade => v0.5.2
go: golang.org/x/text upgrade => v0.3.4
go: golang.org/x/sys upgrade => v0.0.0-20210105210732-16f7687f5001
go: github.com/yuin/goldmark upgrade => v1.3.1
go: github.com/dlclark/regexp2 upgrade => v1.4.0
go: github.com/twmb/murmur3 upgrade => v1.1.5
go: github.com/zalando/go-keyring upgrade => v0.1.0
go: go4.org upgrade => v0.0.0-20201209231011-d4a079459e60
go: github.com/pkg/errors upgrade => v0.9.1
go: github.com/diamondburned/cchat-mock upgrade => v0.0.0-20201217223307-2a859bbef698
go: github.com/google/btree upgrade => v1.0.0
go: github.com/diamondburned/cchat upgrade => v0.3.17
go: downloading github.com/diamondburned/cchat-mock v0.0.0-20201217223307-2a859bbef698
go: downloading github.com/gotk3/gotk3 v0.5.2
go: downloading golang.org/x/text v0.3.4
go: downloading golang.org/x/time v0.0.0-20201208040808-7e3f01d25324
go: downloading golang.org/x/image v0.0.0-20201208152932-35266b937fa6
go: downloading github.com/twmb/murmur3 v1.1.5
go: downloading github.com/yuin/goldmark v1.3.1
go: downloading go4.org v0.0.0-20201209231011-d4a079459e60
go: downloading github.com/alecthomas/chroma v0.8.2
go: downloading golang.org/x/sys v0.0.0-20210105210732-16f7687f5001
go: downloading github.com/zalando/go-keyring v0.1.0
go: downloading github.com/dlclark/regexp2 v1.4.0
go: downloading github.com/danieljoos/wincred v1.1.0
# github.com/diamondburned/cchat-gtk/internal/gts/throttler
go/pkg/mod/github.com/diamondburned/[email protected]/internal/gts/throttler/throttler.go:30:12: cannot use w (type *gtk.Window) as type Connector in argument to s.Connect:
        *gtk.Window does not implement Connector (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
# github.com/diamondburned/gspell
go/pkg/mod/github.com/diamondburned/[email protected]/gspell_generated.go:29: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/pkg/mod/github.com/diamondburned/[email protected]/gspell_generated.go:503:3: cannot use &LanguageChooser literal (type *LanguageChooser) as type LanguageChooserer in field value:
        *LanguageChooser does not implement LanguageChooserer (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
go/pkg/mod/github.com/diamondburned/[email protected]/gspell_generated.go:548:3: cannot use &LanguageChooser literal (type *LanguageChooser) as type LanguageChooserer in field value:
        *LanguageChooser does not implement LanguageChooserer (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
go/pkg/mod/github.com/diamondburned/[email protected]/gspell_generated.go:585:3: cannot use &Navigator literal (type *Navigator) as type Navigatorer in field value:
        *Navigator does not implement Navigatorer (wrong type for Connect method)
                have Connect(string, interface {}, ...interface {}) (glib.SignalHandle, error)
                want Connect(string, interface {}) glib.SignalHandle
# github.com/diamondburned/handy
go/pkg/mod/github.com/diamondburned/[email protected]/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/pkg/mod/github.com/diamondburned/[email protected]/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/pkg/mod/github.com/diamondburned/[email protected]/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/pkg/mod/github.com/diamondburned/[email protected]/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/pkg/mod/github.com/diamondburned/[email protected]/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

I am using go 1.15.6 on linux amd64, and my own gotk3 projects work
I have the same error on linux aarch64

Am I doing something wrong ? O.O
thanks :)

@diamondburned
Copy link
Owner

You might want to clone the repository and manually do go install for now.

I reckon this error has to do with the (careless) usage of replace directives inside go.mod.

@Beepeeko
Copy link
Author

Beepeeko commented Jan 8, 2021

Great, now it works nice on my computer and my pinephone!
thanks!

@Beepeeko Beepeeko closed this as completed Jan 8, 2021
@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