{ "id": "122441", "key": "ALOY-876", "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": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" }, { "id": "15754", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-14T17:02:23.000+0000", "created": "2013-11-13T23:49:52.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-manualtest" ], "versions": [ { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-14T17:02:23.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": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "h2. test case update\r\n\r\nThe test case was slightly unclear as to what would cause this. If you follow the instructions below you will not cause the error on the first attempt. You need to do the following.\r\n\r\n# Create a new alloy app\r\n# Put the following in alloy.js\r\n{code:javascript}\r\nAlloy.isTablet = false;\r\nAlloy.isHandheld = true;\r\n{code}\r\n# Run the app for ios once. It should start successfully.\r\n# Now delete the Resources folder\r\n# Attempt to run the app again (or just compile for alloy, may make it easier to read the log). You should see the alloy log state that it is using the cached app.js, which has since been deleted. This should cause an error.\r\n\r\nh2. original\r\n\r\nHi,\r\n\r\nI sometimes have the problem that my app.js is not generated. I'm using Alloy 1.3.0 and SDK 3.2.0. To reproduce this issue follow the following steps:\r\n* Delete the complete Resource directory.\r\n* Make sure you have something in alloy.js. For instance\r\nAlloy.isTablet = false;\r\nAlloy.isHandheld = true;\r\n* Run for instance the following command:\r\n{code}\r\ntitanium build -p ios --sdk 3.2.0.v20131108155642\r\n{code}\r\n\r\nSame issue with just running alloy compile.... Deleting the Resource directory is more or less just to demonstrate the issue. I do not exactly remember how I ran into this issue. I usually never delete the Resource directory but I could reproduce it this way. In this case the buildLog / hash of the app.js still exists but app.js does not exist under the Resource directory and won't be created.\r\n\r\nh3. Result\r\nYou will notice an empty Resources/app.js and no Resource/iphone/app.js. After opening Titanium Studio, making a whitespace change to alloy.js and saving the file, the app.js will be generated correct on the next titanium build run. But only if I make a change to the file. Re-running the above titanium build command does not work.\r\nI guess it is related to ALOY-866 as I can see in the build process it things the app.js is there and it wants to use the cached one.\r\n\r\nQ&A Ticket: http://developer.appcelerator.com/question/159428/alloy-130---could-not-find-appjs\r\n\r\nh3. Environment\r\n- OSX 10.8.5\r\n- iOS Simulator 7.0\r\n- Xcode 5.0.1\r\n- Latest Titanium SDK: 3.2.0.v20131108155642\r\n- Latest Titanium CLI Master 3.2.0\r\n- Latest Alloy Master 1.3.0", "attachment": [], "flagged": false, "summary": "Alloy 1.3.0 - Could not find app.js", "creator": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "279797", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/277\r\n\r\nFunctional test should include simply following the updated test case in the description of this ticket.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-15T17:44:38.000+0000", "updated": "2013-11-15T17:44:38.000+0000" }, { "id": "282272", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed.\n\nTiSDK 3.2.0.v20131127194046\nCLI 3.2.0-beta\nAlloy 1.3.0-beta\n\nClosing", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-03T23:46:26.000+0000", "updated": "2013-12-03T23:46:26.000+0000" }, { "id": "316898", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening for updating 'tester' field and labels.\r\nTest case added.\r\n\r\nRe-verified as fixed. \r\nTiSDK 3.3.1.v20140725130913\r\nAlloy 1.5.0-dev\r\nAppcelerator Studio 3.3.1.201408011410\r\nCLI 3.3.0", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-04T18:29:11.000+0000", "updated": "2014-08-05T00:06:14.000+0000" }, { "id": "318650", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "If this is \"Re-verified as fixed\" can it be closed again?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-08-14T14:00:18.000+0000", "updated": "2014-08-14T14:00:18.000+0000" }, { "id": "318675", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Tim - yes. \r\nClosing. ", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T17:02:16.000+0000", "updated": "2014-08-14T17:02:16.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }