juzeon / SydneyQt

A cross-platform desktop client for the jailbroken New Bing AI Copilot (Sydney ver.) built with Go and Wails (previously based on Python and Qt).
The Unlicense
828 stars 76 forks source link

[BUG] Unable to launch webapi (too many errors) #210

Closed johnd0e closed 8 months ago

johnd0e commented 8 months ago

Checks

Describe the bug

Unable to launch webapi

To Reproduce

D:\AI\SydneyQt (v2)>go run ./webapi
# runtime/internal/sys
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:9:7: len8tab redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:76:7: other declaration of len8tab
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:32:6: Len64 redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:99:6: other declaration of Len64
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:50:7: m0 redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:117:7: other declaration of m0
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:51:7: m1 redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:118:7: other declaration of m1
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:52:7: m2 redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:119:7: other declaration of m2
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:55:6: OnesCount64 redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:122:6: other declaration of OnesCount64
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:86:6: LeadingZeros64 redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:153:6: other declaration of LeadingZeros64
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:89:6: LeadingZeros8 redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:156:6: other declaration of LeadingZeros8
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:92:6: Len8 redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:159:6: other declaration of Len8
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:101:6: Prefetch redeclared in this block
        D:\Dev\Go\src\runtime\internal\sys\intrinsics.go:200:6: other declaration of Prefetch
D:\Dev\Go\src\runtime\internal\sys\intrinsics_common.go:101:6: too many errors

Desktop (please complete the following information):

juzeon commented 8 months ago

See https://stackoverflow.com/questions/62330084/fail-to-build-with-code-go-redeclared-in-this-block

johnd0e commented 8 months ago

Reinstalling golang haven't helped. But after this all is ok:

go mod tidy