{ "id": "164583", "key": "TIMOB-24157", "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": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" }, { "id": "18725", "name": "windowslib 0.4.24", "archived": false, "released": true, "releaseDate": "2016-11-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-24T12:48:23.000+0000", "created": "2016-11-18T01:18:15.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-6.0.1" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-30T19:20:48.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": "Titanium CLI freezes when you run Windows Store desktop app. It builds the app normally, but then it freezes when it tries to install the app while showing {{Press enter to continue…}}.\r\n\r\n{code}\r\nappc ti build -p windows -T ws-local\r\nInstalling the application\r\nPress enter to continue…\r\n{code}\r\n", "attachment": [ { "id": "60735", "filename": "certmgr.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-18T15:04:19.000+0000", "size": 59329, "mimeType": "image/png" }, { "id": "60724", "filename": "TH4qc7w6A8h8209ODKl16g.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-18T01:21:36.000+0000", "size": 67412, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: CLI doesn't run ws-local app", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 758, "state": "closed", "name": "2016 Sprint 24 SDK", "startDate": "2016-11-19T01:32:06.991Z", "endDate": "2016-12-03T01:32:00.000Z", "completeDate": "2016-12-05T01:53:38.311Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "401500", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "maybe related: [keypress events not working in windows cmd.exe & powershell · Issue #5384 · nodejs/node|https://github.com/nodejs/node/issues/5384]", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-18T05:25:54.000+0000", "updated": "2016-11-18T05:25:54.000+0000" }, { "id": "401504", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "So it turns out that from at some version of Node.js {{spawn}} doesn't accept user input when you execute powershell script. \r\nHere's a sample code:\r\n\r\n{code:javascript|title=test.js}\r\nvar spawn = require('child_process').spawn,\r\n p = spawn('powershell', ['-NoLogo', '-File', 'Test.ps1']);\r\n\r\np.stdout.on('data', function (data) {\r\n console.log('stdout: ' + data);\r\n});\r\n\r\np.stderr.on('data', function (data) {\r\n console.log('stderr: ' + data);\r\n});\r\n\r\np.on('close', function (code) {\r\n console.log('child process exited with code ' + code);\r\n});\r\n{code}\r\n\r\nAnd here's the powershell script that shows prompt:\r\n\r\n{code:title=Test.ps1}\r\nRead-Host -Prompt 'Input something'\r\n{code}\r\n\r\n{{node test.js}} should show the {{Input something:}} prompt, but it doesn't accept user input.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-18T08:58:54.000+0000", "updated": "2016-11-18T09:00:03.000+0000" }, { "id": "401506", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested using following versions of Node.js but none of them fixes the issue.\r\n\r\n* 4.4.7\r\n* 4.6.2\r\n* 5.5.0\r\n* 6.3.1\r\n* 6.9.1\r\n* 7.1.0\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-18T09:54:39.000+0000", "updated": "2016-11-18T09:54:39.000+0000" }, { "id": "401509", "author": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "body": "Have you tried to user 'run' instead of 'build'?", "updateAuthor": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-11-18T11:04:12.000+0000", "updated": "2016-11-18T11:04:12.000+0000" }, { "id": "401516", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": " I tried \"appc run\" too but it doesn’t work well for me. I believe it's because “Press enter to continue…” won’t be shown when you already installed developer certificate. To see if you already installed developer certificate, launch “Manage user certificates” from control panel and navigate to “Trusted People > Certificates”. “CMake Test Cert” is the developer cert, and when you remove it, “Press enter to continue…” will be displayed for you again.\r\n\r\nWarning: I would not recommend deleting developer certificate unless you want to debug this issue because you'll be blocked as you can't launch your app due to this issue... :P\r\n\r\n!certmgr.png|thumbnail!", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-18T15:04:31.000+0000", "updated": "2016-11-18T15:07:26.000+0000" }, { "id": "401664", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/windowslib/pull/60", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-22T04:45:21.000+0000", "updated": "2016-11-22T04:45:21.000+0000" }, { "id": "401669", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Note: This needs to be merged to {{titanium_mobile}} in order to close this ticket.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-22T05:50:46.000+0000", "updated": "2016-11-22T05:50:46.000+0000" }, { "id": "401831", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~sliang], To apply this fix manually, replace {{C:\\ProgramData\\Titanium\\mobilesdk\\win32\\YOUR_TI_SDK\\node_modules\\windowslib\\lib\\winstore.js}} with [this latest one|https://github.com/appcelerator/windowslib/blob/master/lib/winstore.js].", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-25T00:36:42.000+0000", "updated": "2016-11-25T00:36:42.000+0000" }, { "id": "402279", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed the application now builds and runs successfully.\r\n\r\nTested on:\r\n\r\n{noformat}\r\nWindows 10 Pro (1807)\r\nTi SDK: 6.1.0.v20161130023500\r\nAppc NPM: 4.2.8\r\nApp CLI: 6.0.0\r\nWindowslib 0.4.20.1\r\nNode v4.6,0\r\n{noformat}\r\n\r\nClosing Ticket.", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-11-30T19:20:30.000+0000", "updated": "2016-11-30T19:20:30.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }