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

Type not found #279

Open
hopewise opened this issue Aug 31, 2018 · 1 comment
Open

Type not found #279

hopewise opened this issue Aug 31, 2018 · 1 comment

Comments

@hopewise
Copy link

I am trying to register an xml class type in a macro as:

UIBuilder.buildClass("src/ui/inspectors.xml", "com.clientside.ui.ComponentsInspectorsXML");

then, when I try to access it as

var inspectors:com.clientside.ui.ComponentsInspectorsXML = new com.clientside.ui.ComponentsInspectorsXML();

I get error:

Type not found : com.clientside.ui.ComponentsInspectorsXML

Any idea?

@RealyUniqueName
Copy link
Owner

Perhaps the place where you instantiate the class gets into the compilation earlier than the place where you add UIBuilder.buildClass().
Do you have other classes built with UIBuilder.buildClass()? Can you instantiate them in the same place where you are trying new ComponentsInspectorXML()?

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