{ "id": "136407", "key": "AC-1047", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-09-17T06:44:31.000+0000", "created": "2014-09-10T22:27:31.000+0000", "labels": [ "core", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:23.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Most of the ti cli commands end with:\r\n\r\n/******************************begin stack trace *********************************/\r\nc:\\Users\\wnpr\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\longjohn\\dist\\longjohn.js:185\r\n throw e;\r\n ^\r\nTypeError: Bad argument\r\n at ChildProcess.spawn (child_process.js:915:24)\r\n/******************************end stack trace *********************************/\r\n\r\nBy using the debugger\r\n\r\n/******************************begin debugger call*******************************/\r\nwnpr@GFT6841 ~/Documents/Titanium_Studio_Workspace/Todo List\r\n$ node-debug /c/Users/wnpr/AppData/Roaming/npm/node_modules/titanium/lib/titanium.js info\r\nNode Inspector is now available from http://localhost:8080/debug?port=5858\r\nDebugging `c:/Users/wnpr/AppData/Roaming/npm/node_modules/titanium/lib/titanium.js`\r\n/******************************begin debugger call*******************************/\r\n\r\nI was able to locate that at line 915 in child_process.js that the following call: \r\n\r\nvar r = this._handle.spawn(options);\r\n\r\nfailed whenever the \"options\" parameter looked as followings:\r\n\r\n/******************************begin options object*******************************/\r\n\r\noptions: Object\r\nargs: Array[5]\r\n0: null\r\n1: \"&&\"\r\n2: \"powershell\"\r\n3: \"-command\"\r\n4: \"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.3.0.RC2\\node_modules\\titanium-sdk\\bin\\test_permissions.ps1\"\r\nlength: 5\r\n..\r\ncwd: \"C:\\Programms\\Microsoft Visual Studio 11.0\\VC\"\r\ndetached: false\r\n\r\n/******************************end options object*******************************/\r\n\r\nThis \"args\" attribute of the options object was what was causing the exception and it was being created by a function in the \"windows.js\" file at line 376. When I commented out the \"powershell\" attribute creation code, the exception went away.\r\n", "attachment": [], "flagged": false, "summary": "titanium script ends in exception when Visual Studio is present.", "creator": { "name": "wmmnpr", "key": "wmmnpr", "displayName": "wmmnpr", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wmmnpr", "key": "wmmnpr", "displayName": "wmmnpr", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "windows 7\r\n", "comment": { "comments": [ { "id": "324060", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe this may be fixed by TIMOB-17411 or TIMOB-16958. Please try 3.4.0 and see if it addresses the issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-16T21:18:48.000+0000", "updated": "2014-09-16T21:18:48.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }