{ "id": "153420", "key": "TIMOB-20057", "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": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-24T19:12:30.000+0000", "created": "2015-11-24T09:04:11.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [ { "id": "49961", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "153423", "key": "TIMOB-20058", "fields": { "summary": "Fail gracefully if an individual platform check fails", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "51975", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "160786", "key": "TIMOB-23480", "fields": { "summary": "CLI: Can't launch any app (Android, Mobileweb) on Windows 10 OS", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2016-06-08T15:30:06.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": "10207", "name": "Tooling" }, { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "# Ensure there are no versions of Visual Studio installed.\r\n# Attempt to build. There is an error of:\r\n\r\n{code}\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.1.0.GA\\windows\\cli\\commands\\_build\\config\\vstarget.js:13\r\nvar defaultTarget = this.windowsInfo.selectedVisualStudio.version;\r\nTypeError: Cannot read property 'version' of null\r\n{code}\r\n\r\nSee this link https://community.appcelerator.com/topic/4128/issues-with-update-from-4-x-to-5-1", "attachment": [], "flagged": false, "summary": "Windows: Unable to build for any platform if there is no Visual Studio installed", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "371339", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have rolled back the installer versions to 0.12.7 in the meantime while we diagnose the issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-24T11:25:48.000+0000", "updated": "2015-11-24T11:25:48.000+0000" }, { "id": "371340", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The problem is because the Windows build doesn't check if the {{this.windowsInfo.selectedVisualStudio}} is not null: https://github.com/appcelerator/titanium_mobile_windows/blob/master/cli/commands/_build/config/vstarget.js#L13.\r\n\r\nAlso, the Windows build should set the {{defaultTarget}} value to {{undefined}} if {{this.windowsInfo.selectedVisualStudio}} is not valid:\r\n\r\n{code}\r\nvar defaultTarget = this.windowsInfo.selectedVisualStudio ? this.windowsInfo.selectedVisualStudio.version : undefined;\r\n{code}\r\n\r\nApparently the user hard coded the {{defaultTarget}} to 11 which implies he's using Visual Studio 2012. Windows lib should be able to detect VS2012 installs, however the Titanium Mobile Windows platform is only compatible with Visual Studio 2013: https://github.com/appcelerator/titanium_mobile_windows/blob/master/package.json#L27. That explains why there were no Visual Studios found. If the user would run {{ti info}}, they would see that their environment is not supported.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-11-24T12:09:57.000+0000", "updated": "2015-11-24T12:09:57.000+0000" }, { "id": "371371", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs are already merged to 5_1_X and master streams.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-24T19:12:30.000+0000", "updated": "2015-11-24T19:12:30.000+0000" }, { "id": "371475", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 10 Pro\r\nAppc core: 5.1.0\r\nAppc NPM: 4.2.2\r\nTi SDK: 5.1.1.GA\r\nAppc Studio: 4.4.0.201511241829\r\n\r\nWhen Visual Studio is not installed, building for another platform no longer fails.\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-11-25T18:52:31.000+0000", "updated": "2015-11-25T18:52:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }