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

simple application can't be compiled #16

Closed
R3D9477 opened this issue Mar 3, 2017 · 2 comments
Closed

simple application can't be compiled #16

R3D9477 opened this issue Mar 3, 2017 · 2 comments

Comments

@R3D9477
Copy link

R3D9477 commented Mar 3, 2017

Expected Behavior

application with button

Current Behavior

exception:

$ haxe build.hxml
/home/username/.haxelib_repo/haxeui-html5/git/haxe/ui/backend/html5/native/size/TextSize.hx:7: lines 7-9 : Missing super constructor call
/home/username/.haxelib_repo/haxeui-html5/git/haxe/ui/backend/html5/native/size/ComponentSize.hx:8: lines 8-10 : Missing super constructor call
/home/username/.haxelib_repo/haxeui-html5/git/haxe/ui/backend/html5/native/size/ElementSize.hx:9: lines 9-11 : Missing super constructor call
/home/username/.haxelib_repo/haxeui-html5/git/haxe/ui/backend/html5/native/size/ButtonSize.hx:9: lines 9-11 : Missing super constructor call

Test app / minimal test case

UI.xml:

<?xml version="1.0" encoding="utf-8"?>
<button text="click me!"/>

Main.hx

import haxe.ui.Toolkit;
import haxe.ui.core.Screen;
import haxe.ui.core.Component;
import haxe.ui.macros.ComponentMacros;

class Main {
	public static function main() {
		Toolkit.init();
		
		var ui:Component = ComponentMacros.buildComponent("Assets/Xml/UI.xml");
		Screen.instance.addComponent(ui);
	}
}

build.hxml:

-cp Source
-main Main.hx

-lib haxeui-core
-lib haxeui-html5
-lib hscript

-js Export/Html5/Main.js

Button.zip

Your Environment

Haxe 3.4.0
haxeui-core from git
haxeui-html5 from git

Thanks.

ianharrigan added a commit that referenced this issue Mar 3, 2017
ianharrigan added a commit that referenced this issue Mar 3, 2017
@ianharrigan
Copy link
Member

Whoops, my bad... added a constructor to the base class for java... Should be fix now. Can you close if working as expected. Cheers.

@R3D9477
Copy link
Author

R3D9477 commented Mar 3, 2017

Thanks!

@R3D9477 R3D9477 closed this as completed Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants