clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 85 forks source link

Issues with OpenFL #190

Open curly-brace opened 9 years ago

curly-brace commented 9 years ago

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.

clemos commented 9 years ago

Can you please share your directory layout ?

curly-brace commented 9 years ago

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

clemos commented 9 years ago

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

curly-brace commented 9 years ago

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

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

curly-brace commented 9 years ago

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

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

clemos commented 9 years ago

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

curly-brace commented 9 years ago

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

clemos commented 9 years ago

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 ;)

curly-brace commented 9 years ago

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

mlopes commented 9 years ago

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