haxe-sublime-bundle icon indicating copy to clipboard operation
haxe-sublime-bundle copied to clipboard

completion errors

Open nadako opened this issue 9 years ago • 2 comments

I started to get these errors since lately and it's very annoying, because it asks to reload my current file because of that and if I agree, I'm losing my changes...

Traceback (most recent call last):
  File "C:\Users\korostelev\sublime\sublime_plugin.py", line 304, in on_activated
    callback.on_activated(v)
  File "C:\Users\korostelev\sublime\Data\Packages\Haxe\HaxeComplete.py", line 530, in on_activated
    return self.on_open_file( view )
  File "C:\Users\korostelev\sublime\Data\Packages\Haxe\HaxeComplete.py", line 550, in on_open_file
    self.highlight_errors( view )
  File "C:\Users\korostelev\sublime\Data\Packages\Haxe\HaxeComplete.py", line 504, in highlight_errors
    right = len(line[:right].decode("utf-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 4: unexpected end of data

nadako avatar Apr 21 '15 12:04 nadako

Can't reproduce. Can you provide some test project?

ghost avatar Apr 21 '15 15:04 ghost

Temporarily wrapped the code that is causing the issue in try block.

ghost avatar Apr 21 '15 15:04 ghost