Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4190] Android: Moving a working project from Mac to Win causes the Win project to throw an exception

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-08-06T20:04:08.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelsandroidbuild, cb-verified, exception, hidden_files
ReporterNatalie Huynh
AssigneeChris Barber
Created2011-05-23T16:19:20.000+0000
Updated2017-03-16T21:35:00.000+0000

Description

Steps to Reproduce 1. Create a project on mac and compile to run on emulator 2. Move project over to Win machine (some hidden mac files get moved) 3. Run on emulator Actual Result: [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\builder.py", line 1946, in [ERROR] s.build_and_run(False, avd_id, debugger_host=debugger_host) [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\builder.py", line 1699, in build_and_run [ERROR] True, project_dir = self.top_dir, include_all_ti_modules=include_all_ti_modules) [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\android.py", line 253, in create [ERROR] self.build_modules_info(resource_dir, app_bin_dir, include_all_ti_modules=include_all_ti_modules) [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\android.py", line 162, in build_modules_info [ERROR] compiler.compile(compile_bytecode=False, info_message=None) [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\compiler.py", line 244, in compile [ERROR] js_contents = self.make_function_from_file(fullpath, pack=False) [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\compiler.py", line 188, in make_function_from_file [ERROR] file_contents = codecs.open(path,'r',encoding='utf-8').read() [ERROR] File "C:\Users\labuser\Downloads\titanium.win32.x86\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1299522150\python\lib\codecs.py", line 618, in read [ERROR] return self.reader.read(size) [ERROR] File "C:\Users\labuser\Downloads\titanium.win32.x86\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1299522150\python\lib\codecs.py", line 424, in read [ERROR] newchars, decodedbytes = self.decode(data, self.errors) [ERROR] UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 37: unexpected code byte Expected Result: To be able to bypass those hidden files

Comments

  1. Chris Barber 2013-08-06

    Dupe of TIMOB-3186.
  2. Lee Morris 2017-03-16

    Closing ticket as duplicate.

JSON Source