clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
235 stars 86 forks source link

Can't select flambe build #174

Closed venclovs closed 9 years ago

venclovs commented 9 years ago

Can't select flambe build type. It always generates build.hxml.

venclovs commented 9 years ago

Everything was working fine until last update. I'm on mac.

Autocompletion doesn't work on flambe

Now I'm getting:

"Class not found: flambe.anyClass"

For my source autocompletions shows:

Invalid command line... "src.scenes.Scene" should be -> "scenes.Scene" ; nme project not installed

venclovs commented 9 years ago

If I remove flambe.yaml file everything works fine, now issues.

How to fix it, so I would be able to compile flambe target?

clemos commented 9 years ago

I'll look into it, I've recently been merging a PR from @aduros about flambe, which might be related to your problem. Do you get any error from the console ?

aduros commented 9 years ago

Are you using Flambe 4.1.0+? It's required for completion in the latest plugin.

venclovs commented 9 years ago

I'm using 4.1.0. I have put in preferences "haxe_builds":"flambe.yaml" and know autocompletion works. But can't select build, but I'm making a build on my own so it's not a big deal.

I hope this will help: Flambe completion error: flambe: error: argument "": Invalid choice: haxe-flags (choose from [new, create, run, build, serve, server, clean, update, upgrade, help])

Errors in status bar: "Class not found: flambe.anyClass" Invalid command line... "src.scenes.Scene" should be -> "scenes.Scene" ; nme project not installed

venclovs commented 9 years ago

Autocompletion also works if I remove flambe.yaml

clemos commented 9 years ago

Currently you can't use the new "add build to project" (haxe_builds) feature for other formats than hxml. So adding a yaml flambe build not only won't work, but will also deactivate auto-search of other build files... So for now, please don't use haxe_builds with yaml files, just place your yaml file at the top of your project and you should be ok. I'll try to add the other build types to the feature asap.

clemos commented 9 years ago

PS: ...and please confirm so I can close the issue ;)

venclovs commented 9 years ago

"just place your yaml file at the top of your project and you should be ok."

it won't work at all this way by putting .yaml at top of project, it only worked this way with previous release.

I'm getting this with .yaml at top of project (no autocompletion):

Class not found: flambe.anyClass" Invalid command line... "src.scenes.Scene" should be -> "scenes.Scene" ; nme project not installed

clemos commented 9 years ago

Can you please paste your yaml and describe your project paths layout ?

clemos commented 9 years ago

I finally reproduced it and fixed it @aduros I don't even know how it could possibly work in the first place :p ("haxe flags" called without cwd or --config)

aduros commented 9 years ago

Oops! I guess I was always starting sublime from a project directory and never got hit by that.

venclovs commented 9 years ago

Yes!!!

It's working now