{ "id": "129121", "key": "TIMOB-16851", "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": "16092", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "16095", "description": "2014 Sprint 08 Tooling", "name": "2014 Sprint 08 Tooling", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-18T21:55:50.000+0000", "created": "2014-04-16T16:31:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.2.3", "qe-closed-3.3.0", "qe-testadded" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-06-19T12:43: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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "It is not a regression.\r\n\r\nThis issue occurs only if a module project is being created inside an app project.\r\n\r\nh5. To reproduce\r\n1. Create a project, using \r\n{code}\r\nti create \r\n{code}\r\nEnter all prompted options\r\n2. Inside the project's directory run\r\n{code}\r\nti create -t module\r\n{code}\r\nEnter all prompted options\r\n3. Run \r\n{code}\r\nti create -f -t module\r\n{code}\r\nuse same id and name\r\n\r\nh5. Actual result\r\n{code}\r\n[ERROR] Failed to run command \"create\"\r\n[ERROR] Error: EEXIST, file already exists '/Users/oromero/dream/snow/module'\r\n at fs.mkdirSync (fs.js:642:18)\r\n at exports.run (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.v20140415094118/blackberry/cli/commands/_create.js:68:7)\r\n at ModuleCreator. (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.v20140415094118/cli/commands/create.js:373:21)\r\n at CLI._fireHookCallback (/usr/local/lib/node_modules/titanium/lib/hook.js:245:12)\r\n at /usr/local/lib/node_modules/titanium/lib/hook.js:224:10\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:142:25\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:17\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:556:34\r\n at /usr/local/lib/node_modules/titanium/lib/hook.js:215:9\r\n\r\n\r\n{code}\r\n\r\nNote:\r\nIf a module project created outside an app project, force to create option works as expected.", "attachment": [], "flagged": false, "summary": "CLI: force module project creation even if path already exists is not respected inside an app project", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac osx 10.9.2 Mavericks\r\nAppcelerator Studio, build: 3.2.3.201404111117\r\nTitanium SDK, build: 3.2.3.v20140415094118\r\nNode.JS Version: v0.10.13\r\nNPM Version: 1.3.2\r\n├── acs@1.0.14\r\n├── alloy@1.3.1\r\n├── node-appc@0.2.0\r\n├── npm@1.3.2\r\n├── titanium@3.2.3-beta\r\n└── titanium-code-processor@1.1.1-beta1\r\nXcode 5.1.1", "comment": { "comments": [ { "id": "301509", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This works now that TIMOB-10752 is done, but I have idea WHY you would want to do this.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-18T21:55:50.000+0000", "updated": "2014-04-18T21:55:50.000+0000" }, { "id": "301931", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "it does work :)\r\nMac osx 10.9.2 Maverics\r\nNode.JS Version: v0.10.13\r\nNPM Version: 1.3.2\r\n├── acs@1.0.14\r\n├── alloy@1.3.1\r\n├── node-appc@0.2.0\r\n├── npm@1.3.2\r\n├── titanium@3.2.3-beta2\r\n└── titanium-code-processor@1.1.1-beta1", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-21T19:09:41.000+0000", "updated": "2014-04-21T19:41:27.000+0000" }, { "id": "301937", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is the Titanium SDK build I used\r\n3.3.0.v20140418162516", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-21T20:15:57.000+0000", "updated": "2014-04-21T20:15:57.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }