clemos / haxe-sublime-bundle

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

Not working and freezing on OSX #199

Closed josimard closed 9 years ago

josimard commented 9 years ago

Since today, the package is not working on multiple of our OSX 10.9.5 computers. I can't find why, but the package is literally freezing Sublime Text 2.0.2 and the .hx files are opening empty.

clemos commented 9 years ago

I recently merged a couple PRs: https://github.com/clemos/haxe-sublime-bundle/pulls?q=is%3Apr+is%3Aclosed Maybe that's related @r3a1ay @andyli ?

ghost commented 9 years ago

I'm testing the package in 2.0.2 version. Please wait.

ghost commented 9 years ago

Meanwhile try to add this to your user settings:

"haxe_use_cache" : false
ghost commented 9 years ago

It works on my linux comp. Can you share your build file (.hxml)?

josimard commented 9 years ago

It's a Flambe 4.1.0 project, so I cannot see no hxml files... The project templates comes with an hxproj file: http://pastie.org/10031386

"haxe_use_cache" did not seems to solve the issue...

ghost commented 9 years ago

Please share your flambe.yaml file. hxproj file is used by flashdevelop.

Check your python version: View -> Show Console

import sys
sys.version

If you use python 2 try to replace _HaxeCompleteinst function in Packages/Haxe/HaxeHelper.py with this one:

def HaxeComplete_inst():
    try:  # Python 3
        from .HaxeComplete import HaxeComplete
    except (ValueError):  # Python 2
        from HaxeComplete import HaxeComplete
    return HaxeComplete.inst
josimard commented 9 years ago

Thanks, It did fix the issue!

I tried on OSX 10.10+ and I did not run into the problem.

FIY, on OSX 10.9 I had Python 2.7.5