{ "id": "126332", "key": "TIMOB-16458", "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": "15935", "description": "2014 Sprint 06", "name": "2014 Sprint 06", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15938", "description": "2014 Sprint 06 Tooling", "name": "2014 Sprint 06 Tooling", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "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-03-28T18:10:23.000+0000", "created": "2014-02-12T22:18:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded", "regression" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-06-19T12:44: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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "It seems that I cannot build a project when giving the project directory -d switch\r\n\r\n ti build -d /home/davide/Titanium_Studio_Workspace/projectname/ --platform android --log-level error\r\n\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184\r\n throw e;\r\n ^\r\nError\r\n at Object. (/usr/local/lib/node_modules/titanium/lib/cli.js:159:30)\r\n at Module._compile (module.js:456:26)\r\n at Module._extensions..js (module.js:474:10)\r\n at Module.load (module.js:356:32)\r\n at Module._load (module.js:312:12)\r\n at Module.require (module.js:364:17)\r\n at require (module.js:380:17)\r\n at run (/usr/local/lib/node_modules/titanium/lib/titanium.js:180:17)\r\n at /usr/local/lib/node_modules/titanium/lib/titanium.js:101:3\r\n at /usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:100:8\r\n---------------------------------------------\r\n at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)\r\n at q.process (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:731:21)\r\n at processImmediate (timers.js:309:15)\r\n\r\n\r\n\r\nWhen instead I cd in the directory and launch the build command:\r\n\r\nti build --no-prompt --platform android --log-level error\r\n\r\nAll is working fine. \r\n\r\nThe build process was fine with 3.2.1 beta.", "attachment": [], "flagged": false, "summary": "CLI: Cannot build a project when the directory switch is specified", "creator": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Host OS: Linux Mint\r\nOS Arch: x86\r\nTi version 3.2.1GA", "comment": { "comments": [ { "id": "292872", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can reproduce this problem only if tiapp.xml points to 3.2.0 SDK as per the following entry.\n3.2.0.GA\n\nI cannot reproduce this issue if I change this entry to 3.2.1.GA. Can you please confirm if this is the case with you as well?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-13T05:04:59.000+0000", "updated": "2014-02-13T05:04:59.000+0000" }, { "id": "292878", "author": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just tested as well with different version of SDK in tiapp.xml\r\n\r\nproblem exists with:\r\n 3.2.0.GA\r\n 3.2.1.GA\r\n\r\nProblem vanish when using this other version\r\n 3.2.1.v20140130101648\r\n\r\nAlthough for sure I was able to compile with -d with the SDK 3.2.0.GA with when using an earlier version of ti build [the one that came with the 3.2.1 beta] \r\n", "updateAuthor": { "name": "dawez", "key": "dawez", "displayName": "Davide", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-02-13T07:02:37.000+0000", "updated": "2014-02-13T07:05:17.000+0000" }, { "id": "292912", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with 3.2.1 CLI + 3.2.0 SDK on OSX. Reporter is running into this problem with SDK 3.2.1 GA as well but I cannot reproduce that particular combination. Nonetheless, it is a bug with 3.2.1 CLI.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-13T15:45:30.000+0000", "updated": "2014-02-13T15:45:30.000+0000" }, { "id": "299120", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Great find!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-28T06:09:31.000+0000", "updated": "2014-03-28T06:09:31.000+0000" }, { "id": "299121", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is a regression that was introduced in Titanium SDK 3.2.0 around the time the Android build was rewritten.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-28T06:15:15.000+0000", "updated": "2014-03-28T06:15:15.000+0000" }, { "id": "299122", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5552\n3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5553", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-28T06:15:38.000+0000", "updated": "2014-03-28T06:15:38.000+0000" }, { "id": "300162", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nLinux Mint 16 (x64)\nTitanium CLI, build: 3.2.1, 3.2.3-alpha2\nTitanium SDK, build: 3.2.1.GA, 3.2.2.GA, 3.2.3.v20140403105720\nAlloy: 1.3.1\n\nFollowed the test steps in the description, and managed to replicate the error using 3.2.1.GA and 3.2.2.GA versions of the SDK on both 3.2.1 and 3.2.3-alpha2 CLI.\nUsing 3.2.3.v20140403105720 on 3.2.1 and 3.2.3-alpha2 CLI fixed the error and the project built and installed successfully.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-08T00:26:46.000+0000", "updated": "2014-04-08T00:26:46.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }