[jira] [Commented] (CB-4944) cordova-cli build command on windows tries to install app locally

2014-02-27 Thread Sergey Grebnov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13914195#comment-13914195
 ] 

Sergey Grebnov commented on CB-4944:


PS. Support of  'installation instructions' has not been added. But we have 
'cordova run' support.

> cordova-cli build command on windows tries to install app locally
> -
>
> Key: CB-4944
> URL: https://issues.apache.org/jira/browse/CB-4944
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI, Windows 8
>Affects Versions: 3.1.0
> Environment: windows8
> cordova-cli branch 3.1.x with pull request
> https://github.com/apache/cordova-cli/pull/44
> cordova-windows branch 3.1.x
>Reporter: Carlos Santana
>Assignee: Jesse MacFadyen
>
> buid command fails if ran twice.
> maybe it should just create the package and not try to install on local 
> machine?
> maybe installing should be done with "cordova run"
> not sure what is the best design for windows8, but I got an error maybe just 
> a bug
> when running cordova build
> I had some errors running build on the second time.
> On the first time  it compiles. builds the package and then tries to install 
> the app locally
> On the second time it compiles,build the package and then it fails installing 
> the app locally
> Maybe the build command should not try to install locally.
> Maybe it should try to install locally with the "cordova run" command?
> C:\Users\Carlos\Desktop\Win8-0928> node 
> Z:\Documents\cordova-3.1.x\cordova-cli\bin\cordova build -d
> cordova library for "windows8" already exists. No need to download. 
> Continuing.
> Calling plugman.prepare for platform "windows8"
> Preparing windows8 project...
> Processing configuration changes for plugins.
> creating jsproj from project at : 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj
> Iterating over installed plugins: []
> Writing out cordova_plugins.js...
> Compiling platform "windows8" with command 
> ""C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\cordova\build"" 
> (output to follow)...
> Building Cordova Windows 8 Project:
> Configuration : Debug
> Directory : C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8
> Building the projects in this solution one at a time. To enable parallel 
> build, please add the "/m" switch.
> C:\Program Files 
> (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(807,9):
>  warning APPX2101: File 'VisualStudioEdition' is not found or is not an 
> executable file. [C
> :\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj]
>   CordovaApp -> 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\CordovaApp_1.0.0.0_AnyCPU_Debug.appx
>   CordovaApp -> 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug.appxupload
>   Your package has been successfully created.
> Running Command :: PowerShell 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\Add-AppDevPackage.ps1
> Error running PowerShell script : 1
> Platform "windows8" compiled successfully.
> C:\Users\Carlos\Desktop\Win8-0928>



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-4944) cordova-cli build command on windows tries to install app locally

2014-02-27 Thread Sergey Grebnov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13914194#comment-13914194
 ] 

Sergey Grebnov commented on CB-4944:


This was fixed and now can be closed
1. 'cordova build' only performs a build now.
2. installation was moved to 'cordova run'

> cordova-cli build command on windows tries to install app locally
> -
>
> Key: CB-4944
> URL: https://issues.apache.org/jira/browse/CB-4944
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI, Windows 8
>Affects Versions: 3.1.0
> Environment: windows8
> cordova-cli branch 3.1.x with pull request
> https://github.com/apache/cordova-cli/pull/44
> cordova-windows branch 3.1.x
>Reporter: Carlos Santana
>Assignee: Jesse MacFadyen
>
> buid command fails if ran twice.
> maybe it should just create the package and not try to install on local 
> machine?
> maybe installing should be done with "cordova run"
> not sure what is the best design for windows8, but I got an error maybe just 
> a bug
> when running cordova build
> I had some errors running build on the second time.
> On the first time  it compiles. builds the package and then tries to install 
> the app locally
> On the second time it compiles,build the package and then it fails installing 
> the app locally
> Maybe the build command should not try to install locally.
> Maybe it should try to install locally with the "cordova run" command?
> C:\Users\Carlos\Desktop\Win8-0928> node 
> Z:\Documents\cordova-3.1.x\cordova-cli\bin\cordova build -d
> cordova library for "windows8" already exists. No need to download. 
> Continuing.
> Calling plugman.prepare for platform "windows8"
> Preparing windows8 project...
> Processing configuration changes for plugins.
> creating jsproj from project at : 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj
> Iterating over installed plugins: []
> Writing out cordova_plugins.js...
> Compiling platform "windows8" with command 
> ""C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\cordova\build"" 
> (output to follow)...
> Building Cordova Windows 8 Project:
> Configuration : Debug
> Directory : C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8
> Building the projects in this solution one at a time. To enable parallel 
> build, please add the "/m" switch.
> C:\Program Files 
> (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(807,9):
>  warning APPX2101: File 'VisualStudioEdition' is not found or is not an 
> executable file. [C
> :\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj]
>   CordovaApp -> 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\CordovaApp_1.0.0.0_AnyCPU_Debug.appx
>   CordovaApp -> 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug.appxupload
>   Your package has been successfully created.
> Running Command :: PowerShell 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\Add-AppDevPackage.ps1
> Error running PowerShell script : 1
> Platform "windows8" compiled successfully.
> C:\Users\Carlos\Desktop\Win8-0928>



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-4944) cordova-cli build command on windows tries to install app locally

2014-02-26 Thread Jesse MacFadyen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13913934#comment-13913934
 ] 

Jesse MacFadyen commented on CB-4944:
-

Sergey, Is this still relevant? I like your proposal.

> cordova-cli build command on windows tries to install app locally
> -
>
> Key: CB-4944
> URL: https://issues.apache.org/jira/browse/CB-4944
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI, Windows 8
>Affects Versions: 3.1.0
> Environment: windows8
> cordova-cli branch 3.1.x with pull request
> https://github.com/apache/cordova-cli/pull/44
> cordova-windows branch 3.1.x
>Reporter: Carlos Santana
>Assignee: Jesse MacFadyen
>
> buid command fails if ran twice.
> maybe it should just create the package and not try to install on local 
> machine?
> maybe installing should be done with "cordova run"
> not sure what is the best design for windows8, but I got an error maybe just 
> a bug
> when running cordova build
> I had some errors running build on the second time.
> On the first time  it compiles. builds the package and then tries to install 
> the app locally
> On the second time it compiles,build the package and then it fails installing 
> the app locally
> Maybe the build command should not try to install locally.
> Maybe it should try to install locally with the "cordova run" command?
> C:\Users\Carlos\Desktop\Win8-0928> node 
> Z:\Documents\cordova-3.1.x\cordova-cli\bin\cordova build -d
> cordova library for "windows8" already exists. No need to download. 
> Continuing.
> Calling plugman.prepare for platform "windows8"
> Preparing windows8 project...
> Processing configuration changes for plugins.
> creating jsproj from project at : 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj
> Iterating over installed plugins: []
> Writing out cordova_plugins.js...
> Compiling platform "windows8" with command 
> ""C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\cordova\build"" 
> (output to follow)...
> Building Cordova Windows 8 Project:
> Configuration : Debug
> Directory : C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8
> Building the projects in this solution one at a time. To enable parallel 
> build, please add the "/m" switch.
> C:\Program Files 
> (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(807,9):
>  warning APPX2101: File 'VisualStudioEdition' is not found or is not an 
> executable file. [C
> :\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj]
>   CordovaApp -> 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\CordovaApp_1.0.0.0_AnyCPU_Debug.appx
>   CordovaApp -> 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug.appxupload
>   Your package has been successfully created.
> Running Command :: PowerShell 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\Add-AppDevPackage.ps1
> Error running PowerShell script : 1
> Platform "windows8" compiled successfully.
> C:\Users\Carlos\Desktop\Win8-0928>



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-4944) cordova-cli build command on windows tries to install app locally

2013-10-17 Thread Sergey Grebnov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797771#comment-13797771
 ] 

Sergey Grebnov commented on CB-4944:


Propose to replace  command execution logic with console output message about 
how user can install the app locally with full powershell file location. 

Advantages:
1. build command will do exactly what it should- build package, it should not 
install anything. But user friendly message with installation instructions will 
be very handy for developers new in Windows Store app development.
2. Right now powershell script can fail due to several reasons (see below 
+CB-5038) so error popup window is showed for a very short period of time (so 
you can't understand issue cause). In this case you see "Platform "windows8" 
compiled successfully." but in the same time you realize that something bad 
happened so users can be confused. Powershell can fail due to:
a) security restrictions (by default no powershell scripts can be run w/o 
changing system settings)
b) package was already installed (this means that you will encounter this error 
every time; after first package has been installed first time)

Thoughts?

> cordova-cli build command on windows tries to install app locally
> -
>
> Key: CB-4944
> URL: https://issues.apache.org/jira/browse/CB-4944
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI, Windows 8
>Affects Versions: 3.1.0
> Environment: windows8
> cordova-cli branch 3.1.x with pull request
> https://github.com/apache/cordova-cli/pull/44
> cordova-windows branch 3.1.x
>Reporter: Carlos Santana
>Assignee: Jesse MacFadyen
>
> buid command fails if ran twice.
> maybe it should just create the package and not try to install on local 
> machine?
> maybe installing should be done with "cordova run"
> not sure what is the best design for windows8, but I got an error maybe just 
> a bug
> when running cordova build
> I had some errors running build on the second time.
> On the first time  it compiles. builds the package and then tries to install 
> the app locally
> On the second time it compiles,build the package and then it fails installing 
> the app locally
> Maybe the build command should not try to install locally.
> Maybe it should try to install locally with the "cordova run" command?
> C:\Users\Carlos\Desktop\Win8-0928> node 
> Z:\Documents\cordova-3.1.x\cordova-cli\bin\cordova build -d
> cordova library for "windows8" already exists. No need to download. 
> Continuing.
> Calling plugman.prepare for platform "windows8"
> Preparing windows8 project...
> Processing configuration changes for plugins.
> creating jsproj from project at : 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj
> Iterating over installed plugins: []
> Writing out cordova_plugins.js...
> Compiling platform "windows8" with command 
> ""C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\cordova\build"" 
> (output to follow)...
> Building Cordova Windows 8 Project:
> Configuration : Debug
> Directory : C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8
> Building the projects in this solution one at a time. To enable parallel 
> build, please add the "/m" switch.
> C:\Program Files 
> (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(807,9):
>  warning APPX2101: File 'VisualStudioEdition' is not found or is not an 
> executable file. [C
> :\Users\Carlos\Desktop\Win8-0928\platforms\windows8\CordovaApp.jsproj]
>   CordovaApp -> 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\CordovaApp_1.0.0.0_AnyCPU_Debug.appx
>   CordovaApp -> 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug.appxupload
>   Your package has been successfully created.
> Running Command :: PowerShell 
> C:\Users\Carlos\Desktop\Win8-0928\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\Add-AppDevPackage.ps1
> Error running PowerShell script : 1
> Platform "windows8" compiled successfully.
> C:\Users\Carlos\Desktop\Win8-0928>



--
This message was sent by Atlassian JIRA
(v6.1#6144)