clemos / haxe-sublime-bundle

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

Can't type "(" or "," / Completion doesn't work #134

Closed Dvergar closed 10 years ago

Dvergar commented 10 years ago

Here is the error :

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 62, in reload_plugin
  File ".\HaxeComplete.py", line 29, in <module>
    import yaml
  File "C:\Softwares\Sublime\Data\Packages\Haxe\PyYAML-3.10/lib3/yaml\__init__.py", line 284
    class YAMLObject(metaclass=YAMLObjectMetaclass):
                              ^
SyntaxError: invalid syntax

Removing the explicit metaclass= moved the error to :

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 62, in reload_plugin
  File ".\HaxeComplete.py", line 29, in <module>
    import yaml
  File "C:\Softwares\Sublime\Data\Packages\Haxe\PyYAML-3.10/lib3/yaml\__init__.py", line 8, in <module>
    from .loader import *
  File "C:\Softwares\Sublime\Data\Packages\Haxe\PyYAML-3.10/lib3/yaml\loader.py", line 4, in <module>
    from .reader import *
  File "C:\Softwares\Sublime\Data\Packages\Haxe\PyYAML-3.10/lib3/yaml\reader.py", line 45, in <module>
    class Reader(object):
  File "C:\Softwares\Sublime\Data\Packages\Haxe\PyYAML-3.10/lib3/yaml\reader.py", line 137, in Reader
    NON_PRINTABLE = re.compile('[^\x09\x0A\x0D\x20-\x7E\x85\xA0-\uD7FF\uE000-\uFFFD]')
  File ".\re.py", line 190, in compile
  File ".\re.py", line 245, in _compile
sre_constants.error: bad character range
clemos commented 10 years ago

You use Sublime Text 2, right ?

Dvergar commented 10 years ago

Yes. (Does Sublime Text 3 use... Python 3 ?)

Switching back to this revision https://github.com/clemos/haxe-sublime-bundle/tree/c18d5a1d54ac50f0c65cdea449b107d681d65785 for now.

clemos commented 10 years ago

I've just pushed a fix. Didn't test it, but it should work for ST2. Can you please confirm ?

clemos commented 10 years ago

BTW yes, ST3 uses Python 3, so supporting both is sometimes a little tricky ;)

Dvergar commented 10 years ago

Fixed ! Thanks for handling this that quickly :)

clemos commented 10 years ago

You're welcome :D