{ "id": "114638", "key": "TIMOB-13918", "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": [ { "id": "15491", "description": "2013 Sprint 11 JS", "name": "2013 Sprint 11 JS", "archived": true, "released": true, "releaseDate": "2013-06-03" }, { "id": "15109", "description": "2013 Sprint 11", "name": "2013 Sprint 11", "archived": true, "released": true, "releaseDate": "2013-06-03" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-29T23:01:56.000+0000", "created": "2013-05-20T18:29:23.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "code-analyzer", "qe-3.1.1", "qe-closed-3.1.1", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "28968", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "114733", "key": "TISTUD-4727", "fields": { "summary": "CodeProcessor: paths.commands and paths.hooks not set during 1.0.1-alpha install", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "28966", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "114140", "key": "TISTUD-4594", "fields": { "summary": "Windows 8: Code Processor api usage process never completes and cannot be cancelled", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-24T09:36:10.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": "13102", "name": "Code Processor", "description": "Analyzes JavaScript source" } ], "description": "h5. Description:\r\nWhile setting up for testing, I noticed that the code processor mention it has edited my ti config. Here is the output:\r\n\r\n{code}\r\n/usr/local/bin/titanium-code-processor -> /usr/local/lib/node_modules/titanium-code-processor/bin/codeprocessor\r\n\r\n> titanium-code-processor@1.0.1-alpha install /usr/local/lib/node_modules/titanium-code-processor\r\n> bin/install\r\n\r\nNotice: Modifying your Titanium Mobile configuration to include commands and hooks for the Titanium Code Processor. Run \"titanium config\" for more information\r\ntitanium-code-processor@1.0.1-alpha /usr/local/lib/node_modules/titanium-code-processor\r\n{code}\r\n\r\nAlthough it seemed to work, my \"ti config\" had no paths.command entry, and no paths.hooks entry for code processor.\r\n\r\nWe tried this on Olga's system (without an updated CLI) and she got:\r\n\r\n{code}\r\n/usr/local/bin/titanium-code-processor -> /usr/local/lib/node_modules/titanium-code-processor/bin/codeprocessor\r\n\r\n> titanium-code-processor@1.0.1-alpha install /usr/local/lib/node_modules/titanium-code-processor\r\n> bin/install\r\n\r\nWarning: Could not query the Titanium paths: \r\nfs.js:338\r\n return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);\r\n ^\r\nError: EACCES, permission denied '/Users/oromero/.titanium/analytics.json'\r\n at Object.fs.openSync (fs.js:338:18)\r\n at Object.fs.writeFileSync (fs.js:756:15)\r\n at save (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/analytics.js:163:7)\r\n at /usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/analytics.js:206:4\r\n at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:476:17)\r\n at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:94:25)\r\n at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:473:21)\r\n at process.on.async.parallel.osinfo (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/analytics.js:56:5)\r\n at module.exports.getOSInfo (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/environ.js:215:4)\r\n at ChildProcess.exithandler (child_process.js:538:7)\r\n\r\nThe Titanium Code Processor will not be available in the CLI or during builds\r\ntitanium-code-processor@1.0.1-alpha /usr/local/lib/node_modules/titanium-code-processor\r\n├── colors@0.6.0-1\r\n├── wrench@1.5.1\r\n├── async@0.1.22\r\n├── mu2@0.5.17\r\n├── nomnom@1.6.1 (colors@0.5.1, underscore@1.4.4)\r\n├── winston@0.6.2 (cycle@1.0.2, eyes@0.1.8, stack-trace@0.0.6, pkginfo@0.2.3, request@2.9.203)\r\n├── xml2js@0.2.7 (sax@0.5.2)\r\n├── source-map@0.1.22 (amdefine@0.0.5)\r\n├── node-appc@0.1.30-alpha (sprintf@0.1.1, wrench@1.3.9, node-uuid@1.3.3, semver@1.1.4, request@2.9.203, uglify-js@1.3.4, xmldom@0.1.11)\r\n└── uglify-js@2.3.5 (async@0.2.8, optimist@0.3.7)\r\n{code}\r\n\r\nh5. Steps to reproduce:\r\n1) Check your config with \"ti config\" and evaluate the paths.hooks and paths.commands.\r\n2) Attempt to install titanium-code-processor with the following:\r\n\"sudo npm install -g titanium-code-processor@1.0.1-alpha\"\r\n3) Recheck with \"ti config\"\r\n\r\nh5. Result:\r\nNo changes made to the ti config, so code-processor may not function.\r\n\r\nh5. Expected Result:\r\nEither error with failure to update paths.x or success in editing ti config.", "attachment": [], "flagged": false, "summary": "Code Processor: paths.commands and paths.hooks not set during 1.0.1-alpha install", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.8.3\r\nSafari: 6.0.4\r\nXcode 4.6.2\r\nCLI: 3.1.1-alpha\r\ntitanium-code-processor: 1.0.1-alpha\r\nAlloy: 1.1.3-alpha\r\nAppcelerator Studio, build: 3.1.1.201305181057\r\nTitanium SDK version 3.1.1.v20130517185716", "comment": { "comments": [ { "id": "253271", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium-code-processor/pull/196\r\n1_0_X PR: https://github.com/appcelerator/titanium-code-processor/pull/197\r\n\r\nNote: these PR's simply disconnect the existing install hook because Studio is going to take care of it now in TISTUD-4727.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-21T22:17:03.000+0000", "updated": "2013-05-21T22:18:55.000+0000" }, { "id": "254683", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After installing titanium-code-processor@1.0.1-alpha3 the paths.hooks and paths.commands are not set - those are correctly set once the Code Processor is being executed from Studio (this is the current intended behavior).\n\nAppcelerator Studio 3.1.1.201305282349\nTitanium SDK 3.1.1.v20130524180421\nAlloy 1.1.3-alpha\nTitanium-Code-Processor 1.1.3-alpha3\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-29T22:24:52.000+0000", "updated": "2013-05-29T22:24:52.000+0000" }, { "id": "254703", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to apply label", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-29T23:01:37.000+0000", "updated": "2013-05-29T23:01:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }