AllenDang / giu

Cross platform rapid GUI framework for golang based on Dear ImGui.
MIT License
2.16k stars 128 forks source link

[bug] Build failing on StyleIDs_string.go #714

Closed damntourists closed 9 months ago

damntourists commented 9 months ago

What happend?

Hi there, I'm currently trying to build with the version that's on master and I'm suddenly getting this error.. Any insight into how I can resolve it on my end?

cc1plus: note: unrecognized command-line option ‘-Wno-changes-meaning’ may have been intended to silence earlier diagnostics
# github.com/AllenDang/giu
../../../go/1.21.2/pkg/mod/github.com/!allen!dang/giu@v0.7.1-0.20231007051651-75faa61bd99c/StyleIDs_string.go:113:8: invalid argument: index 1 out of bounds [0:1]
../../../go/1.21.2/pkg/mod/github.com/!allen!dang/giu@v0.7.1-0.20231007051651-75faa61bd99c/StyleIDs_string.go:114:8: invalid argument: index 1 out of bounds [0:1]

Compilation finished with exit code 1

Code example

main.go ```golang // put your code here! ```

To Reproduce

  1. Run my demo
  2. will see the crash...

Version

master

OS

Ubuntu

damntourists commented 9 months ago

I was actually able to get this to work for now by cloning the giu repo, updating the dependencies in go.mod, then running the string tools listed in the comment at the top of StyleIDs_*.go, and redirecting my repo to the updated giu repo. I'll put in a pull request later on tonight if I get some time. We can close this.