haxe-sublime-bundle icon indicating copy to clipboard operation
haxe-sublime-bundle copied to clipboard

Issues with OpenFL

Open curly-brace opened this issue 9 years ago • 12 comments

default project is not build. ctrl+shift+b generates default build.hxml for html5. no dropdown is shown.

build also fails, while compiler fails to find imported classes. i think thi is because xml file is not parsed at all.

curly-brace avatar Mar 02 '15 06:03 curly-brace

Can you please share your directory layout ?

clemos avatar Mar 03 '15 16:03 clemos

here is the default openfl project. i opened main source file and pressed ctrl+shift+b http://postimg.org/image/wbz7aam8l/

curly-brace avatar Mar 03 '15 16:03 curly-brace

do you get any error message in the console ? what's the content of your application.xml ?

clemos avatar Mar 03 '15 16:03 clemos

no. just a message shortly appears on status bar "no hxml or nmml file found" xml file is from default openfl project.

<?xml version="1.0" encoding="utf-8"?>
<project>
    <!-- NMML reference: https://gist.github.com/1763850 -->

    <!-- metadata, make sure 'package' is at least 3 segments (ie. com.mycompany.myproject) -->
    <meta title="openfl_test" package="openfltest" version="1.0.0" company="stasuss" />

    <!-- output -->
    <app main="Main" file="openfltest" path="bin" />

    <window background="#000000" fps="60" />
    <window width="800" height="480" unless="mobile" />
    <window orientation="landscape" vsync="false" antialiasing="0" if="cpp" />

    <!-- classpath, haxe libs -->
    <source path="src" />
    <haxelib name="openfl" />
    <haxelib name="actuate" />

    <!-- assets -->
    <icon path="assets/openfl.svg" />
    <assets path="assets/img" rename="img" />

    <!-- optimize output
    <haxeflag name="-dce full" /> -->

</project>

curly-brace avatar Mar 03 '15 16:03 curly-brace

also, what version of ST are you using ? ST3 is likely to work much better.

clemos avatar Mar 03 '15 16:03 clemos

i'm using st3 on my main linux. also tried both st2 and st3 on win7 with same results. also tried on mac with st3 now, because guy on openfl forum said, that by him everything is ok on mac.

may be i'm doing something wrong? or may be he has older versions or whatever.

curly-brace avatar Mar 03 '15 16:03 curly-brace

found the cause. the folder, where i store haxe projects is named [HAXE] and plugin is unable to process square brackets in path.

curly-brace avatar Mar 05 '15 09:03 curly-brace

ok, thanks for the insight; What OS are you using ? I'll see what I can do. Best, Clément

clemos avatar Mar 05 '15 09:03 clemos

this issue appeared on linux, win7 and mac, so it is crossplatform) i think it is something to do with sublime internals

curly-brace avatar Mar 05 '15 09:03 curly-brace

we do quite a lot of path manipulation, so we might workaround it. now that you found a way to reproduce, I can investigate a bit on it ;)

clemos avatar Mar 05 '15 09:03 clemos

thank you for great plugin! it is really helpful when your main system is not windows)))

curly-brace avatar Mar 05 '15 09:03 curly-brace

I can reproduce this on the Mac as well, it used to work some time ago.

mlopes avatar May 04 '15 15:05 mlopes