Project: titanium
Issue TIMOB-3186: Android: Persistent internal compiler error
h2. Error Message: {code} [INFO] Compiling Javascript Resources ... [ERROR] Error in compiler. , 'utf8' codec can't decode byte 0x8e in position 324: unexpected code byte; Traceback (most recent call last): File "C:\ProgramData\Titanium\mobilesdk\win32\1.5.1\android\builder.py", line 1548, in s.build_and_run(False,avd_id) File "C:\ProgramData\Titanium\mobilesdk\win32\1.5.1\android\builder.py", line 1307, in build_and_run compiler.compile() File "C:\ProgramData\Titanium\mobilesdk\win32\1.5.1\android\compiler.py", line 239, in compile js_contents = self.make_function_from_file(fullpath, pack=False) File "C:\ProgramData\Titanium\mobilesdk\win32\1.5.1\android\compiler.py", line 183, in make_function_from_file file_contents = codecs.open(path,'r',encoding='utf-8').read() File "C:\ProgramData\Titanium\modules\win32\python\1.0.0\lib\codecs.py", line 618, in read return self.reader.read(size) File "C:\ProgramData\Titanium\modules\win32\python\1.0.0\lib\codecs.py", line 424, in read newchars, decodedbytes = self.decode(data, self.errors) UnicodeDecodeError: 'utf8' codec can't decode byte 0x8e in position 324: unexpected code byte {code} h2. Version Info: * Titanium Mobile 1.5.1 * Android SDK r8 and r9 h2. Repo Steps: * Create a new titanium project * Add attached BigInt.js to the /Resources directory * Recompile *Error occurs here* * Remove BigInt.js from /Resources directory * Recompile *Compiler error still occurs* It appears that the entire titanium mobile project is trashed from this point and will not recompile again. Edit: fixed the formatting
Story points: 3