Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11662

plugman fails when installing plugins with windows framework references

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4.2
    • None
    • cordova-windows
    • Node 4.4.7, cordova 6.3.0, reproduce on Cygwin/Windows and Bash/OSX.

    Description

      When installing a plugin for cordova-windows with a framework reference, the command errors out. Reproduction steps and output below.

      npm install -g plugman
      cordova create myapp
      cd myapp
      cordova platform add windows
      cd ..
      [ryan-testapp]plugman install --plugin cordova-plugin-vibration --project platforms/windows --platform windows
      Fetching plugin "cordova-plugin-vibration" via npm
      Error during processing of action! Attempting to revert...
      Failed to install 'cordova-plugin-vibration':Error: Uh oh!
      ENOENT: no such file or directory, open 'plugins/cordova-plugin-vibration/src/windows/Vibration/Vibration.csproj'
          at Error (native)
          at Object.fs.openSync (fs.js:549:18)
          at Object.fs.readFileSync (fs.js:397:15)
          at Object.module.exports.parseElementtreeSync (/Users/ryanw/dev/sandbox/testapp/platforms/windows/cordova/node_modules/cordova-common/src/util/xml-helpers.js:179:27)
          at Object.jsprojManager.addProjectReference (/Users/ryanw/dev/sandbox/testapp/platforms/windows/cordova/lib/JsprojManager.js:187:44)
          at handlers.framework.install (/Users/ryanw/dev/sandbox/testapp/platforms/windows/cordova/lib/PluginHandler.js:92:25)
          at Object.ActionStack.process (/Users/ryanw/dev/sandbox/testapp/platforms/windows/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
          at PluginManager.doOperation (/Users/ryanw/dev/sandbox/testapp/platforms/windows/cordova/node_modules/cordova-common/src/PluginManager.js:117:20)
          at PluginManager.addPlugin (/Users/ryanw/dev/sandbox/testapp/platforms/windows/cordova/node_modules/cordova-common/src/PluginManager.js:147:17)
          at Api.addPlugin (/Users/ryanw/dev/sandbox/testapp/platforms/windows/cordova/Api.js:191:10)
      Uh oh!
      ENOENT: no such file or directory, open 'plugins/cordova-plugin-vibration/src/windows/Vibration/Vibration.csproj'
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wildabeast Ryan Willoughby
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: