{ "id": "148823", "key": "TIMOB-19034", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-17T20:14:35.000+0000", "created": "2015-06-16T14:57:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-06-23T00:08:06.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h1. Problem\r\nWhen running the emulator, if errors are encountered, they should show the standard red screen of death to the user. Even if the underlying build type is `release`, we need to find a way to surface these errors to the developer in the traditional Titanium way.\r\n\r\nh2. Solution\r\nIntroduce (or tweak, if it's already there) a deploy type with values such as \"development\" or \"production\" like we do for other platforms. Then, use this value to decide whether or not we should show the error dialog, instead of the build type.\r\n\r\nh2. Example\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nwin.add(Ti.UI.createLabel({ text: 'Please Wait...' }));\r\nwin.open();\r\nsetTimeout(function() {\r\n throw new Error('oh no!');\r\n}, 2000);\r\n{code}\r\n{code}ti build -p windows -C 8-1-1 -G 00000000-0000-1000-8000-000000000000{code}", "attachment": [], "flagged": false, "summary": "Windows: Building to Emulator Should Allow Error Dialogs", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 420, "state": "closed", "name": "2015 Sprint 12 Windows", "startDate": "2015-06-07T01:15:19.706Z", "endDate": "2015-06-21T01:15:00.000Z", "completeDate": "2015-06-20T23:02:18.410Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "355320", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/294", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-17T07:52:04.000+0000", "updated": "2015-06-17T07:52:04.000+0000" }, { "id": "355703", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nDevice & emulator both show error dialogs.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.0.201506211738\r\nTi SDK: 4.1.0.v20150622145911\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-1 \r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows phone emulator : 8.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-23T00:08:00.000+0000", "updated": "2015-06-23T00:08:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }