clemos / haxe-sublime-bundle

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

bundle breaks on Sublime Text 2 (linux) #135

Closed Sandremss closed 10 years ago

Sandremss commented 10 years ago

it doesn't detect openfl project properly, unable to use all shortcuts, unable to type the characters "," and "(" (those that trigger the autocomplete) in .hx files.

I've upgraded to Sublime Text 3 and it works like a charm again.

clemos commented 10 years ago

It's weird, because the last change I made was related to ST2 support, and it seemed to work : https://github.com/clemos/haxe-sublime-bundle/issues/134 What error do you get in the console ?

hackergrrl commented 10 years ago

I'm seeing this on ST2 as well with the latest code on master. I see the following on startup:

Reloading plugin /home/stephen/.config/sublime-text-2/Packages/Haxe/HaxeComplete.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./HaxeComplete.py", line 11, in <module>
    import io
  File ".\io.py", line 63, in <module>
ImportError: No module named _fileio

I've been reverting to c18d5a1d54ac50f0c65cdea449b107d681d65785 as a stop-gap, but I'd love to see this fixed.

clemos commented 10 years ago

Can you please let me know if my latest commit fixes it ? (inspired by https://github.com/bgreenlee/sublime-github/issues/43) I don't have any more ST2 installs to test on :S Also, just curious, may I know what OS you're using ?

Confuzedstuff commented 10 years ago

The issue persists in 6a1f3ffee439c14869b7fdb2a837057a2530ad29. I don't see any errors in the console when I try to type "(" or ",". ST2 on Debian sid.

clemos commented 10 years ago

This is almost impossible that no error is visible. By "console" we mean the Sublime Text console (View > Show Console), not the terminal from which you run ST. In any case, ST3 is likely more stable, as I don't test on ST2 anymore.

Confuzedstuff commented 10 years ago

Sorry, used the wrong console.

I get the same error as noffle did at startup (still on 6a1f3ffee439c14869b7fdb2a837057a2530ad29):

Reloading plugin /home/stuffz/.config/sublime-text-2/Packages/Haxe/HaxeComplete.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./HaxeComplete.py", line 11, in <module>
    from io import open
  File ".\io.py", line 63, in <module>
ImportError: No module named _fileio
clemos commented 10 years ago

I think I solved it for good this time :S though I haven't been able to test ;)

Confuzedstuff commented 10 years ago

Looks like everything's working fine now :D Thanks for fixing this.