Gnimuc / CImGui.jl

Julia wrapper for cimgui
https://github.com/cimgui/cimgui
MIT License
253 stars 25 forks source link

ImGuiKey_KeyPadEnter not defined, when running demo #89

Closed cserteGT3 closed 1 year ago

cserteGT3 commented 1 year ago

I am trying to run the demo, but it fails with the above mentioned error. Based on #88 I set the _jll version to 0.1.2, but it doesn't seem to work. I'm using julia v1.9.2 on Windows 11, package versions:

(demo) pkg> st
Status `C:\Users\username\git\CImGui.jl\demo\Project.toml`
  [5d785b6c] CImGui v1.82.0
  [623d79b3] ImGuiGLFWBackend v0.1.2
  [9d0819b4] ImGuiOpenGLBackend v0.1.1
⌃ [333409e9] CImGuiPack_jll v0.1.2+0

In a fresh julia session:

julia> using CImGui

julia> include("demo.jl")
ERROR: LoadError: UndefVarError: `ImGuiKey_KeyPadEnter` not defined
Stacktrace:
 [1] init(ctx::ImGuiGLFWBackend.Context)
   @ ImGuiGLFWBackend C:\Users\username\.julia\packages\ImGuiGLFWBackend\42XtF\src\interface.jl:36
 [2] top-level scope
   @ C:\Users\username\git\CImGui.jl\demo\demo.jl:62
 [3] include(fname::String)
   @ Base.MainInclude .\client.jl:478
 [4] top-level scope
   @ REPL[2]:1
in expression starting at C:\Users\username\git\CImGui.jl\demo\demo.jl:62

I am not sure how to proceed now.

JamesWrigley commented 1 year ago

cough this is probably my fault :grimacing: Could you try updating ImGuiGLFWBackend to v0.1.3? That should have the correct compat bounds.

cserteGT3 commented 1 year ago

It works now, thank you!