cordova-cli
cordova-cli copied to clipboard
cordova plugin remove command still gives variable missing for variables already specified
Bug Report
Problem
cordova plugin rm
gives variables missing
error for variables already specified in command.
What is expected to happen?
It should not give the error because I have specified all required variables.
What does actually happen?
It gives a variables missing
error for variables that are already specified in the command line.
Information
Command or Code
cordova plugin rm cordova-plugin-teladoc --variable CALENDARS_USAGE_DESCRIPTION="description" --variable CAMERA_USAGE_DESCRIPTION="description" --variable LOCATION_ALWAYS_AND_WHEN_IN_USE_DESCRIPTION="description" --variable LOCATION_ALWAYS_USAGE_DESCRIPTION="description" --variable LOCATION_WHEN_IN_USE_DESCRIPTION="description" --variable MICROPHONE_USAGE_DESCRIPTION="description" --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="description"
Environment, Platform, Device
macOS 12.3.1 Monterey
Version information
Cordova 11, cordova-ios 6.2.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
I will be closing out this issue because it is a duplicate of https://github.com/apache/cordova-cli/issues/446.
I will re-opening the issue again. At first glance, it looked like a duplicate of the other ticket. Further checking, your ticket says all variables were provided and the uninstalling still failed. The other ticket is more around the process, where the ticket author believes the variables should not be required as part of the uninstalling command.
Can you provide steps to reproduce this issue?
It appears the plugin is not in the npm registry and can not be installed.
If you can provide the same issue with a publicly available plugin, that will help us better trace the bug.
@erisu The same issue to me.
I create a plugin, the plugin.xml has 3 preference variables that required when install this plugin. like below:
<platform name="android">
<preference name="A_B_C"/>
</platform>
<platform name="ios">
<preference name="D_E_F"/>
<preference name="L_M_N"/>
</platform>
my environment like below:
macOS 12.3.1 Monterey
cordova-cli 9.0.0
i have added [email protected]
and [email protected]
in my Cordova App project
when install this plugin, i provide 3 variables, it success. But when remove this plugin, i provide 3 same variables, it failed, and show me same issue like below:
Variable(s) missing: D_E_F, L_M_N
I try upgrade cordova-cli to 11.0.0, but it still show me same issue