{ "id": "104157", "key": "ALOY-354", "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": [ { "id": "14631", "description": "Alloy 0.3.1", "name": "Alloy 0.3.1", "archived": false, "released": true, "releaseDate": "2012-11-02" }, { "id": "14599", "description": "2012 Sprint 22", "name": "2012 Sprint 22", "archived": true, "released": true, "releaseDate": "2012-11-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-31T15:58:37.000+0000", "created": "2012-10-30T22:22:33.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-closed-3.3.0" ], "versions": [ { "id": "14631", "description": "Alloy 0.3.1", "name": "Alloy 0.3.1", "archived": false, "released": true, "releaseDate": "2012-11-02" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-20T06:09:55.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": [], "description": "Previously, from the app directory, I could generate the alloy.jmk file using:\r\nalloy generate jmk\r\n\r\nI get the following error message:\r\n{code}\r\nsavoytruffle:app bhatfield$ alloy generate jmk\r\n\r\nfs.js:338\r\n return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);\r\n ^\r\nError: ENOENT, no such file or directory '/Users/bhatfield/practice/testalloy/app/app/alloy.jmk'\r\n at Object.fs.openSync (fs.js:338:18)\r\n at Object.fs.writeFileSync (fs.js:756:15)\r\n at module.exports (/usr/local/lib/node_modules/alloy/Alloy/commands/generate/targets/jmk.js:18:5)\r\n at generate (/usr/local/lib/node_modules/alloy/Alloy/commands/generate/index.js:38:34)\r\n at Object. (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:81:46)\r\n at Module._compile (module.js:449:26)\r\n at Object.Module._extensions..js (module.js:467:10)\r\n at Module.load (module.js:356:32)\r\n at Function.Module._load (module.js:312:12)\r\n at Module.require (module.js:362:17)\r\n at require (module.js:378:17)\r\n at Object. (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)\r\n at Module._compile (module.js:449:26)\r\n at Object.Module._extensions..js (module.js:467:10)\r\n at Module.load (module.js:356:32)\r\n at Function.Module._load (module.js:312:12)\r\n at Module.runMain (module.js:492:10)\r\n at process.startup.processNextTick.process._tickCallback (node.js:244:9)\r\n{code}\r\n\r\nI can get the command to work if I specify the -p option. I can generate the other components (views, widgets, controllers, etc.) fine without specifying the -p option.", "attachment": [], "flagged": false, "summary": "'alloy generate jmk' does not work", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Alloy v0.3.1 - master from Oct. 30\r\nMac OS X v10.7.5", "comment": { "comments": [ { "id": "225681", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved in latest master. Added unit tests to cover the uses cases mentioned here.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T15:58:37.000+0000", "updated": "2012-10-31T15:58:37.000+0000" }, { "id": "310123", "author": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified FIXED using :\r\n\r\nMac :10.9.3\r\nAppcelerator Studio, build: 3.3.0.201406171619\r\nSDK 3.3.0.v20140619164112\r\nacs-1.0.15\r\nalloy@1.4.0-rc\r\nnpm-1.3.2\r\ntitanium@3.3.0-rc\r\ntitanium-code-processor-1.1.1\r\n\r\nAlloy generate jmk command successfully generates alloy.jmk file . Hence closing as FIXED.", "updateAuthor": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-20T06:09:43.000+0000", "updated": "2014-06-20T06:09:43.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }