Vladimir Kotikov created CB-9631:
------------------------------------

             Summary: 'plugin add --save' saves plugin entry even if plugin 
installation fails
                 Key: CB-9631
                 URL: https://issues.apache.org/jira/browse/CB-9631
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaLib
    Affects Versions: Master
            Reporter: Vladimir Kotikov
            Assignee: Vladimir Kotikov


*Repro steps:*
1. cordova create new-app && cd new-app
2. cordova platform add browser
3. cordova plugin add https://github.com/Wizcorp/phonegap-facebook-plugin.git 
--save

Installation fails since no plugin variables specified 

*Expected:*
Because the plugin installation failed, plugin entry is not persisted in 
config.xml

*Actual:*
config.xml contains plugin entry (empty, without variables).

The issue has an aside consequence if the plugin has mandatory variables. After 
faulty plugin installation 'cordova prepare' always tries to install plugin 
again and fails, so strictly speaking the project is broken until the plugin is 
not reinstalled correctly.



--
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

Reply via email to