ui
ui copied to clipboard
iui/menu.v:201:7: error: unknown method or field: `iui.MenuItem.draw_event_fn`.
When I'm trying to compile, in particular, Vide, I get the following error:
.vmodules/iui/menu.v:201:7: error: unknown method or field: `iui.MenuItem.draw_event_fn`.
2 possibilities: `add_child`, `set_click`.
199 | })
200 | }
201 | item.draw_event_fn(app, &Component(item))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
202 | }
I've gotten this with both the latest version of IUI and the version of IUI that Vide was built with for 0.0.7-alpha.
After some digging, the function, does in fact, not exist.
Odd, MenuItem should inherent the function from Component. I've now changed it to cast to Component, so should fix the error. Also wierd, according to the CI, it seems only macOS had this error.
Odd, I'm on Debian 11 Linux. Perhaps it's a Unix-wide error, not just macOS.