phonegap / phonegap-cli

PhoneGap and PhoneGap/Build command-line interface
Apache License 2.0
491 stars 156 forks source link

"Phonegap plugin remove" does not work. #268

Closed oasisweng closed 10 years ago

oasisweng commented 10 years ago

Basically, I am attempting to remove blueserial plugin, and the following was my original list of plugins: soudaodieleba:BPEase oasis_weng$ phonegap plugin list [phonegap] com.megster.cordova.bluetoothserial [phonegap] de.appplant.cordova.plugin.email-composer [phonegap] org.apache.cordova.file [phonegap] org.apache.cordova.file-transfer [phonegap] org.apache.cordova.splashscreen

Then I run: soudaodieleba:BPEase oasis_weng$ phonegap plugin remove com.megster.cordova.bluetoothserial [phonegap] removing the plugin: com.megster.cordova.bluetoothserial [phonegap] successfully removed the plugin

Then I check the list again: soudaodieleba:BPEase oasis_weng$ phonegap plugin list [phonegap] com.megster.cordova.bluetoothserial [phonegap] de.appplant.cordova.plugin.email-composer [phonegap] org.apache.cordova.file [phonegap] org.apache.cordova.file-transfer [phonegap] org.apache.cordova.splashscreen

My list of plugins did not change at all, and when I check the plugin folder, I confirmed that it didnt not get removed.

Is this a bug or something? If I manually remove it, it wont update android.json. My current solution is to make a new project and install other plugins again, which tbh, sounds real bad :-(

Please help

lorinbeer commented 10 years ago

Hi @oasisweng,

adding/removing plugins is testable and working and this is probably not a bug.

I have come across similar behaviour, and it had to do with errors in my plugin setup (plugin.xml).

I can help you trouble shoot if you post a link to your code, or you can try initializing your plugin with the plugman tool. Cordova/PhoneGap uses PlugMan under the hood. You can use:

$ npm install -g plugman
$ plugman create

you can take a look at the documentation for the create command. There are a lot of different hooks and entries which allow Cordova/PhoneGap to intelligently manage plugins, miss one and you get unexpected behaviour as above. I've run into this more than once myself :P

Closing this issue as it does not describe a software bug. @oasisweng please feel free to continue posting here if the above suggestion does not work, and I will do what I can to help. You could also take your question over to the phonegap google group: https://groups.google.com/forum/#!forum/phonegap

oasisweng commented 10 years ago

Thank you

On Mon, Mar 17, 2014 at 9:50 PM, Lorin Beer notifications@github.comwrote:

Closed #268 https://github.com/phonegap/phonegap-cli/issues/268.

Reply to this email directly or view it on GitHubhttps://github.com/phonegap/phonegap-cli/issues/268 .

Best Regards, Dingzhong Weng

oasisweng commented 10 years ago

I solved it!

On Tue, Mar 18, 2014 at 12:05 AM, Dingzhong Weng oasisweng@gmail.comwrote:

Thank you

On Mon, Mar 17, 2014 at 9:50 PM, Lorin Beer notifications@github.comwrote:

Closed #268 https://github.com/phonegap/phonegap-cli/issues/268.

Reply to this email directly or view it on GitHubhttps://github.com/phonegap/phonegap-cli/issues/268 .

Best Regards, Dingzhong Weng

Best Regards, Dingzhong Weng

oasisweng commented 10 years ago

You’ve been invited!

Your friend Lulu gave you £15 off your first trip on Airbnb, the best way to travel. Be sure to say thanks!

Claim your £15 credit http://www.airbnb.co.uk/c/lwang82?euid=020a4e9f-5977-5bf6-e87a-ecfab528aacc&ri=6465583&s=1

Thanks, The Airbnb Team

P.O. Box 410807, San Francisco, CA 94121

Unsubscribe https://www.airbnb.com/email/unsubscribe?token=eyJlbWFpbF9hZGRyZXNzIjoicmVwbHkraS0yOTUwMjQzOS02MzliYTEzNWUxYjc5MjA3MzhjNzdmMDFhMGM2OTU4OTM2YjgzMWYyLTE5OTYyMTNAcmVwbHkuZ2l0aHViLmNvbSIsInVzZXJfaWQiOm51bGwsImNhdGVnb3J5IjoicmVmZXJyYWxzIiwidGVtcGxhdGUiOiJpbnZpdGF0aW9uIiwidXVpZCI6IjAyMGE0ZTlmLTU5NzctNWJmNi1lODdhLWVjZmFiNTI4YWFjYyJ9&mac=xk64SXpXgitDbonBkfY1fC8q3KI=

Airbnb