{ "id": "111509", "key": "TIMOB-13155", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15280", "description": "2013 Sprint 06 JS", "name": "2013 Sprint 06 JS", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-26T22:17:03.000+0000", "created": "2013-03-21T21:56:18.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "qe-3.1.0", "qe-closed-3.1.0", "qe-port", "regression" ], "versions": [], "issuelinks": [ { "id": "26903", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "111520", "key": "TISTUD-3901", "fields": { "summary": "Studio: Code changes in app.js are not being reflected in simulator", "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": "Critical", "id": "1" }, "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": "2013-04-10T22:57:03.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": "While running app on simulator I encountered this issue. When changes in JS code are made to app.js, they were not reflected in the simulator. Only deleting the project's build folder or cleaning project applies changes.\r\n\r\nTest steps:\r\n1. Run the following code in the simulator\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:\"green\"\r\n\t});\r\n\t\r\nvar button = Ti.UI.createButton({\r\n\ttitle:\"click me\"\r\n});\r\n\r\nvar Cloud = require('ti.cloud');\r\n\r\n\r\nbutton.addEventListener(\"click\", function() {\r\n\tTi.API.info('click fired');\r\n\tCloud.Users.login({\r\n\t\tlogin : 'user',\r\n\t\tpassword : 'password'\r\n\t}, function(e) {\r\n\t\tif (e.success) {\r\n\t\t\talert('worked');\r\n\t\t} else {\r\n\t\t\talert('error');\r\n\t\t\tTi.API.info(e.message);\r\n\t\t}\r\n\t});\r\n}); \r\n\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\n2. Change the following\r\nbackgroundColor:\"green\" to \r\nbackgroundColor:\"blue\"\r\n3. Run the app in simulator again without cleaning with --deploy-type test\r\n\r\nActual result:\r\n1. Screen is green\r\n3. Screen is green\r\n\r\nExpected result:\r\n1. Screen should be green\r\n2. Screen should be blue\r\n\r\nAlso we were able to reproduce this issue using an Alloy project and Studio. Building using CLI from the terminal works as expected.\r\n\r\nThe environment:\r\n\r\n1)\r\nTiStudio: 3.1.0.201303202340\r\nTiSDK: 3.1.0.v20130319125050\r\nTiCLI: CLI version 3.0.24\r\nNode version: 0.8.17\r\nAlloy: 1.1.0 \r\n2)\r\nTiStudio: 3.1.0.201303202340\r\nTiSDK: 3.1.0.v20130321105651\r\nTiCLI: CLI version 3.0.25\r\nNode: 0.8.17\r\nAlloy: 1.1.0\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Studio: Code changes in app.js are not being reflected in simulator when --deploy-type test", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 3.1.0.201303182358\r\nTitanium SDK, build: 3.1.0.v20130319225749\r\niPhone 6.1 simulator \r\nCLI 3.0.25", "comment": { "comments": [ { "id": "243599", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Studio is passing in the wrong deploy type:\r\n\r\n{code}\r\n\"/usr/local/bin/titanium\" \"build\" \"--platform\" \"iphone\" \"--sdk\" \"3.1.0.v20130308171817\" \"--log-level\" \"trace\" \"--target\" \"simulator\" \"--ios-version\" \"6.0\" \"--device-family\" \"iphone\" \"--sim-version\" \"6.0\" \"--deploy-type\" \"test\" \"--retina\" \"--tall\" \"--skip-js-minify\" \"--no-colors\" \"--no-prompt\"\r\n{code}\r\n\r\nThe deploy type should not be test since this is regular Titanium Studio; it should be \"development\". We should also not be passing in \"--skip-js-minify\" flag; opening the launch config dialog shows \"Enable JavaScript Minification\" is enabled.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T23:53:45.000+0000", "updated": "2013-03-21T23:54:59.000+0000" }, { "id": "243600", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test, build an iOS app for the simulator, but set the --deploy-type to test. Change something like the background color and recompile and you should see the change.\n\nMaster pull request: https://github.com/appcelerator/titanium_mobile/pull/4008", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-03-21T23:55:19.000+0000", "updated": "2013-03-21T23:55:19.000+0000" }, { "id": "246970", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified fix with:\nAppcelerator Studio, build: 3.1.0.201304082106\nSDK, build: 3.1.0.v20130409124549 \nCLI 3.1.0-cr", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-10T22:56:11.000+0000", "updated": "2013-04-10T22:56:11.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }