cordova-cli icon indicating copy to clipboard operation
cordova-cli copied to clipboard

Need to specify variables when uninstalling a plugin

Open janpio opened this issue 6 years ago • 1 comments

Bug Report

Problem

What is expected to happen?

I can uninstall the plugin without having to specify variables.

What does actually happen?

I have this plugins that requires 2 variables to install:

E:\Projects\throwaway\cordovaPlatformVerificationPlugin  ([email protected])
λ cordova plugin add E:\Projects\Cordova\cordova-paramedic\spec\platform-verification-plugin\tests --variable PLATFORM=foo --variable VERSION=bar Plugin "platform-verification-plugin.tests" already installed on browser.
Adding platform-verification-plugin.tests to package.json

defined via plugin.xml:

    <preference name="PLATFORM" />
    <preference name="VERSION" />

But when I try to uninstall it, I also have to supply the variables:

E:\Projects\throwaway\cordovaPlatformVerificationPlugin  ([email protected])
λ cordova plugin rm platform-verification-plugin.tests
Variable(s) missing (use: --variable PLATFORM=value --variable VERSION=value).

With the variable supplied I can uninstall the plugin:

E:\Projects\throwaway\cordovaPlatformVerificationPlugin  ([email protected])
λ cordova plugin rm platform-verification-plugin.tests --variable PLATFORM=foo --variable VERSION=bar
Uninstalling 1 dependent plugins.
Uninstalling cordova-plugin-device from browser
js-module uninstall called : plugins\cordova-plugin-device\www\device.js
js-module uninstall called : plugins\cordova-plugin-device\src\browser\DeviceProxy.js
Uninstalling platform-verification-plugin.tests from browser
js-module uninstall called : plugins\platform-verification-plugin.tests\tests.js
Removing "platform-verification-plugin.tests"
Removing platform-verification-plugin.tests from package.json

Information

Command or Code

cordova plugin rm platform-verification-plugin.tests

Version information

λ cordova info
[email protected] with:
  [email protected]
  [email protected]
  [email protected]
  [email protected]

Environment:
  OS: win32
  Node: v12.3.1
  npm: 6.9.0

Checklist

  • [x] I searched for existing GitHub issues
  • [x] I updated all Cordova tooling to most recent version
  • [x] I included all the necessary information above

janpio avatar Jun 29 '19 21:06 janpio

Any updates on this?

HarelM avatar Jul 24 '20 11:07 HarelM