You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/07/23 13:48:48 UTC

[jira] [Created] (CB-4357) TypeError when uninstall / install of a plugin

Shazron Abdullah created CB-4357:
------------------------------------

             Summary: TypeError when uninstall / install of a plugin
                 Key: CB-4357
                 URL: https://issues.apache.org/jira/browse/CB-4357
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI, Plugman
    Affects Versions: 3.0.0
            Reporter: Shazron Abdullah
            Assignee: Filip Maj


At uninstall:
{code}
Calling plugman.uninstall on plugin "com.testflightapp.plugin" for platform "ios"
Uninstalling com.testflightapp.plugin...
Beginning processing of action stack for ios project...
Parsing iOS project files...
Error during processing of action! Attempting to revert...
TypeError: Uh oh!
Object "$(inherited)" has no method 'filter'
    at pbxProject.removeFromLibrarySearchPaths (/usr/local/lib/node_modules/cordova/node_modules/plugman/node_modules/xcode/lib/pbxProject.js:460:55)
    at module.exports.source-file.uninstall (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/platforms/ios.js:69:31)
    at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/util/action-stack.js:49:25)
    at handleUninstall (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/uninstall.js:164:13)
    at runUninstall (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/uninstall.js:120:9)
    at Function.module.exports.uninstallPlatform (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/uninstall.js:42:5)
    at /usr/local/lib/node_modules/cordova/src/plugin.js:148:51
    at Array.forEach (native)
    at /usr/local/lib/node_modules/cordova/src/plugin.js:144:42
    at Array.forEach (native)
{code}


At install:
{code}
Calling plugman.install on plugin "/Users/shazron/Documents/Git/Klippings/klippings/plugins/com.testflightapp.plugin" for platform "ios"
Starting installation of "com.testflightapp.plugin"...
Installing plugin com.testflightapp.plugin...
Beginning processing of action stack for ios project...
Parsing iOS project files...
Error during processing of action! Attempting to revert...
TypeError: Uh oh!
Object "$(inherited)" has no method 'push'
    at pbxProject.addToLibrarySearchPaths (/usr/local/lib/node_modules/cordova/node_modules/plugman/node_modules/xcode/lib/pbxProject.js:487:47)
    at module.exports.source-file.install (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/platforms/ios.js:53:31)
    at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/util/action-stack.js:49:25)
    at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/install.js:283:13)
    at runInstall (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/install.js:235:9)
    at possiblyFetch (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/install.js:63:9)
    at Object.installPlugin [as install] (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/install.js:44:5)
    at /usr/local/lib/node_modules/cordova/src/plugin.js:101:45
    at Array.forEach (native)
    at /usr/local/lib/node_modules/cordova/src/plugin.js:97:46

{code}

The result is improper uninstallation/installation leaving plugin files still referenced in the pbxproj and on disk. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira