[TIMOB-7816] Android: Ignore files that start with ._
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-19T01:18:57.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0 |
Components | Android, Tooling |
Labels | androidbuild, ay-verified, cb-verified |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-02-25T19:37:42.000+0000 |
Updated | 2013-12-16T11:05:27.000+0000 |
Description
On a Mac, some editors will generate a ._ file. When you compile an Android app, the android/compiler.py's make_function_from_file() function will error saying:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 37: invalid start byte
Just need to ignore ._ files.
PR: https://github.com/appcelerator/titanium_mobile/pull/4781
Observation: Case 1: Hidden Project is created with name ._ and it does not appear in workspace. Tiapp.xml is created and shown on the editor. Case 2: A file with name ._test.js with alert was added in project. App runs successfully without any impact on project. And alert was ignored. Verified fix with: OSX: 10.8.5 Xcode: 5.0 Appcelerator Studio:3.2.0.201312151544 SDK:3.2.0.v20131213102445 alloy: 1.3.0-cr acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Device: HTC (v4.0.3)