drivo / sublime-typescript-compiler

TypeScript compiler package for Sublime Text 2. You can compile fragment or whole .ts file into a new plain JavaScipt. Developed for JavaScript prototyping in mind.
Other
5 stars 3 forks source link

LookupError: unknown encoding: #6

Open Mparaiso opened 9 years ago

Mparaiso commented 9 years ago

Hi , using this plugin with ST2 on Windows 8.1 I get the following error each time I try to compile a ts file :

Exception in thread Thread-39:
Traceback (most recent call last):
  File ".\threading.py", line 532, in __bootstrap_inner
  File ".\typescript_compiler.py", line 175, in run
  File ".\typescript_compiler.py", line 131, in _make_text_safeish
LookupError: unknown encoding: 
drivo commented 9 years ago

I guess Windows 8.1 is not able to detect 'utf-8' as a valid encoding label. I added in the v0.1.2 a fallback for encoding issues. Let me know if this last fix would fix your case.

Mparaiso commented 9 years ago

ok,i'll try that asap. thanks.

2015-06-02 16:13 GMT+02:00 setumiami notifications@github.com:

I guess Windows 8.1 is not able to detect 'utf-8' as a valid encoding label. I added in the v0.1.2 a fallback for encoding issues. Let me know if this last fix would fix your case.

— Reply to this email directly or view it on GitHub https://github.com/setumiami/sublime-typescript-compiler/issues/6#issuecomment-107969406 .