{ "id": "63818", "key": "TIMOB-3186", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-19T01:12:05.000+0000", "created": "2011-04-15T03:39:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "androidbuild", "ay-verified", "cb-verified", "core" ], "versions": [], "issuelinks": [ { "id": "30653", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "65689", "key": "TIMOB-4190", "fields": { "summary": "Android: Moving a working project from Mac to Win causes the Win project to throw an exception ", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "31402", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "119161", "key": "TIMOB-14977", "fields": { "summary": "Android Build: Compile resources", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-13T01:27:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "h2. Error Message:\r\n\r\n{code}\r\n[INFO] Compiling Javascript Resources ...\r\n[ERROR] Error in compiler. , 'utf8' codec can't decode byte 0x8e in position 324: unexpected code byte; Traceback (most recent call last):\r\n File \"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.5.1\\android\\builder.py\", line 1548, in s.build_and_run(False,avd_id)\r\n File \"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.5.1\\android\\builder.py\", line 1307, in build_and_run compiler.compile()\r\n 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)\r\n 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()\r\n File \"C:\\ProgramData\\Titanium\\modules\\win32\\python\\1.0.0\\lib\\codecs.py\", line 618, in read return self.reader.read(size)\r\n File \"C:\\ProgramData\\Titanium\\modules\\win32\\python\\1.0.0\\lib\\codecs.py\", line 424, in read newchars, decodedbytes = self.decode(data, self.errors)\r\n UnicodeDecodeError: 'utf8' codec can't decode byte 0x8e in position 324: unexpected code byte\r\n{code}\r\n\r\nh2. Version Info:\r\n\r\n* Titanium Mobile 1.5.1\r\n* Android SDK r8 and r9\r\n\r\nh2. Repo Steps:\r\n\r\n* Create a new titanium project\r\n* Add attached BigInt.js to the /Resources directory\r\n* Recompile *Error occurs here*\r\n* Remove BigInt.js from /Resources directory\r\n* Recompile *Compiler error still occurs*\r\n\r\nIt appears that the entire titanium mobile project is trashed\r\nfrom this point and will not recompile again.\r\n\r\nEdit: fixed the formatting", "attachment": [ { "id": "18273", "filename": "bigint.js", "author": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:39:01.000+0000", "size": 50446, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Persistent internal compiler error", "creator": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "250538", "author": { "name": "jkowalska", "key": "jkowalska", "displayName": "Justyna Kowalska", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I had a similar issue (just different byte and position).\r\nMy fix:\r\n1. Open emulator\r\n2. Wipe out your app cache and data and uninstall it\r\n3. Remove build folder and build log file.\r\n4. Create new project in titanium\r\n5. Place the file that wasn't utf-8 encoded in the new project\r\n6. The file will be red marked, an error should show up in Problems tab\r\n7. Use quick-fix to utf-8 encode file\r\n8. Move the fixed file to old project\r\n\r\nI noticed that when I changed encoding in external editor like notepad++, titanium didn't mark it but still took it for wrongly encoded file.\r\nHope it helps someone.", "updateAuthor": { "name": "jkowalska", "key": "jkowalska", "displayName": "Justyna Kowalska", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T11:11:34.000+0000", "updated": "2013-05-07T11:12:37.000+0000" }, { "id": "275791", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:12:00.000+0000", "updated": "2013-10-19T01:12:00.000+0000" }, { "id": "279277", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311122029\nTitanium SDK, build: 3.2.0.v20131112144044\nCLI: 3.2.0\nAlloy: 1.3.0\n\nProject successfully builds and installs on:\nAndroid Emulator: 2.3.3\nAndroid Device: Xperia U (2.3.7), Xperia Arc S (4.0.4)\n\nNo compiler error is thrown.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T01:27:32.000+0000", "updated": "2013-11-13T01:27:32.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }