haxeui / haxeui-html5

The HTML5 backend of the HaxeUI framework -
http://haxeui.org
MIT License
28 stars 14 forks source link

simple application can't be compiled #16

Closed R3D9477 closed 7 years ago

R3D9477 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Thanks!