Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1ECA1105D3 for ; Fri, 5 Jul 2013 03:21:46 +0000 (UTC) Received: (qmail 88931 invoked by uid 500); 5 Jul 2013 03:21:46 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 88635 invoked by uid 500); 5 Jul 2013 03:21:45 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 88626 invoked by uid 99); 5 Jul 2013 03:21:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jul 2013 03:21:45 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iclelland@google.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jul 2013 03:21:41 +0000 Received: by mail-ob0-f169.google.com with SMTP id up14so2385749obb.14 for ; Thu, 04 Jul 2013 20:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=YGLFijSJOZCsbN4ESu2aUNmbHLZX2btp/Oa5FSnDino=; b=U2ibWKuf7gJq61+VFWz+6RMnq6Z+PTbn7C54RvmvJPv5SHhb5+n6oVb45eiuAdBbwI n5GZjA1ifDlzWqHxRI/eHLdyujRFE4fZVeD7ne0bjeI4BpfHs3KZ5S7vg5Xfay9D2hjS YNwLpoavQ4dNtiBsODBwrfMz9Xr04NK84LKHxr5zzn28pQW2I1HSMs7aqLOkyRtMuHZk rMgnap7ZwSN1s5N/ek1xTndJpEOKt/721tyN2huVIxxXgVozJlgM7M7r50E4GrcR+S9c kx7xrqbknh2GQ8/vIZYfPD2qq633ZwF7fWbTmuvdmaLQ1ZRf9zZn5OyZzPlokMFRKS7J PdWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=YGLFijSJOZCsbN4ESu2aUNmbHLZX2btp/Oa5FSnDino=; b=McZrep5vNc4GNhmelJJSjVZlzWkC8kL/5t9et3HEaHAlrPngAczvNvS3WFFkWlgxzz xAWRY92C7u2MryDwNWQCaJsGQkgsEFPkkmzj4jVKUlYzXncLVkermUid3DrSaZH8TPF5 yCCnIy4Bh2xneQK0AjMgtBjacwo/1lV32q1kSvu3DlvuTUtzwxQkF87+5H418AfXJRzc W/LaOTUMbXv7+5meCSsAB2ZjVToLVd6MGkbSOcMDJv4dO/tB2iO/V32PzEacSzyXvfw8 0ike3V7D5/Aej3Hf5q8hbW+SpA+U2ItjwxAilj7vYce8Aqvr6Zkwu51cJsSW5iI+O3lo SJrA== X-Received: by 10.182.134.229 with SMTP id pn5mr9036022obb.9.1372994480217; Thu, 04 Jul 2013 20:21:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.106.196 with HTTP; Thu, 4 Jul 2013 20:21:00 -0700 (PDT) In-Reply-To: References: From: Ian Clelland Date: Thu, 4 Jul 2013 23:21:00 -0400 Message-ID: Subject: Re: Uninstallation of dependency-only plugins To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a11c2570e45cf8404e0bb3007 X-Gm-Message-State: ALoCoQnsTZ9bZHvdUkQ2+lSTmIStrS1wl4aC8m8mG71ttURnLLzYty+0Z/nJqTjdu6IddWtoBz+QsR8Pul841N/4skLTtXz5DJEikC4L7C3+Mciar48O2NJnG04cl9QzXnpWDy/XU8Uxi9lH0NTNvKlnPOHs3KPMQF/J2PnN5fPaVE5kzJyRCTn3s6BNPOcsDsMPyEFnkSdX X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2570e45cf8404e0bb3007 Content-Type: text/plain; charset=UTF-8 Thanks, Fil, Created CB-4077 to track this. I'll start working on separating those functions. Ian On Thu, Jul 4, 2013 at 7:08 PM, Filip Maj wrote: > File an issue over at issues.cordova.io, tag plugman, and we can go from > there > > On 7/4/13 12:59 PM, "Ian Clelland" wrote: > > >This is the first time I've tried to use the CLI tools with the new 3.0 > >project structure, and I've discovered that I can't uninstall a plugin > >that > >only has dependencies (no source files, either JS or native) > > > >Specifically, I've built a mobilespec app, installing > >the mobile-spec-dependencies plugin, which does nothing but depend on > >every > >Cordova core plugin. I want to remove it, so that I can remove and > >reinstall one of the dependencies, but the CLI tools will not remove it. > > > >Digging through cordova-cli, it looks like "cordova plugin rm" attempts to > >invoke plugman.uninstall once per platform, but mobile-spec-dependencies > >doesn't declare any platforms. > > > >plugman.uninstall seems to do two things, which I think should be > >separated: It removes the plugin from a specific platform, and it removes > >the plugin from the project itself. > > > >In the case of a dependency-only plugin, we only need to do the second > >task > >(which currently doesn't get done). For a regular plugin which is > >installed > >in multiple platforms, this also fails, since removing the plugin for the > >first platform deletes the plugin source directory, and then removal for > >subsequent platforms fails with the error message "[Error: Plugin >id> not found. Already uninstalled?]" > > > >Can anyone explain the technical reasons behind this, or should I work on > >separating those functions? > > --001a11c2570e45cf8404e0bb3007--