{ "id": "161770", "key": "TIMOB-23632", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-08-03T21:01:18.000+0000", "created": "2016-07-13T17:08:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-07-13T16:26:00.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": "10225", "name": "Release", "description": "This component is used for issues related to releasing the product. Release notes, copying builds to the server, etc." } ], "description": "Changes made in https://github.com/appcelerator/titanium_mobile/commit/43f2dc8e17c184a7b5b0e50792ab9b0f3d9dcccd#diff-297c1fc19b7b017b4a6d8856e9184fcd breaks my script that generates API changes for the SDK release note. Error message:\r\n\r\n{code}\r\n/Users/bimmel/Documents/Repo/titanium_mobile/node_modules/ejs/lib/ejs.js:528\r\n this.source += ' ; __filename = \"' + this.opts.filename.replace(/\\\\/g, '/') + '\"\\n';\r\n ^\r\n\r\nTypeError: this.opts.filename.replace is not a function\r\n at Object.Template.generateSource (/Users/bimmel/Documents/Repo/titanium_mobile/node_modules/ejs/lib/ejs.js:528:68)\r\n at Object.Template.compile (/Users/bimmel/Documents/Repo/titanium_mobile/node_modules/ejs/lib/ejs.js:444:12)\r\n at Object.compile (/Users/bimmel/Documents/Repo/titanium_mobile/node_modules/ejs/lib/ejs.js:289:16)\r\n at handleCache (/Users/bimmel/Documents/Repo/titanium_mobile/node_modules/ejs/lib/ejs.js:148:16)\r\n at Object.exports.render (/Users/bimmel/Documents/Repo/titanium_mobile/node_modules/ejs/lib/ejs.js:316:10)\r\n at /Users/bimmel/Documents/Repo/titanium_mobile/apidoc/docgen.js:913:17\r\n at Array.forEach (native)\r\n at Object. (/Users/bimmel/Documents/Repo/titanium_mobile/apidoc/docgen.js:848:9)\r\n at Module._compile (module.js:413:34)\r\n at Object.Module._extensions..js (module.js:422:10)\r\n{code}", "attachment": [], "flagged": false, "summary": "recent update to titanium_mobile breaks API change script", "creator": { "name": "bimmel-defective", "key": "bimmel", "displayName": "(deactived) Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bimmel-defective", "key": "bimmel", "displayName": "(deactived) Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "392265", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I do not have sufficient information in this ticket to reproduce the error. I don't know what version of Node.js you're using. I don't know what command you ran, so I assume {{node docgen.js}} from the {{apidoc}} directory.\r\n\r\nI ran {{docgen.js}} using Node.js 4.4.7 for both {{master}} and {{5_4_X}} branches and it ran just fine.\r\n\r\nPerhaps the {{apidoc}} directory should have its own {{package.json}} so it can manage its own dependencies and not rely on those in the SDK.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-03T03:26:50.000+0000", "updated": "2016-08-03T03:26:50.000+0000" }, { "id": "392349", "author": { "name": "bimmel-defective", "key": "bimmel", "displayName": "(deactived) Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Please disregard. I found the problem and fixed my script.", "updateAuthor": { "name": "bimmel-defective", "key": "bimmel", "displayName": "(deactived) Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-03T21:01:18.000+0000", "updated": "2016-08-03T21:01:18.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }