{ "id": "172395", "key": "AC-5955", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-10-14T22:08:39.000+0000", "created": "2018-10-04T15:21:03.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-14T22:08:39.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": [], "description": "h3. Steps to Reproduce\nI am having a Titanium project in which I am making changes in .js file in app>> controller>>lib folder. After making changes it should reflect the changes, when I run the app, but it is not. \n\nAt the same time, other team member is making change to the same code on his machine, it works. \n\nI even did the project clean, but issue remains\n\nh3. Actual Result\nAs recommened instead of \n\nvar dbLib = require('database');\n\nused\n\nvar dbLib = require('./database');\n\nGetting error\n\n[ERROR] : Script Error {\n[ERROR] : column = 20;\n[ERROR] : line = 15;\n[ERROR] : message = 'undefined is not an object (evaluating 'db.getIsLoading')';\n\nh3. Expected Result\nChange to database.js file in app>>controller>>lib folder must not show the error.", "attachment": [ { "id": "65684", "filename": ".log", "author": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-04T15:21:04.000+0000", "size": 243801, "mimeType": "text/plain" }, { "id": "65685", "filename": "diagnostic6236905944435787733.log", "author": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-04T15:21:29.000+0000", "size": 2819858, "mimeType": "text/plain" } ], "flagged": false, "summary": "Changes to the .js file in app>conroller folder not getting reflected", "creator": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 5.0.0", "comment": { "comments": [ { "id": "442300", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~mr.jatinjoshi.mca@gmail.com] What do you mean by \"As recommened instead of\", do you mean logging from the SDK like \"require called with un-prefixed module id:\"?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-10-04T16:17:47.000+0000", "updated": "2018-10-04T16:17:47.000+0000" }, { "id": "442301", "author": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I meant, as recommended by Appcelerator in the logs: \r\n\r\n[WARN] : The requested path 'database' has a collison between a native Titanium API/module and a JS file.\r\n[WARN] : The native Titanium API/module will be loaded in preference.\r\n[WARN] : If you intended to address the JS file, please require the path using a prefixed string such as require('./database') or require('/database') instead.\r\n\r\nI upgraded the app from SDK 5.5.1 to SDK 7.4.0", "updateAuthor": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-04T16:27:06.000+0000", "updated": "2018-10-04T16:27:06.000+0000" }, { "id": "442306", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Have you tried the second require {{require('/database')}} in that log? The one you're using will try to require the file relative the file you're using (so if it's in the same directory it will succeed), whereas {{require('/database')}} will work if the file resides under the {{app/lib}} folder in an Alloy app", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-10-04T19:34:32.000+0000", "updated": "2018-10-04T19:34:32.000+0000" }, { "id": "442336", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~mr.jatinjoshi.mca@gmail.com] did the {{require('/database')}} work?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-10-05T12:31:19.000+0000", "updated": "2018-10-05T12:31:19.000+0000" }, { "id": "442419", "author": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No. I have been trying to rebuild the app, but no changes, that I can see it on front end. \r\n\r\nProject was developed by previous developer and code was checked in github. I pulled that code and then imported into appcelerator and then ran. Got the message, Resources folder missing. \r\n\r\nI asked for the Resources folder from that developer and placed in the root folder, but still no changes are reflected. If I a make any change in the Resource folder files, that shows, but making change in views of controller file of the project, no changes are seen. ", "updateAuthor": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-08T20:00:44.000+0000", "updated": "2018-10-08T20:00:44.000+0000" }, { "id": "442422", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~mr.jatinjoshi.mca@gmail.com], What happens if you make changes in js file and after saving, try running the project through terminal? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-10-08T21:28:37.000+0000", "updated": "2018-10-08T21:28:37.000+0000" }, { "id": "442469", "author": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is fixed: \r\n\r\nDon't know how but when I deleted the Resources folder and again compiled the project by using:\r\n\r\nappc alloy compile --config platform=ios\r\n\r\nIt recreated the Resources folder and project started working and my changes were reflected. ", "updateAuthor": { "name": "mr.jatinjoshi.mca@gmail.com", "key": "mr.jatinjoshi.mca@gmail.com", "displayName": "JATIN JOSHI", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-09T22:44:18.000+0000", "updated": "2018-10-09T22:44:18.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }