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

iui/menu.v:201:7: error: unknown method or field: iui.MenuItem.draw_event_fn. #2

Open
EmmaTheMartian opened this issue Mar 21, 2022 · 2 comments

Comments

@EmmaTheMartian
Copy link

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.

@pisaiah
Copy link
Owner

pisaiah commented Mar 21, 2022

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.

@EmmaTheMartian
Copy link
Author

Odd, I'm on Debian 11 Linux. Perhaps it's a Unix-wide error, not just macOS.

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