{ "id": "148146", "key": "AC-135", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-11-13T18:53:31.000+0000", "created": "2015-05-22T22:17:36.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-13T18:53:31.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "I'm trying to build a simple Alloy App with a folder structure inside the views/styles/controllers, for organization purposes.. \r\n\r\n{{app\r\n- controllers\r\n- - folder\r\n- - - somecontroller.js\r\n- styles\r\n- - folder\r\n- - - somecontroller.tss\r\n- views\r\n- - folder\r\n- - - somecontroller.xml}}\r\n\r\nIn the XML, when using a to refer to a controller, this seems to cause an error when I run the app. The app returns the error on runtime:\r\n\r\n[ERROR] : Script Error Couldn't find module: alloy/controllers/folder/somecontroller for architecture: arm64\r\n\r\nIf I take the folder structure out of the views/styles/controllers and leave the .xml/.tss/.js in the top level folders, change the path of the app runs fine. \r\n\r\nIt seems like when building the app, the files inside the folders are not included.", "attachment": [ { "id": "55551", "filename": "app.zip", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-05-23T00:30:10.000+0000", "size": 4595, "mimeType": "application/zip" }, { "id": "55552", "filename": "app2.zip", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-05-23T00:32:33.000+0000", "size": 5184, "mimeType": "application/zip" }, { "id": "55554", "filename": "iOS Simulator Screen Shot May 22, 2015, 8.32.14 PM.png", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-05-23T00:35:44.000+0000", "size": 23862, "mimeType": "image/png" }, { "id": "55553", "filename": "iOS Simulator Screen Shot May 22, 2015, 8.32.31 PM.png", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-05-23T00:33:52.000+0000", "size": 78220, "mimeType": "image/png" } ], "flagged": false, "summary": "Accessing controllers inside folders in Alloy using causes problems in runtime", "creator": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "environment": "Titanium SDK 4.0.0.RC4\r\nAppcelerator Studio 4.0.1\r\nOSX Yosemite 10.10.3", "comment": { "comments": [ { "id": "353354", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "Hello [~echeung@leviton.com] can you please attach a test case? ", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-05-22T23:37:43.000+0000", "updated": "2015-05-22T23:37:43.000+0000" }, { "id": "353356", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "body": "Attached is the sample source files with a /windows inside /views, /styles and /controllers. Two controllers were created: mainwindow and helpwindow\r\n\r\nindex.js contains a tab group with 2 tabs. The tabs are loading the window via with src set to the /windows directory to load the mainwindow.xml and helpwindow.xml", "updateAuthor": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-05-23T00:31:35.000+0000", "updated": "2015-05-23T00:31:35.000+0000" }, { "id": "353357", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "body": "Attached is the sample source files without a subfolder inside /views, /styles and /controllers. Two controllers were created: mainwindow and helpwindow\r\n\r\nindex.js contains a tab group with 2 tabs. The tabs are loading the window via with src pointing to the mainwindow.xml and helpwindow.xml without them being nested inside a folder", "updateAuthor": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-05-23T00:32:37.000+0000", "updated": "2015-05-23T00:32:37.000+0000" }, { "id": "353358", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "body": "The screenshot of the iOS simulator running the app with the loading the controller inside a folder. (error pops up after starting the app past the splash screen)", "updateAuthor": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-05-23T00:35:15.000+0000", "updated": "2015-05-23T00:35:15.000+0000" }, { "id": "353359", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "body": "The screenshot of the iOS simulator running the app with the loading the controller that isn't inside a folder. No issues", "updateAuthor": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-05-23T00:35:50.000+0000", "updated": "2015-05-23T00:35:50.000+0000" }, { "id": "353659", "author": { "name": "rtrueman", "key": "rtrueman", "displayName": "Rob Trueman", "active": true, "timeZone": "America/New_York" }, "body": "I'm having the same issue when running my app on the iPhone 6. Surprisingly, I'm able to successfully run the app using the iOS Simulator - iPhone 6. My app is an Alloy app with view/models/controllers in a folder structure under app.", "updateAuthor": { "name": "rtrueman", "key": "rtrueman", "displayName": "Rob Trueman", "active": true, "timeZone": "America/New_York" }, "created": "2015-05-27T15:36:52.000+0000", "updated": "2015-05-27T15:36:52.000+0000" }, { "id": "363777", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nTested this issue. This is not a valid bug, working expected in the simulator.\r\n\r\n*Test Environments:*\r\n\r\nCLI Version :4.1.3\r\nTitanium SDK Version:4.1.1.GA\r\nSimulator:iPhone 6,iOS SDK: 8.2\r\nAppc Studio: Appcelerator Studio, build: 4.1.1.201507141126\r\nAlloy: 1.7.6\r\nMac OS X,Version = 10.10.1\r\n\r\n\r\n\r\n*Test Steps:*\r\n\r\n# Copy customer’s code to app directory.\r\n# Go to *app>controllers>Rename the Windows folder* as *tests*\r\n# Repeat step 2 for views and styles folder.\r\n# Run Project.\r\n\r\n*Test Code:*\r\n\r\n*index.xml*\r\n{code}\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*index.js*\r\n\r\n{code}\r\n\r\n$.index.open();\r\n\r\n{code}\r\n\r\n*mainwindow.xml*:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*helpwindow.xml*:\r\n\r\n{code}\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*Test Result:*\r\n\r\n[Project | http://i57.tinypic.com/rs6ept.png] is running successfully without any error.\r\n\r\nHere is console log:\r\n\r\n{code}\r\n\r\n[INFO] : Initiating Xcode pre-compile phase\r\n[INFO] : Processing JavaScript files\r\n[INFO] : Processing Titanium namespace resources\r\n[INFO] : Skipping xcodebuild\r\n[INFO] : Finished building the application in 1s 91ms\r\n[INFO] : Launching iOS Simulator\r\n[INFO] : Project built successfully in 15s 498ms\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] : Application started\r\n[INFO] : AC135/1.0 (4.1.0.d57aa7d)\r\n{code}\r\n\r\n\r\nThanks", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-14T11:13:17.000+0000", "updated": "2015-09-14T11:33:18.000+0000" }, { "id": "364010", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "body": "As Rob experienced, It seems like I was able to get it working on the iOS simulator.\r\n\r\nBut on an actual device (iPhone 5S) It does not work.\r\n\r\nPlease change the test case to use an actual device.", "updateAuthor": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2015-09-15T21:16:00.000+0000", "updated": "2015-09-15T21:16:00.000+0000" }, { "id": "364068", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested on actual device and it works as per details below.\r\n\r\n*Test Environments:*\r\n\r\nCLI Version :4.1.3\r\nTitanium SDK Version:4.1.1.GA,\r\nAppc Studio: Appcelerator Studio, build: 4.1.1.201507141126\r\nAlloy: 1.7.6\r\nMac OS X,Version = 10.10.1.\r\nDevice:iPad,iPod 5G\r\n\r\n*iPad logs:*\r\n{code}\r\n[INFO] : Installing app on device: iPad\r\n\r\n[INFO] : App successfully installed on device: iPad\r\n\r\n[INFO] : Project built successfully in 11s 242ms\r\n\r\nPlease manually launch the application\r\n\r\n-- Start application log -----------------------------------------------------\r\n\r\n[INFO] : com.gsl.ac135alloy/1.0 (0.0.0.7e39876)\r\n\r\n[LiveView] Client connected\r\n\r\n{code}\r\n\r\n\r\n*iPod 5G logs:*\r\n\r\n{code}\r\n[INFO] : Installing app on device: iPod 5G\r\n\r\n[INFO] : App successfully installed on device: iPod 5G\r\n\r\n[INFO] : Project built successfully in 13s 649ms\r\n\r\nPlease manually launch the application\r\n\r\n-- Start application log -----------------------------------------------------\r\n\r\n[INFO] : com.gsl.ac135alloy/1.0 (0.0.0.7e39876)\r\n\r\n{code}\r\n\r\n\r\n\r\nThanks\r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-16T10:31:05.000+0000", "updated": "2015-11-13T18:53:24.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }