haxeui
haxeui copied to clipboard
Unable to run haxeui project
Hi,
Great library very helpful for desktop apps.
I am continously getting the following error:
Error: Could not find haxelib "haxeui", does it need to be installed?
I have installed haxeui updated version [1.8.3] and haxelib upgrade, but error is not going away.
I have also downloaded the hello_world.zip to test, but same error.
What IDE are you using? Do you have haxe (haxe.org) installed and working?
I am using intellij Idea, I have also used terminal commands for hello_world and both giving same error.
Yes I have installed everything and I am working on openfl for quite long, this error is very unexpected. When I use "haxelib list" in terminal I can see haxeui set to [1.8.3]
That is really strange... And this only happens with haxeui? I mean, a stardard openfl project is fine? I wonder if haxe or haxelib need to be updated? Does it happen for all openfl targets (ie, flash, neko, etc) - i presume the answer to that is yet, but worth checking anyway.
Everything is updated as I was thinking same, I have also done "haxelib selfupdate". I have tested neko, flash, html5 not working.
that is very strange, what if you create just blank openfl project? Or a normal haxe project that include some other lib (not haxeui or openfl)?
ok, Before installing haxeui, projects were working. After installing haxeui it has updated almost everything like lime, openfl, etc. And now I am getting this error :
/usr/lib/haxe/lib/openfl/3,5,3/openfl/utils/ByteArray.hx:118: characters 9-59 : openfl.utils.ByteArrayData should be openfl.utils.ByteArray
I am setting liberaries back to old to remove this.
Ok, one issue there is that i fix the versions of lime and openfl in the include.xml
in the haxeui haxelib repo. This has come up a few times, so i think its more effort than its worth. Can you do me a quick favour. In the include.xml
and haxelib.json
can you remove the parts that fix the versions and see what happens? If that gets passed the ByteArray
issue then im going to just stop fixing lime/openfl versions
I have set openfl to 3.4.0 in include.xml and haxelib.json, project run successfully.
I have tested the hello_world example and it is working fine, I can see the haxeui button "You clickd me"
I think my project has something buggy, don't worry I will try to fix it :). thanks.
Ok, but it sounds like i need to remove the fixing of versions in include.xml also, its seems to create more problems that its worth.
Ok, ive updated haxelib to v1.8.4 that should no longer fix versions. When you get a moment can you try it? Projects should work without you having to manually edit the include.xml
Good, its working without changing....
just a quick solution require, hello_world sample code using xml file crashes on launch ( ?? )
package;
import haxe.ui.toolkit.core.Toolkit;
import haxe.ui.toolkit.core.Root;
import haxe.ui.toolkit.resources.ResourceManager;
import haxe.ui.toolkit.controls.Text;
import haxe.ui.toolkit.core.interfaces.IDisplayObjectContainer;
import openfl.events.MouseEvent;
import haxe.ui.toolkit.core.Macros;
import haxe.ui.toolkit.themes.GradientTheme;
class ScrollView {
public function new() {
Toolkit.theme = new GradientTheme();
Toolkit.init();
Toolkit.openFullscreen(function(root:Root) {
var xml:Xml = Xml.parse(ResourceManager.instance.getText("hello.xml"));
var ui:IDisplayObjectContainer = Toolkit.processXml(xml);
ui.findChild("button").addEventListener(MouseEvent.CLICK, function(e) {
ui.findChild("label", Text).text = "Thanks!";
});
root.addChild(ui);
});
}
}
error:
Invalid call
Called from ScrollView.hx line 19
Called from haxe/ui/toolkit/core/RootManager.hx line 42
Called from openfl/_legacy/events/EventDispatcher.hx line 98
Called from a C function
Called from openfl/_legacy/display/DisplayObject.hx line 70
Called from openfl/_legacy/display/DisplayObject.hx line 362
Called from a C function
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 379
Called from openfl/_legacy/display/DisplayObject.hx line 423
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 31
Called from haxe/ui/toolkit/core/RootManager.hx line 58
Called from haxe/ui/toolkit/core/Toolkit.hx line 349
Called from ScrollView.hx line 16
Called from a C function
Called from ApplicationMain.hx line 214
Called from a C function
Called from ApplicationMain.hx line 214
Called from a C function
Called from ApplicationMain.hx line 116
Called from openfl/_legacy/Lib.hx line 122
Ok, that hello_world hasnt been updated in a while and i dont have time at the moment, there is a template for Flash Develop, but you arent using that, so that wont help, however, here is a project based on that template: https://dl.dropboxusercontent.com/u/26678671/Skeleton.zip
Might make more sense that using the hello_world, which ill update / check when i get a moment.
Let me know if that works.
Cheers, Ian
It works like charm, Thanks alot :)
Can this be closed?
Thanks sir, I appreciate your help. App unable to run for windows (exe) Still stuck and unable to resolve it: http://community.openfl.org/t/window-build-not-runing-under-windows-platform/7238
So the project compiles but doesnt run?
I have tried openfl test windows openfl build windows and many more as suggested at openfl none of them worked, even .exe was not generated. I am still working on the project but due to a new joining I am unable to give time to it
Can you try with the latest version of haxeui 1.8.5
- it should be fixed there now.
I would like to report that I am experiencing the same issue with running. The code will compile fine, but it prints out this error:
Called from a C function
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 379
Called from openfl/_legacy/display/DisplayObject.hx line 423
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 31
Called from haxe/ui/toolkit/core/RootManager.hx line 58
Called from haxe/ui/toolkit/core/Toolkit.hx line 349
Called from Main.hx line 22
I looked at the code and the line number seems to match up with the openFullscreen
command.
So I changed openFullscreen
to open
and now it runs fine. I'm not sure if this helps, but I sure hope it does.
EDIT: I just ran my code again with the GradientTheme and I got some similar errors.