You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2015/09/09 16:09:46 UTC

[jira] [Created] (CB-9631) 'plugin add --save' saves plugin entry even if plugin installation fails

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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org