[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-14 Thread Audrey So (JIRA)

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

Audrey So commented on CB-11990:


[~ymyhailova] 

You can also test with nightly to confirm these findings. npm install -g 
cordova@nightly
Thanks!



> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>  Labels: reproduced, triaged
> Attachments: cordova_6.3.0.rtf, cordova_6.3.1.rtf
>
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.
> [UPD] more detailed steps to reproduce:
> - install cordova@6.3.0
> - go to project with platform and plugins installed
> - do cordova platform remove android (or ios, doesn't matter) -> platform is 
> removed,  file is removed
> - do cordova prepare -> platform is added,  is recreated, 
> therefore plugins are added to the fresh created platform.
> - install cordova@6.3.1
> - do same steps
> - on a last step the  is not recreated, therefore platform is 
> created but no plugins are added.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-14 Thread Audrey So (JIRA)

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

Audrey So commented on CB-11990:


 [~ymyhailova]
Hi Yuliia,

Thank you for providing more detailed information... it was definitely a 
miscommunication about which ".json" file that was having the issue. I followed 
your steps and also reproduced the same bug. After removing android/ios and 
running cordova prepare in 6.3.0, the ios.json and android.json files are 
restored in the "plugins" directory. They are not restored in the "plugins" 
directory in 6.3.1. I also checked this out in 6.4.0 and it seems to be working 
fine (same as 6.3.0). 6.4.0 will be released next week. There is an issue with 
6.3.1 that will need to be addressed so the case will stay open. I'm glad we 
were able to figure it out. Thanks again for sending those detailed CL files 
-really helpful! --Audrey

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>  Labels: reproduced, triaged
> Attachments: cordova_6.3.0.rtf, cordova_6.3.1.rtf
>
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.
> [UPD] more detailed steps to reproduce:
> - install cordova@6.3.0
> - go to project with platform and plugins installed
> - do cordova platform remove android (or ios, doesn't matter) -> platform is 
> removed,  file is removed
> - do cordova prepare -> platform is added,  is recreated, 
> therefore plugins are added to the fresh created platform.
> - install cordova@6.3.1
> - do same steps
> - on a last step the  is not recreated, therefore platform is 
> created but no plugins are added.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-13 Thread Audrey So (JIRA)

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

Audrey So commented on CB-11990:


[~ymyhailova]

Hi Yuliia!

Thank you for providing me with step-by-step directions. That was really 
helpful and I appreciate the time you took to do that for me. I went ahead and 
followed each step. Here is what I found:

cordova 6.3.0
When I am removing a platform (cordova platform remove android), the platform 
“android” directory is removed, however my platforms.json file is not deleted. 
Instead my platforms.json file is just empty. Only my platforms “android” 
directory is removed. (I experience the same things in both 6.3.0. and 6.3.1).

I then manually removed platforms.json, but cordova prepare does not bring it 
back this way. Instead, delete the entire “platforms” directory. Then, when you 
use “cordova prepare” , everything including the platforms.json will be 
restored for you. One of cordova prepare’s purposes is to restore 
platforms/plugins that have been saved to config.xml if the 
directory/directories have been deleted. (In the “platforms” directory, you can 
also delete platforms.json and the “android” directory and run cordova prepare 
to get the same result as it will regenerate the platforms directory for you 
based on what has been saved in config.xml.) 

To test this, (1) create a cordova project, (2) add a new platform (android, 
etc) with cordova platform add android —save (that platform is now saved to 
config.xml), (3) delete the entire “platforms” directory with rm -r platforms, 
(4) run cordova prepare… here you should see that entire directory with the 
platforms.json restored. This process works the same way for plugins, too. 

Let me know how this works for you! Thanks! — Audrey

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.
> [UPD] more detailed steps to reproduce:
> - install cordova@6.3.0
> - go to project with platform and plugins installed
> - do cordova platform remove android (or ios, doesn't matter) -> platform is 
> removed,  file is removed
> - do cordova prepare -> platform is added,  is recreated, 
> therefore plugins are added to the fresh created platform.
> - install cordova@6.3.1
> - do same steps
> - on a last step the  is not recreated, therefore platform is 
> created but no plugins are added.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-13 Thread Yuliia Mykhailova (JIRA)

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

Yuliia Mykhailova commented on CB-11990:


[~auso]

Here are more definite steps to reproduce:

- install cordova@6.3.0
- go to project with platform and plugins installed
- do cordova platform remove android (or ios, doesn't matter) -> platform is 
removed,  file is removed
- do cordova prepare -> platform is added,  is recreated, 
therefore plugins are added to the fresh created platform.

- install cordova@6.3.1
- do same steps
- on a last step the  is not recreated, therefore platform is 
created but no plugins are added.

This is fixable by adding a platform instead of prepare. But then what is the 
point of prepare command, if you have to call add platform before it to be sure 
that all plugins are added? And removing plugins each time you remove a 
platform also not a good approach.

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-13 Thread Yuliia Mykhailova (JIRA)

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

Yuliia Mykhailova commented on CB-11990:


I meant /plugins/.json. Will provide more clean steps to 
reproduce.

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-13 Thread Yuliia Mykhailova (JIRA)

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

Yuliia Mykhailova commented on CB-11990:


I meant /plugins/.json. Will provide more clean steps to 
reproduce.

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-12 Thread Vladimir Kotikov (JIRA)

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

Vladimir Kotikov commented on CB-11990:
---

[~ymyhailova], which json file did you mean? Usually there are two 
.json files - {{/platforms//.json}} and 
{{/plugins/.json}}

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-11 Thread Audrey So (JIRA)

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

Audrey So commented on CB-11990:


When I tested in 6.3.0., cordova prepare would not re-create .json of plugins 
for me.

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-11 Thread Audrey So (JIRA)

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

Audrey So commented on CB-11990:


Hi Yuliia! Can you provide a more detailed description of what is happening? It 
does not work for me in the same way in 6.30. Thank you!

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-11 Thread Yuliia Mykhailova (JIRA)

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

Yuliia Mykhailova commented on CB-11990:


[~auso] Hello Audrey, in description of the ticket I have specified that on 
6.3.0 it's working, but not working on 6.3.1. Please re-check 6.3.1

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11990) Cordova prepare doesn't restore android.json and ios.json

2016-10-10 Thread Audrey So (JIRA)

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

Audrey So commented on CB-11990:


Hi! I checked out this issue on 6.3.0 and did not discover the same findings. 
If you want to regenerate android.json, delete the plugin and/or platform 
directory (assuming it is saved in config.xml) and run cordova prepare. Cordova 
prepare should restore this for you. Let me know if you find something else out 
or have anymore questions! -Audrey

> Cordova prepare doesn't restore android.json and ios.json
> -
>
> Key: CB-11990
> URL: https://issues.apache.org/jira/browse/CB-11990
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.3.1
>Reporter: Yuliia Mykhailova
>Assignee: Audrey So
>
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org