+1, let's file it as an issue On 8/6/13 7:01 AM, "Andrew Grieve" <[email protected]> wrote:
>The path where it was looking for the file looks correct to me. Note that >plugins get copied into your project in *two* spots: > >1. within plugins/ >2. within platforms/ > >I think the bug here is that we should ignore when files we're trying to >delete are already gone. > > > >On Sat, Aug 3, 2013 at 8:32 PM, Brian M Dube <[email protected]> wrote: > >> On 08/03/2013 02:51 PM, Don Coleman wrote: >> >>> This is probably and issue, plugman doesn't work well when files are >>> missing >>> >>> Usually you can touch the missing files and then uninstall >>> >> >> Thanks, Don. This works around the issue if I touch each source file >>that >> is expected to be found during plugin removal. Tedious, but it works. >> >> The issue, I think, is not that the files are 'missing' but that they >> exist somewhere else. Why does the removal step expect to find them >> somewhere other than where the installation step dropped them? >> >> >> $ touch /home/bdube/workspace/DropIt/****platforms/android/src/org/**** >>> apac >>> he/cordova/core/****FileTransfer.java >>> $ cordova -d plugin rm org.apache.cordova.core.file-****transfer >>> >>> Other times it is easier to delete the contents of the plugin directory >>> and >>> re-install all the plugins >>> >>> >>> >>> >>> On Sat, Aug 3, 2013 at 3:05 PM, Brian M Dube<[email protected]> wrote: >>> >>> I can't tell which piece of the puzzle to massage to make this work. >>>See >>>> output below. The path plugman is attempting to unlink is not where >>>>the >>>> plugin code is installed. Adding and removing the geolocation plugin >>>> works >>>> for me so I tried to find the difference between the two plugin.xml >>>> files. >>>> If that's where the answer lies, I've missed it. >>>> >>>> Am I doing this all wrong? If I should file an issue, which component? >>>> >>>> $ pwd >>>> /home/bdube/workspace/DropIt >>>> >>>> $ cordova -v >>>> 3.0.4 >>>> >>>> $ cordova plugin ls >>>> [ 'org.apache.cordova.core.file-****transfer' ] >>>> >>>> $ cordova -d plugin rm org.apache.cordova.core.file-****transfer >>>> Calling plugman.uninstall on plugin "org.apache.cordova.core.file-** >>>> **transfer" >>>> for platform "android" >>>> Uninstalling org.apache.cordova.core.file-****transfer... >>>> Beginning processing of action stack for android project... >>>> Parsing android project files... >>>> Error during processing of action! Attempting to revert... >>>> Error: Uh oh! >>>> ENOENT, no such file or directory '/home/bdube/workspace/DropIt/**** >>>> >>>>platforms/android/src/org/****apache/cordova/core/****FileTransfer.java >>>>' >>>> at Object.fs.unlinkSync (fs.js:760:18) >>>> at Object.module.exports.****deleteJava >>>> (/home/bdube/lib/node-v0.10.** >>>> 10-linux-x64/lib/node_modules/****cordova/node_modules/**plugman/** >>>> src/platforms/common.js:44:12) >>>> at module.exports.source-file.****uninstall >>>> (/home/bdube/lib/node-v0.10. >>>> **10-linux-x64/lib/node_**modules/**cordova/node_**modules/plugman/** >>>> src/platforms/android.js:44:****20) >>>> at Object.ActionStack.process (/home/bdube/lib/node-v0.10.** >>>> 10-linux-x64/lib/node_modules/****cordova/node_modules/**plugman/** >>>> src/util/action-stack.js:61:****25) >>>> at handleUninstall (/home/bdube/lib/node-v0.10.** >>>> 10-linux-x64/lib/node_modules/****cordova/node_modules/**plugman/** >>>> src/uninstall.js:159:13) >>>> at runUninstall (/home/bdube/lib/node-v0.10.** >>>> 10-linux-x64/lib/node_modules/****cordova/node_modules/**plugman/** >>>> src/uninstall.js:120:9) >>>> at Function.module.exports.****uninstallPlatform >>>> (/home/bdube/lib/node-v0.10.****10-linux-x64/lib/node_modules/**** >>>> cordova/node_modules/plugman/****src/uninstall.js:42:5) >>>> at >>>>/home/bdube/lib/node-v0.10.10-****linux-x64/lib/node_modules/*** >>>> * >>>> cordova/src/plugin.js:193:51 >>>> at Array.forEach (native) >>>> at >>>>/home/bdube/lib/node-v0.10.10-****linux-x64/lib/node_modules/*** >>>> * >>>> cordova/src/plugin.js:189:42 >>>> >>>> >>>
