Project: titanium
Issue TIMOB-23246: Windows: Unable to create Module project
*Summary* Creating module project doesn't work when Visual Studio 2015 is not installed. *Steps to Reproduce* Run {{appc new -n test --id com.example.test}} under the environment where Visual Studio 2015 is not installed. *Expected Result* - When user installs VS 2013 only, it shoud generate VS 2013 module project - When user installs VS 2015 only, it should generate VS 2015 module project - When user installs both VS 2015 and 2013, it should generate VS 2015 module project because it's newer ------------------------------- Following the docs on creating a module (to be able to use background service or similar features) do not work. The error is that the module cannot be created due to this error: {code} PS Z:\Users\jorgenbuder\Documents\Appcelerator_Studio_Workspace> appc new -n test --id com.example.test Appcelerator Command-Line Interface, version 5.2.2 Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved. ? What type of project are you creating? Titanium Module (timodule) ? Do you want to overwrite? Yes CMake Error at CMakeLists.txt:20 (project): A Windows Phone component with CMake requires both the Windows Desktop SDK as well as the Windows Phone '8.1' SDK. Please make sure that you have both installed 2016-04-20T11:06:42.061Z | ERROR | titanium exited with non-zero exit code (1) PS Z:\Users\jorgenbuder\Documents\Appcelerator_Studio_Workspace> {code} This was not a problem when I tried crating a module poor to the new SDK 5.4.0.v20160419xxxxxx Then again I did not use the same module create command, but this proposed method does not work. I want to ask you why the system complains about the when I indeed have Phone 8.1 installed. I create this bug on your request since this is stopping me to test the background service features you have added and is critical to us! This is my setup: {code} Node: v0.12.7 Appc info PS Z:\Users\jorgenbuder\Documents\Appcelerator_Studio_Workspace> appc info Appcelerator Command-Line Interface, version 5.2.2 Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved. Operating System Name = Microsoft Windows 8.1 Pro Version = 6.3.9600 Architecture = 32bit # CPUs = 4 Memory = 4.0GB Node.js Node.js Version = 0.12.7 npm Version = 2.11.3 Appcelerator CLI Installer = 4.2.4 Core Package = 5.2.2 Titanium CLI CLI Version = 5.0.6 node-appc Version = 0.2.31 Titanium SDKs 5.4.0.v20160419234222 Version = 5.4.0 Install Location = C:\Users\jorgenbuder\Library\Application Support\Titanium\mobilesdk\win32\5.4.0.v20160 9234222 Platforms = android, mobileweb, windows git Hash = 743d79c git Timestamp = 04/19/16 23:42 node-appc Version = 0.2.35 5.4.0.v20160418194101 Version = 5.4.0 Install Location = C:\Users\jorgenbuder\Library\Application Support\Titanium\mobilesdk\win32\5.4.0.v20160 8194101 Platforms = android, mobileweb, windows git Hash = ff3acd9 git Timestamp = 04/18/16 19:41 node-appc Version = 0.2.35 5.4.0.v20160406002717 Version = 5.4.0 Install Location = Z:\Users\jorgenbuder\Library\Application Support\Titanium\mobilesdk\win32\5.4.0.v20160 6002717 Platforms = android, mobileweb, windows git Hash = 3b4a229 git Timestamp = 04/06/16 00:27 node-appc Version = 0.2.35 5.4.0.v20160330202802 Version = 5.4.0 Install Location = C:\Users\jorgenbuder\Library\Application Support\Titanium\mobilesdk\win32\5.4.0.v20160 0202802 Platforms = android, mobileweb, windows git Hash = 15320e5 git Timestamp = 03/30/16 20:28 node-appc Version = 0.2.35 5.4.0.v20160301084038 Version = 5.4.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160301084038 Platforms = android, mobileweb, windows git Hash = 071c19c git Timestamp = 03/01/16 08:40 node-appc Version = 0.2.35 5.2.2.GA Version = 5.2.2 Install Location = Z:\Users\jorgenbuder\Library\Application Support\Titanium\mobilesdk\win32\5.2.2.GA Platforms = android, mobileweb, windows git Hash = b685ddb git Timestamp = 03/28/16 14:12 node-appc Version = 0.2.33 5.2.1.GA Version = 5.2.1 Install Location = C:\Users\jorgenbuder\Library\Application Support\Titanium\mobilesdk\win32\5.2.1.GA Platforms = android, mobileweb, windows git Hash = 23e1c7d git Timestamp = 03/18/16 22:51 node-appc Version = 0.2.33 5.2.0.v20151125082947 Version = 5.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20151125082947 Platforms = android, mobileweb, windows git Hash = 1edba8d git Timestamp = 11/25/15 08:29 node-appc Version = 0.2.33 5.2.0.v20151123172027 Version = 5.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20151123172027 Platforms = git Hash = a451c7d git Timestamp = 11/23/15 17:20 node-appc Version = 0.2.33 5.2.0.GA Version = 5.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA Platforms = android, mobileweb, windows git Hash = 384775e git Timestamp = 02/20/16 08:04 node-appc Version = 0.2.33 4.2.0.v20150813145415 Version = 4.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.2.0.v20150813145415 Platforms = android, mobileweb, windows git Hash = 1b0d4a8 git Timestamp = 08/13/15 14:54 node-appc Version = 0.2.28 4.2.0.v20150812202823 Version = 4.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.2.0.v20150812202823 Platforms = android, mobileweb, windows git Hash = 1b0d4a8 git Timestamp = 08/12/15 20:28 node-appc Version = 0.2.28 4.2.0.v20150811132821 Version = 4.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.2.0.v20150811132821 Platforms = android, mobileweb, windows git Hash = 8c7083c git Timestamp = 08/11/15 13:28 node-appc Version = 0.2.28 4.2.0.v20150730093157 Version = 4.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.2.0.v20150730093157 Platforms = android, mobileweb, windows git Hash = 7adfcdd git Timestamp = 07/30/15 09:31 node-appc Version = 0.2.28 4.2.0.v20150708154418 Version = 4.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.2.0.v20150708154418 Platforms = android, mobileweb, windows git Hash = 86af84e git Timestamp = 07/08/15 15:44 node-appc Version = 0.2.24 4.2.0.v20150707233642 Version = 4.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.2.0.v20150707233642 Platforms = android, mobileweb, windows git Hash = 8605329 git Timestamp = 07/07/15 23:36 node-appc Version = 0.2.24 4.2.0.v20150619181228 Version = 4.2.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.2.0.v20150619181228 Platforms = android, mobileweb, windows git Hash = 5a0331a git Timestamp = 06/19/15 18:12 node-appc Version = 0.2.24 4.1.0.v20150616092649 Version = 4.1.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150616092649 Platforms = android, mobileweb, windows git Hash = 541529c git Timestamp = 06/16/15 09:26 node-appc Version = 0.2.24 4.1.0.v20150615164423 Version = 4.1.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150615164423 Platforms = android, mobileweb, windows git Hash = 541529c git Timestamp = 06/15/15 16:44 node-appc Version = 0.2.24 4.1.0.v20150610125228 Version = 4.1.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150610125228 Platforms = windows, mobileweb, android git Hash = d2e417b git Timestamp = 06/10/15 12:52 node-appc Version = 0.2.24 4.1.0.v20150609095225 Version = 4.1.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150609095225 Platforms = windows, mobileweb, android git Hash = 3d8add6 git Timestamp = 06/09/15 09:52 node-appc Version = 0.2.24 4.1.0.v20150604140424 Version = 4.1.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604140424 Platforms = windows, mobileweb, android git Hash = 154ad91 git Timestamp = 06/04/15 14:04 node-appc Version = 0.2.24 4.1.0.v20150522132746 Version = 4.1.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150522132746 Platforms = windows, mobileweb, android git Hash = d7a138c git Timestamp = 05/22/15 13:27 node-appc Version = 0.2.24 4.1.0.v20150521102225 Version = 4.1.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150521102225 Platforms = windows, mobileweb, android, blackberry git Hash = 38b1578 git Timestamp = 05/21/15 10:22 node-appc Version = 0.2.24 4.0.0.GA Version = 4.0.0 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\4.0.0.GA Platforms = mobileweb, android git Hash = 9239ff9 git Timestamp = 05/18/15 15:42 node-appc Version = 0.2.24 3.5.1.GA Version = 3.5.1 Install Location = C:\ProgramData\Titanium\mobilesdk\win32\3.5.1.GA Platforms = mobileweb, android, blackberry git Hash = 96875c9 git Timestamp = 03/05/15 10:08 node-appc Version = 0.2.24 Intel® Hardware Accelerated Execution Manager (HAXM) Not installed Java Development Kit Not found Genymotion Path = not found Genymotion Executable = not found Genymotion Player = not found Home = not found VirtualBox Executable = not found Version = unknown Android SDK Android Executable = not found ADB Executable = not found SDK Path = not found Android NDK NDK Path = not found NDK Version = not found Android Platforms None Android Add-Ons None Android Emulators None Genymotion Emulators None Connected Android Devices None Microsoft (R) Visual Studio 12.0 (selected) Path = C:\Program Files (x86)\Microsoft Visual Studio 12.0\ CLR Version = v4.0.30319 MSBuild Version = v12.0.31101.0 Windows Phone SDKs = not installed Microsoft (R) Windows Phone SDK 8.1 (selected) Path = C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\ Windows PowerShell Enabled = yes Windows Phone Emulators 8.1 Emulator 8.1 WVGA 4 inch 512MB UDID 8-1-1 Emulator 8.1 WVGA 4 inch UDID 8-1-2 Emulator 8.1 WXGA 4.5 inch UDID 8-1-3 Emulator 8.1 720P 4.7 inch UDID 8-1-4 Emulator 8.1 1080P 5.5 inch UDID 8-1-5 Emulator 8.1 1080P 6 inch UDID 8-1-6 10.0 Windows Phone Devices Device UDID 0 Java Development Kit Issues × JDK (Java Development Kit) not installed. If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set. The JDK is required for must be manually downloaded and installed from http://appcelerator.com/jdk. Android Issues × JDK (Java Development Kit) not found. If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set. The JDK can be downloaded and installed from http://appcelerator.com/jdk. PS Z:\Users\jorgenbuder\Documents\Appcelerator_Studio_Workspace> {code} I create the module with: {{appc new -n test --id com.example.test}} Docs: https://wiki.appcelerator.org/display/guides2/Windows+Background+Service+Quick+Start#WindowsBackgroundServiceQuickStart-WindowsModulePrerequisites Is there something wrong here? Do remember I build both my old module with old SDK 20160406 and I also build my app like that, but anything newer does not work.. and as stated here I am not even able to create a new module. I was hoping that using SAME working module but build with latest SDK and also build then in App with latest SDK would work, at least, but not even that. Please help thanks
Story points: 5