cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Coleman <don.cole...@gmail.com>
Subject Re: [CLI,Android] Removing FileTransfer plugin fails with ENOENT
Date Sat, 03 Aug 2013 21:51:36 GMT
This is probably and issue, plugman doesn't work well when files are missing

Usually you can touch the missing files and then uninstall

$ 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 <bdube@apache.org> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message