{ "id": "106509", "key": "TIMOB-12094", "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": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14789", "description": "2012 Sprint 26 JS", "name": "2012 Sprint 26 JS", "archived": true, "released": true, "releaseDate": "2012-12-31" }, { "id": "14786", "description": "2012 Sprint 26", "name": "2012 Sprint 26", "archived": true, "released": true, "releaseDate": "2012-12-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-20T16:21:48.000+0000", "created": "2012-12-14T00:15:01.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-ios100112", "qe-port", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "29511", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "115814", "key": "TIMOB-14187", "fields": { "summary": "LiveView: iOS: Build failed for device with LiveView enabled ", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-31T22:03: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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "*Note* The previous behavior is for device builds the app would successfully build, but crash when run on device.\r\n\r\nSteps to reproduce:\r\n1. Create a default Titanium mobile project in studio\r\n2. Add the following snippet of code to app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n \r\nwin.crash(arg){};\r\n{code}\r\n3. Build the app for iOS device\r\n\r\nActual result:\r\nThe pre-compilation phase will fail (As per Chris Barber's investigation)\r\nbut XCode will continue on and install on device. Then an error message will be displayed saying app.js can't be found\r\n\r\nExpected result:\r\nA compilation error should be generated in the uglify step", "attachment": [], "flagged": false, "summary": "CLI : iOS: When invalid code is used in an app.js the pre-compilation phase will fail on iOS device builds", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX 10.8.2\r\nTi Studio build 3.0.0.201212112036\r\nTi Mobile SDK build 3.0.0.v20121212184921\r\nCLI build version 3.0.21", "comment": { "comments": [ { "id": "231385", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3598\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3599", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-14T02:07:54.000+0000", "updated": "2012-12-14T02:07:54.000+0000" }, { "id": "232015", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "body": "ALso noticing this with Alloy compilation. \n\nWhen Alloy pre-compile fails, the build execution is not halted.", "updateAuthor": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2012-12-19T17:23:27.000+0000", "updated": "2012-12-19T17:23:27.000+0000" }, { "id": "232103", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For those experiencing the issue, please download the following build of the SDK:\n\n* OSX: http://nightlies.s3.amazonaws.com/mobile/mobilesdk-3.0.1.v20121218130634-osx.zip\n* Linux: http://nightlies.s3.amazonaws.com/mobile/mobilesdk-3.0.1.v20121218130634-linux.zip\n* Windows: http://nightlies.s3.amazonaws.com/mobile/mobilesdk-3.0.1.v20121218130634-win32.zip\n\nYou may install these manually into your SDK folder, or using Studio's *Help > Install Titanium SDK...* menu option", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-20T04:15:43.000+0000", "updated": "2012-12-20T04:15:43.000+0000" }, { "id": "235371", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "OSX 10.8.2\nTi Studio build: 3.0.1.201212181159\nTi Mobile SDK build: 3.0.2.v20130121140213\nTi Mobile SDK build: 3.1.0.v20130114171802\nCLI build version 3.0.23", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T19:34:29.000+0000", "updated": "2013-01-22T19:34:29.000+0000" }, { "id": "235373", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\nA compilation Error:\n[TRACE] : \b\b \bCommand /bin/sh failed with exit code 1\n[ERROR] : \b\b \b** BUILD FAILED **\n[ERROR] : \b\b \bThe following build commands failed:\n[ERROR] : \b\b \b\tPhaseScriptExecution Pre-Compile build/test.build/Debug-iphoneos/test-universal.build/Script-DABB369F12E8CB280026A6EA.sh\n[ERROR] : \b\b \b(1 failure)", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T19:36:06.000+0000", "updated": "2013-01-22T19:36:06.000+0000" }, { "id": "285359", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201312191455\r\nSDK:3.2.0.v20131218153242\r\nalloy: 1.3.0-cr2\r\nacs: 1.0.11\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-cr3\r\ntitanium-code-processor: 1.1.0-cr2\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\n\r\nWhen the above code snippet is added the not getting any precompilation error.\r\nBut the Simulator gets launched and after that error appears CLI as \r\n{code}\r\n[ERROR] Script Error {\r\n[ERROR] line = 3;\r\n[ERROR] message = \"Parse error\";\r\n[ERROR] name = SyntaxError;\r\n[ERROR] sourceId = 292371200;\r\n[ERROR] sourceURL = \"file:///Users/p.agarwal/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/BBE0F93C-CB86-48F9-92FD-59B1B7DFBBEA/defaultProject.app/app.js\";\r\n[ERROR] } \r\n{code}", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-20T11:06:16.000+0000", "updated": "2013-12-20T11:06:16.000+0000" }, { "id": "285375", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Syntax checking ONLY happens when performing device and distribution builds.\r\n\r\nIf you are building for simulator/emulator, you won't see any JS errors until the app is launched. I've filed TIMOB-16058 to add support for syntax error checking.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-20T16:21:48.000+0000", "updated": "2013-12-20T16:21:48.000+0000" }, { "id": "416559", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed, if there are any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:03:58.000+0000", "updated": "2017-03-31T22:03:58.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }