{ "id": "131774", "key": "ALOY-1053", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" }, { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-17T00:13:18.000+0000", "created": "2014-06-16T16:59:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded" ], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-06-20T22:53:58.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": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "When building an app that works on 3.2.3 I receive the following error: \r\n{code}\r\n[INFO] : [sliderPopover.xml] view processing...\r\n[INFO] : style: \"sliderPopover.tss\"\r\n[INFO] : view: \"sliderPopover.xml\"\r\n[DEBUG] : /usr/local/lib/node_modules/alloy/Alloy/commands/compile/styler.js:360\r\n[DEBUG] : \t\t\t\t\tif(typeof style.type !== 'undefined' && (style.type).indexOf('Ti.UI.PICKE\r\n[DEBUG] : \t\t\t\t\t \r\n[DEBUG] : ^\r\n[ERROR] : : Object 1 has no method 'indexOf'\r\n[DEBUG] : at processStyle (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/styler.js:360:59)\r\n[DEBUG] : at Object.exports.processStyle (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/styler.js:411:2)\r\n[DEBUG] : at Object.exports.generateStyleParams (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/styler.js:573:20)\r\n[DEBUG] : at parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/default.js:37:27)\r\n[DEBUG] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[DEBUG] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/default.js:10:27)\r\n[DEBUG] : at parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.Label.js:17:30)\r\n[DEBUG] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[DEBUG] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.Label.js:6:27)\r\n[DEBUG] : at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:306:48)\r\n[DEBUG] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:380:29\r\n[DEBUG] : at Array.forEach (native)\r\n[DEBUG] : at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] : at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:375:5)\r\n[DEBUG] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:380:29\r\n[DEBUG] : at Array.forEach (native)\r\n[DEBUG] : at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] : at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:375:5)\r\n[DEBUG] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:380:29\r\n[DEBUG] : at Array.forEach (native)\r\n[DEBUG] : at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] : at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:375:5)\r\n[DEBUG] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:570:28\r\n[DEBUG] : at Array.forEach (native)\r\n[DEBUG] : at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] : at parseAlloyComponent (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:559:5)\r\n[DEBUG] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:252:6\r\n[DEBUG] : at Array.forEach (native)\r\n[DEBUG] : at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:241:6\r\n[DEBUG] : at Array.forEach (native)\r\n[DEBUG] : at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] : at module.exports (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:237:4)\r\n[DEBUG] : at Object. (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:100:46)\r\n[DEBUG] : at Module._compile (module.js:456:26)\r\n[DEBUG] : at Object.Module._extensions..js (module.js:474:10)\r\n[DEBUG] : at Module.load (module.js:356:32)\r\n[DEBUG] : at Function.Module._load (module.js:312:12)\r\n[DEBUG] : at Module.require (module.js:364:17)\r\n[DEBUG] : at require (module.js:380:17)\r\n[DEBUG] : at Object. (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)\r\n[DEBUG] : at Module._compile (module.js:456:26)\r\n[DEBUG] : at Object.Module._extensions..js (module.js:474:10)\r\n[DEBUG] : at Module.load (module.js:356:32)\r\n[DEBUG] : at Function.Module._load (module.js:312:12)\r\n[DEBUG] : at Function.Module.runMain (module.js:497:10)\r\n[DEBUG] : at startup (node.js:119:16)\r\n[DEBUG] : at node.js:902:3\r\n[ERROR] : Alloy compiler failed\r\n{code}", "attachment": [ { "id": "48974", "filename": "Test.zip", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T17:58:23.000+0000", "size": 5925866, "mimeType": "application/zip" } ], "flagged": false, "summary": "Build error using 'type' property ", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.9.2\r\nAppcelerator Studio, build: 3.3.1.201406131701\r\nTitanium SDK version 3.3.0.v20140306012502\r\nCLI version 3.3.0-rc\r\nAlloy 1.4.0-rc", "closedSprints": [ { "id": 142, "state": "closed", "name": "2014 Sprint 12 Alloy", "startDate": "2014-06-09T16:00:25.715Z", "endDate": "2014-06-23T16:00:00.000Z", "completeDate": "2014-06-23T14:35:50.386Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "309143", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Alan, can you share the project or post a test case that exhibits the error?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-16T17:10:40.000+0000", "updated": "2014-06-16T17:10:40.000+0000" }, { "id": "309153", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have attached a very simple test case. The issue stems from a custom property that was being set named \"type\". You will see it in the index.tss as type:2. If that is commented out the project builds fine but with the property set the app builds pre Alloy 1.4.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T17:58:23.000+0000", "updated": "2014-06-16T17:58:23.000+0000" }, { "id": "309247", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR https://github.com/appcelerator/alloy/pull/452\r\n\r\nTest app: use the attached or use test/apps/testing/ALOY-263 or test/apps/testing/ALOY-1003\r\n\r\nFunctional test: apps should compile without error. ALOY-263 should display a date picker when run. ALOY-1003 should show both a listview (whose items have a custom 'type' property) and a date picker", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-17T00:13:18.000+0000", "updated": "2014-06-17T00:13:18.000+0000" }, { "id": "310295", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed.\r\n\r\nTiSDk 3.3.0.v20140620104112 \r\nAppcelerator Studio 3.3.0.201406171619 \r\nCLI 3.3.0-rc2\r\nAlloy 1.4.0-rc2\r\n\r\nClosing", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-20T22:48:39.000+0000", "updated": "2014-06-20T22:48:39.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }