{ "id": "169006", "key": "TIMOB-24976", "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": null, "resolutiondate": null, "created": "2017-07-18T16:17:20.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "cb-tooling" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2020-01-30T23:11:40.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "When creating a new module with the {{appc new -d . -n test --id com.example.test}} command (from the Wiki), an error is thrown, but the generated module looks ok:\r\n{code}\r\nHans-Macbook-Pro:Desktop hknoechel$ appc new -d . -n test --id com.example.test\r\nAppcelerator Command-Line Interface, version 6.2.2\r\nCopyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.\r\n\r\n? What type of project are you creating? Titanium Module (timodule)\r\n? Do you want to overwrite? Yes\r\nMobileWeb platform has been deprecated in 5.4.0 and will be removed in 7.0.0.\r\nAn uncaught exception was thrown!\r\nEINVAL: invalid argument, rename 'test' -> '.'\r\nEINVAL: invalid argument, rename 'test' -> '.'\r\n{code}\r\n\r\nI never used that combination of arguments so far, it was ported from {{ti create -d . -n test --id com.example.test}}. If there is a different way to create a module with given name, ID and directory, let me know and resolve as invalid!", "attachment": [], "flagged": false, "summary": "Appc-CLI: Creating a new module throws error, but succeeds", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "424303", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~hknoechel] This is probably due to CLI-424.\r\n\r\nTitanium CLI and Appc CLI have differing behaviour on the -d flag\r\n\r\n* Titanium says workspace directory, so you're saying create it in my cwd\r\n* Appc CLI says project directory, so you're saying create it in a folder called {{.}}\r\n\r\nDrop the {{-d}} flag and you'll be good, in this instance it's unnecessary from appc-cli perspective unless you want to have the folder named differently to the module name\r\n\r\nAlso add {{--type timodule}} if you want to avoid the prompt", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-18T17:21:33.000+0000", "updated": "2017-07-18T17:26:34.000+0000" }, { "id": "424307", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Cool, thx! I am fine with the prompt, just wonder if the {{EINVAL: invalid argument, rename 'test' -> '.'}} could be prevented.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-18T18:12:37.000+0000", "updated": "2017-07-18T18:12:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }