You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
[OSX 10.10.5]
when i run gxui sample project on web.
but, I get this error:
github.com/google/gxui/drivers/gl/keyboard_translate.go:141:7: duplicate case glfw.KeyEnd (constant -1 of type github.com/goxjs/glfw.Key) in expression switch
github.com/google/gxui/drivers/gl/keyboard_translate.go:113:7: previous case
github.com/google/gxui/drivers/gl/keyboard_translate.go:145:7: duplicate case glfw.KeyScrollLock (constant -1 of type github.com/goxjs/glfw.Key) in expression switch
github.com/google/gxui/drivers/gl/keyboard_translate.go:113:7: previous case
github.com/google/gxui/drivers/gl/keyboard_translate.go:147:7: duplicate case glfw.KeyNumLock (constant -1 of type github.com/goxjs/glfw.Key) in expression switch
github.com/google/gxui/drivers/gl/keyboard_translate.go:113:7: previous case
github.com/google/gxui/drivers/gl/keyboard_translate.go:149:7: duplicate case glfw.KeyPrintScreen (constant -1 of type github.com/goxjs/glfw.Key) in expression switch
github.com/google/gxui/drivers/gl/keyboard_translate.go:113:7: previous case
github.com/google/gxui/drivers/gl/keyboard_translate.go:151:7: duplicate case glfw.KeyPause (constant -1 of type github.com/goxjs/glfw.Key) in expression switch
github.com/google/gxui/drivers/gl/keyboard_translate.go:113:7: previous case
github.com/google/gxui/drivers/gl/keyboard_translate.go:113:7: too many errors
Help plz fix this.
The text was updated successfully, but these errors were encountered:
This looks like a legitimate issue. I suspect it wasn't caught before because the GopherJS had a bug where it did not fail to compile when a switch had duplicate cases (see golang/go#11578 as the upstream issue).
That issue has since been fixed (i.e., gopherjs/gopherjs#269 is resolved), and this Go code is invalid and needs to be fixed for it to compile successfully.
They still need to be set to proper values, but this fixes issue where
downstream code may fail to compile if it expects each Key to have a
unique value (e.g., if they're used as switch case statements).
Fixesgoogle/gxui#171.
[OSX 10.10.5]
when i run gxui sample project on web.
but, I get this error:
Help plz fix this.
The text was updated successfully, but these errors were encountered: