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

AddRect() error: "ImDrawCornerFlags_All not defined" #117

Closed
heyx3 opened this issue Jun 6, 2024 · 4 comments
Closed

AddRect() error: "ImDrawCornerFlags_All not defined" #117

heyx3 opened this issue Jun 6, 2024 · 4 comments

Comments

@heyx3
Copy link

heyx3 commented Jun 6, 2024

In Julia 1.9.2, CImGui 1.82.0:

julia> using CImGui
julia> CImGui.AddRect(Ptr{CImGui.ImDrawList}(C_NULL), CImGui.ImVec2(0.5, 0.5), CImGui.ImVec2(10, 20), 0x1234)

ERROR: UndefVarError: `ImDrawCornerFlags_All` not defined

Presumably it should be ImDrawFlags_RoundCornersAll

@JamesWrigley
Copy link
Collaborator

Thanks for the report, could you try my branch in #118 and see if that fixes it? If so I'll merge it and tag a new release.

@heyx3
Copy link
Author

heyx3 commented Jun 6, 2024

Yep! No longer errors on my machine

@heyx3
Copy link
Author

heyx3 commented Jun 6, 2024

I really wish Julia had some kind of static analyzer to warn of potential unknown variable accesses :\

@JamesWrigley
Copy link
Collaborator

Alrighty, the new version should be available soon: JuliaRegistries/General#108414

I really wish Julia had some kind of static analyzer to warn of potential unknown variable accesses :\

Yeah I agree. What we really need is proper tests (#98), but in the meantime maybe JET.jl might be of use to find those kind of errors 🤔 In the past it's been a little spammy but maybe there are some settings to only look for obvious errors like unknown variables.

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