{ "id": "167573", "key": "TIMOB-24683", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-20T22:54:47.000+0000", "created": "2017-05-11T15:52:48.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "studio", "windows_phone" ], "versions": [ { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "issuelinks": [ { "id": "55404", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "168400", "key": "CLI-1227", "fields": { "summary": "Appc Setup exits with \"Error: titanium exited with 1 exit code\"", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "55455", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "167166", "key": "TIMOB-24591", "fields": { "summary": "Use package-lock.json instead of checking in node_modules", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-08-29T21:16:54.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "1- Remove everything about Appcelerator, following these instructions : https://medium.com/all-titanium/reinstalling-appcelerator-titanium-on-windows-from-scratch-f7c50e2161f3\r\n\r\n2- \"del /s /q .appcelerator\" didn't work because of nested node_modules creating a too long path that Windows 10 was unable to move or delete (same for .titanium)\r\nUse 7-zip File Manager + \"shift+delete\" to delete these long paths.\r\n\r\n3- Install Appcelerator studio, let it download third parties like node. \r\n\r\n4- create a default mobile app for android only, launch on emulator or device\r\n\r\n5- see attached logs on this ticket (and custom logs for more info) for complete result : \r\n\r\n2017-05-10T18:19:57.879Z | DEBUG | [PLUGIN-LOAD] 0ms C:\\Users\\user\\.appcelerator\\install\\6.2.0\\package\\appc.js\r\n2017-05-10T18:19:58.269Z | DEBUG | [PLUGIN-LOAD] 390ms C:\\Users\\user\\.appcelerator\\install\\6.2.0\\package\\node_modules\\appc-cli-titanium\\appc.js\r\n2017-05-10T18:19:58.269Z | DEBUG | run plugin: C:\\Users\\user\\.appcelerator\\install\\6.2.0\\package\\node_modules\\appc-cli-titanium\r\n2017-05-10T18:19:58.269Z | DEBUG | [PLUGIN-LOAD] 0ms C:\\Users\\user\\.appcelerator\\install\\6.2.0\\package\\node_modules\\arrow\\appc.js\r\n2017-05-10T18:19:58.269Z | DEBUG | run plugin: C:\\Users\\user\\.appcelerator\\install\\6.2.0\\package\\node_modules\\arrow\r\n2017-05-10T18:19:58.269Z | TRACE | plugin \"arrow\" failed its \"when\" function check, skipping...\r\n2017-05-10T18:19:58.269Z | TRACE | loading plugin \"titanium\" for command \"run\" CLI options via function\r\n2017-05-10T18:19:58.269Z | TRACE | loading plugin \"titanium\" for command \"run\" CLI options via array\r\n2017-05-10T18:19:58.269Z | TRACE | executing command \"run\" with the following plugins:\r\n[\"titanium\"]\r\n2017-05-10T18:19:58.285Z | TRACE | Attempting to load session info from config file\r\n2017-05-10T18:19:58.285Z | TRACE | check if session is invalidated\r\n2017-05-10T18:19:58.519Z | TRACE | refresh session expiry to: 1495045206737\r\n2017-05-10T18:19:58.519Z | TRACE | session expiry 1495045206737 false\r\n2017-05-10T18:19:58.519Z | TRACE | session already loaded in opts.session\r\n2017-05-10T18:19:58.519Z | DEBUG | Titanium Downloads Last Checked: 1494402944711\r\n2017-05-10T18:19:58.597Z | TRACE | No project alloy hook; skipping update to 1.0.0\r\n2017-05-10T18:20:00.214Z | ERROR | An uncaught exception was thrown!\r\nBad argument\r\n2017-05-10T18:20:00.214Z | ERROR | Bad argument\r\n2017-05-10T18:20:00.214Z | TRACE | TypeError: Bad argument\r\n at TypeError (native)\r\n at ChildProcess.spawn (internal/child_process.js:274:26)\r\n at exports.spawn (child_process.js:362:9)\r\n at winAppDeployCmdEnumerate (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\lib\\wptool.js:61:11)\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\lib\\wptool.js:154:5\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\node_modules\\async\\lib\\async.js:718:13\r\n at async.forEachOf.async.eachOf (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\node_modules\\async\\lib\\async.js:233:13)\r\n at _parallel (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\node_modules\\async\\lib\\async.js:717:9)\r\n at Object.async.parallel (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\node_modules\\async\\lib\\async.js:731:9)\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\lib\\wptool.js:151:9\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\lib\\windowsphone.js:210:11\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.0.4.GA\\node_modules\\windowslib\\lib\\utilities.js:49:3\r\n at nextTickCallbackWith0Args (node.js:420:9)\r\n at process._tickCallback (node.js:349:13)\r\n---------------------------------------------\r\n\r\n\r\n---\r\nMaybe related to this error, I am not able to configure windows as suggested in the dashboard (see attached screenshots)\r\n\r\nEven when I try to select the Windows SDK location (see result on second screenshot)\r\n\r\nSo Windows is never green-checked on dashboard (see background in screenshots).\r\n\r\nI don't understand why it searches for windows Phone SDK where I just want to build for android on this app though, and with registry keys that don't exist on my computer..", "attachment": [ { "id": "62217", "filename": "pastedImage.png", "author": { "name": "cfauconnier", "key": "cfauconnier", "displayName": "Clement Fauconnier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-11T15:48:25.000+0000", "size": 252395, "mimeType": "image/png" }, { "id": "62218", "filename": "pastedImage (1).png", "author": { "name": "cfauconnier", "key": "cfauconnier", "displayName": "Clement Fauconnier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-11T15:48:23.000+0000", "size": 266151, "mimeType": "image/png" }, { "id": "62220", "filename": "run_default_android_app_logs.txt", "author": { "name": "cfauconnier", "key": "cfauconnier", "displayName": "Clement Fauconnier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-11T15:46:30.000+0000", "size": 15252, "mimeType": "text/plain" }, { "id": "62219", "filename": "run_default_android_app_with_custom_logs.txt", "author": { "name": "cfauconnier", "key": "cfauconnier", "displayName": "Clement Fauconnier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-11T15:46:32.000+0000", "size": 31305, "mimeType": "text/plain" } ], "flagged": false, "summary": "childprocess.spawn() BAD ARGUMENT : problem with Windows Phone SDK", "creator": { "name": "cfauconnier", "key": "cfauconnier", "displayName": "Clement Fauconnier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cfauconnier", "key": "cfauconnier", "displayName": "Clement Fauconnier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Acer Aspire VN7-592G\r\ni7-6700HQ\r\n8Go Ram\r\nWindows 10 x64\r\nVisual Studio Community 2017\r\nAppcelerator Studio : build: 4.8.1.201612050850\r\nTi SDK: 6.0.4.GA", "closedSprints": [ { "id": 921, "state": "closed", "name": "2017 Sprint 14 Tooling", "startDate": "2017-07-02T23:55:00.000Z", "endDate": "2017-07-16T23:55:00.000Z", "completeDate": "2017-07-17T14:40:08.859Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "419605", "author": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "body": "this also happened to me, I'm using Windows 10, I've Visual Studio 2015 and 2017.\r\n\r\nIt seems like the CLI is broken, I've installed about 2 or 3 times, and every time that I open the Appcelerator Studio setup, in the prerequisites, the CLI version is always \"Found: nothing\", even after installed through here or by the command: npm install appcelerator -g\r\n\r\nC:\\Users\\ricardo>node --version\r\nv4.8.3\r\nC:\\Users\\ricardo>appc info -l trace\r\nAppcelerator Command-Line Interface, version 6.2.0\r\nCopyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.\r\n\r\n2017-05-12T09:29:10.822Z | TRACE | set environment to {\"registry\":\"https://software.appcelerator.com\",\"baseurl\":\"https://platform.appcelerator.com\"}\r\n2017-05-12T09:29:10.838Z | TRACE | executing command \"info\" with no plugins\r\n2017-05-12T09:29:10.947Z | TRACE | \"C:\\Program Files\\nodejs\\node.exe\" \"C:\\Users\\ricardo\\.appcelerator\\install\\6.2.0\\package\\node_modules\\titanium\\bin\\titanium\" sdk -o json\r\n2017-05-12T09:29:12.244Z | TRACE | checking for titanium, result:\r\n { activeSDK: '6.0.4.GA',\r\n defaultInstallLocation: 'C:\\\\ProgramData\\\\Titanium',\r\n installLocations:\r\n [ 'C:\\\\ProgramData\\\\Titanium',\r\n 'C:\\\\Users\\\\ricardo\\\\AppData\\\\Roaming\\\\Titanium',\r\n 'C:\\\\ProgramData\\\\Application Data\\\\Titanium' ],\r\n installed:\r\n { '6.0.4.GA': 'C:\\\\ProgramData\\\\Titanium\\\\mobilesdk\\\\win32\\\\6.0.4.GA',\r\n '5.5.1.GA': 'C:\\\\ProgramData\\\\Titanium\\\\mobilesdk\\\\win32\\\\5.5.1.GA' },\r\n sdks:\r\n { '6.0.4.GA':\r\n { name: '6.0.4.GA',\r\n manifest: [Object],\r\n path: 'C:\\\\ProgramData\\\\Titanium\\\\mobilesdk\\\\win32\\\\6.0.4.GA' },\r\n '5.5.1.GA':\r\n { name: '5.5.1.GA',\r\n manifest: [Object],\r\n path: 'C:\\\\ProgramData\\\\Titanium\\\\mobilesdk\\\\win32\\\\5.5.1.GA' } } }\r\n2017-05-12T09:29:14.416Z | DEBUG | 1\r\n2017-05-12T09:29:14.416Z | DEBUG |\r\n2017-05-12T09:29:14.431Z | ERROR | Error: titanium exited with exit code 1. re-run with -l trace to get detailed output\r\n at ChildProcess. (C:\\Users\\ricardo\\.appcelerator\\install\\6.2.0\\package\\lib\\commands\\info.js:45:23)\r\n at emitTwo (events.js:87:13)\r\n at ChildProcess.emit (events.js:172:7)\r\n at maybeClose (internal/child_process.js:862:16)\r\n at Socket. (internal/child_process.js:338:11)\r\n at emitOne (events.js:77:13)\r\n at Socket.emit (events.js:169:7)\r\n at Pipe._onclose (net.js:490:12)\r\n2017-05-12T09:29:14.431Z | TRACE | Sending exit signal to titanium process: 4012", "updateAuthor": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2017-05-12T09:37:09.000+0000", "updated": "2017-05-12T09:37:37.000+0000" }, { "id": "419606", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~cfauconnier] [~ricardo_jcp] thanks for the report! We'll look into this and update accordingly", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-05-12T09:59:13.000+0000", "updated": "2017-05-12T09:59:13.000+0000" }, { "id": "419618", "author": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "body": "I've installed all the Windows Phone SDK (8.1 and 10) available inside the Visual Studio Installer and it solved that issue", "updateAuthor": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2017-05-12T16:23:17.000+0000", "updated": "2017-05-12T16:23:17.000+0000" }, { "id": "423913", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Steps to reproduce\r\n\r\n# Install VS2017 https://www.visualstudio.com/vs/\r\n# Run the installer\r\n# Select {{Individual Components}}\r\n# Select {{Windows 10 SDK (10.0.15063.0) for Desktop C++ x86 and x64}}\r\n# Wait...\r\n# Run appc ti info -t windows", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-11T16:53:35.000+0000", "updated": "2017-07-11T16:53:35.000+0000" }, { "id": "424149", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Bumping to 6.2.0 due to the risk of the tickets that would be pulled in by this change.\r\n\r\nIf you wish to work around this issue yourself please see [this commit|https://github.com/appcelerator/windowslib/pull/72/commits/56c56b762910a9a27dc973c11e0637861aa1c5f2]", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-14T16:17:13.000+0000", "updated": "2017-07-14T16:17:13.000+0000" }, { "id": "424349", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "windowslib PR merged (0.5.2), should update titanium_mobile in order to resolve this ticket.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-19T03:45:37.000+0000", "updated": "2017-07-19T03:45:37.000+0000" }, { "id": "424494", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Ended up getting merged as part of PR for TIMOB-24591", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-07-20T22:55:17.000+0000", "updated": "2017-07-20T22:55:17.000+0000" }, { "id": "426448", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "titanium_mobile master: https://github.com/appcelerator/titanium_mobile/pull/9297\r\ntitanium_mobile 6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9298", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-10T09:38:47.000+0000", "updated": "2017-08-10T09:38:47.000+0000" }, { "id": "427379", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket, as fixed already merged. I double0checked the version installed, and windowslib 0.5.4. I also ran \"appc ti info -t windows\", and no errors were seen.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-29T21:16:46.000+0000", "updated": "2017-08-29T21:16:46.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }