Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7816] Android: Ignore files that start with ._

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-10-19T01:18:57.000+0000
Affected Version/sRelease 2.0.0
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroidbuild, ay-verified, cb-verified
ReporterChris Barber
AssigneeChris Barber
Created2012-02-25T19:37:42.000+0000
Updated2013-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.

Comments

  1. Allen Yeung 2013-10-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/4781
  2. Pragya Rastogi 2013-12-16

    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)

JSON Source