{ "id": "154737", "key": "ALOY-1350", "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": [], "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": "2018-03-07T18:34:54.000+0000", "created": "2016-02-04T08:54:16.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "17582", "name": "alloy 1.7.30", "archived": false, "released": true, "releaseDate": "2015-12-17" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2018-03-07T18:34:54.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": "Alloy spits out a Moment.js warning on compile and a long stack trace on debug-level:\r\n\r\n{code}\r\n[INFO] [ios.xml] view processing...\r\n[INFO] style: \"ios.tss\"\r\n[INFO] view: \"ios.xml\"\r\n[WARN] ing: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.\r\n[ERROR]\r\n[DEBUG] at Function.createFromInputFallback (/Users/fokkezb/dev/forks/alloy/node_modules/moment/moment.js:746:36)\r\n[DEBUG] at configFromString (/Users/fokkezb/dev/forks/alloy/node_modules/moment/moment.js:826:32)\r\n[DEBUG] at configFromInput (/Users/fokkezb/dev/forks/alloy/node_modules/moment/moment.js:1353:13)\r\n[DEBUG] at prepareConfig (/Users/fokkezb/dev/forks/alloy/node_modules/moment/moment.js:1340:13)\r\n[DEBUG] at createFromConfig (/Users/fokkezb/dev/forks/alloy/node_modules/moment/moment.js:1307:44)\r\n[DEBUG] at createLocalOrUTC (/Users/fokkezb/dev/forks/alloy/node_modules/moment/moment.js:1385:16)\r\n[DEBUG] at local__createLocal (/Users/fokkezb/dev/forks/alloy/node_modules/moment/moment.js:1389:16)\r\n[DEBUG] at utils_hooks__hooks (/Users/fokkezb/dev/forks/alloy/node_modules/moment/moment.js:16:29)\r\n[DEBUG] at Object.exports.createDate (/Users/fokkezb/dev/forks/alloy/Alloy/utils.js:572:26)\r\n[DEBUG] at processStyle (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/styler.js:364:17)\r\n[DEBUG] at Object.exports.processStyle (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/styler.js:420:2)\r\n[DEBUG] at Object.exports.generateStyleParams (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/styler.js:600:20)\r\n[DEBUG] at parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/default.js:132:19)\r\n[DEBUG] at Object.exports.parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[DEBUG] at Object.exports.parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/default.js:10:27)\r\n[DEBUG] at parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/Ti.UI.Picker.js:72:31)\r\n[DEBUG] at Object.exports.parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[DEBUG] at Object.exports.parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/Ti.UI.Picker.js:29:27)\r\n[DEBUG] at Object.exports.generateNode (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:317:48)\r\n[DEBUG] at /Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:401:29\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/Users/fokkezb/dev/forks/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at Object.exports.generateNode (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:392:5)\r\n[DEBUG] at /Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:401:29\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/Users/fokkezb/dev/forks/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at Object.exports.generateNode (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:392:5)\r\n[DEBUG] at /Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:401:29\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/Users/fokkezb/dev/forks/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at Object.exports.generateNode (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:392:5)\r\n[DEBUG] at Object.exports.generateNodeExtended (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:254:17)\r\n[DEBUG] at parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/Ti.UI.Tab.js:27:14)\r\n[DEBUG] at Object.exports.parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[DEBUG] at Object.exports.parse (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/parsers/Ti.UI.Tab.js:7:27)\r\n[DEBUG] at Object.exports.generateNode (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/compilerUtils.js:317:48)\r\n[DEBUG] at /Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/index.js:693:28\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/Users/fokkezb/dev/forks/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at parseAlloyComponent (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/index.js:687:5)\r\n[DEBUG] at /Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/index.js:304:6\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/Users/fokkezb/dev/forks/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at /Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/index.js:293:6\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/Users/fokkezb/dev/forks/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at module.exports (/Users/fokkezb/dev/forks/alloy/Alloy/commands/compile/index.js:289:4)\r\n[DEBUG] at Object. (/Users/fokkezb/dev/forks/alloy/Alloy/alloy.js:113:46)\r\n[DEBUG] at Module._compile (module.js:413:34)\r\n[DEBUG] at Object.Module._extensions..js (module.js:422:10)\r\n[DEBUG] at Module.load (module.js:357:32)\r\n[DEBUG] at Function.Module._load (module.js:314:12)\r\n[DEBUG] at Module.require (module.js:367:17)\r\n[DEBUG] at require (internal/module.js:16:19)\r\n[DEBUG] at Object. (/Users/fokkezb/dev/forks/alloy/bin/alloy:3:1)\r\n[DEBUG] at Module._compile (module.js:413:34)\r\n[DEBUG] at Object.Module._extensions..js (module.js:422:10)\r\n[DEBUG] at Module.load (module.js:357:32)\r\n[DEBUG] at Function.Module._load (module.js:314:12)\r\n[DEBUG] at Function.Module.runMain (module.js:447:10)\r\n[DEBUG] at startup (node.js:139:18)\r\n[DEBUG] at node.js:999:3\r\n[INFO] controller: \"ios.js\"\r\n{code}\r\n\r\nSource (but there's probably more):\r\nhttps://github.com/appcelerator/alloy/blob/master/Alloy/utils.js#L572\r\n\r\nPS: We fixed same issue for 360 in APPTS-6100", "attachment": [], "flagged": false, "summary": "Warning on compile: moment construction falls back to js Date", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Alloy 1.7.30\r\nTi CLI 5.0.6", "closedSprints": [ { "id": 1007, "state": "closed", "name": "2018 Sprint 05 Tooling", "startDate": "2018-02-25T17:48:46.503Z", "endDate": "2018-03-11T16:48:00.000Z", "completeDate": "2018-03-11T22:21:44.972Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "435306", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Env: CLI 7.0.2. \r\nPlease reopen the issue if this appears again.\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2018-03-07T18:34:54.000+0000", "updated": "2018-03-07T18:34:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }