{ "id": "142459", "key": "TIMOB-18340", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-10T05:07:37.000+0000", "created": "2015-01-07T22:55:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-03-16T22:31:52.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": "Brand new install, get this error on a brand-new CLI created project (ti create -p windows):\r\n\r\n{code}\r\nPS C:\\Users\\Shannon\\Desktop\\helloworld> ti build -p windows -T wp-emulator -C 8-1-1 --wp-publisher-guid 00000000-0000-10\r\n00-8000-000000000000\r\n\r\nC:\\Users\\Shannon\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\longjohn\\dist\\longjohn.js:185\r\n throw e;\r\n ^\r\nTypeError: Cannot read property 'visualstudio' of undefined\r\n at MobileWebBuilder. (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\mobileweb\\cli\\hooks\\w\r\nindows.js:107:10)\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\index.js:94:5\r\n at done (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\node_modules\\async\\li\r\nb\\async.js:129:15)\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\node_modules\\async\\lib\\asyn\r\nc.js:32:16\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\index.js:89:5\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\lib\\env.js:111:5\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\node_modules\\async\\lib\\asyn\r\nc.js:254:17\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\node_modules\\async\\lib\\asyn\r\nc.js:151:21\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\node_modules\\async\\lib\\asyn\r\nc.js:251:21\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.6.0.v20150107091442\\node_modules\\windowslib\\node_modules\\async\\lib\\asyn\r\nc.js:615:34\r\nPS C:\\Users\\Shannon\\Desktop\\helloworld> ti build -p windows -T wp-emulator -C 8-1-1 --wp-publisher-guid 00000000-0000-10\r\n00-8000-000000000000\r\n{code}\r\n\r\nThe only thing that was odd about this install was that I installed everything while running Windows 8.1.... Home? I updated to Windows 8.1 Pro after getting an error about hyper-v not being supported on my edition of Windows. Don't know if it's related.\r\n\r\nI tried creating a new project with Ti 3.6.0.v20150107091442 on an existing VMWare install, and it's working there... so it's not this version of the SDK creating a bad project.", "attachment": [], "flagged": false, "summary": "Windows: Error during compilation - TypeError: Cannot read property 'visualstudio' of undefined", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "Windows 8.1 Pro\r\nTi 3.6.0.v20150107091442\r\nVisual Studio 2013 Update 4", "closedSprints": [ { "id": 420, "state": "closed", "name": "2015 Sprint 12 Windows", "startDate": "2015-06-07T01:15:19.706Z", "endDate": "2015-06-21T01:15:00.000Z", "completeDate": "2015-06-20T23:02:18.410Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "338353", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "There's something very funky going on here, because as you can see it's referencing MobileWebBuilder, not the WindowsBuilder. Somehow it thinks this is mobileweb?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-08T14:33:59.000+0000", "updated": "2015-01-08T14:33:59.000+0000" }, { "id": "338414", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-08T20:39:46.000+0000", "updated": "2015-01-08T20:39:46.000+0000" }, { "id": "346532", "author": { "name": "tiangolo", "key": "tiangolo", "displayName": "Sebastián Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think this is related to this answer: http://developer.appcelerator.com/question/176401/longjohn-bad-argument-error-message#answer-281342\r\n\r\nI had the problem described in that question: \r\n\r\n{code}\r\nC:\\Users\\User\\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 at exports.spawn (child_process.js:715:9)\r\n at async.parallel.powershell (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.5.1.GA\\node_modules\\titanium-sdk\\lib\\windows.js:386:14)\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.5.1.GA\\node_modules\\async\\lib\\async.js:524:25\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.5.1.GA\\node_modules\\async\\lib\\async.js:111:13\r\n at Array.forEach (native)\r\n at _each (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.5.1.GA\\node_modules\\async\\lib\\async.js:32:24)\r\n at async.each (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.5.1.GA\\node_modules\\async\\lib\\async.js:110:9)\r\n at _parallel (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.5.1.GA\\node_modules\\async\\lib\\async.js:523:20)\r\n at async.parallel (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\3.5.1.GA\\node_modules\\async\\lib\\async.js:539:9)\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 8\r\n{code}\r\n\r\nI was building the Hello World application from the IDE.\r\n\r\nThe solution of replacing the line:\r\n{code:javascript}\r\nif (!selectedVisualStudio) return next();\r\n{code}\r\nwith:\r\n{code:javascript}\r\nif (true) return next();\r\n{code}\r\nworked for me.\r\n\r\nI have:\r\nWindows 7 64x\r\nTitanium Studio, build: 3.4.1.201410281727\r\nTitanium Mobile 3.5.1.GA\r\nNodeJS: v0.10.13\r\nAndroid SDK Manager Revision: 24.1.2\r\nAndroid SDKs: \r\n5.0.1, \r\n4.1.2, \r\n4.0, \r\n3.0", "updateAuthor": { "name": "tiangolo", "key": "tiangolo", "displayName": "Sebastián Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-19T14:54:26.000+0000", "updated": "2015-03-19T14:56:30.000+0000" }, { "id": "354725", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Should be fixed for now.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-10T05:07:37.000+0000", "updated": "2015-06-10T05:07:37.000+0000" }, { "id": "413375", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:31:52.000+0000", "updated": "2017-03-16T22:31:52.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }