Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F86C18B23 for ; Fri, 28 Aug 2015 20:43:46 +0000 (UTC) Received: (qmail 15128 invoked by uid 500); 28 Aug 2015 20:43:46 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 15105 invoked by uid 500); 28 Aug 2015 20:43:46 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 15085 invoked by uid 99); 28 Aug 2015 20:43:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2015 20:43:45 +0000 Date: Fri, 28 Aug 2015 20:43:45 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9560) Issue using plugin restore for plugins with common dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9560?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1472052= 8#comment-14720528 ]=20 ASF GitHub Bot commented on CB-9560: ------------------------------------ Github user omefire commented on the pull request: https://github.com/apache/cordova-lib/pull/288#issuecomment-135883534 =20 This issue arises because [common.copyFileNew] (https://github.com/apac= he/cordova-lib/blob/dff78b0779444d06e259140694e07d5e8c5f5308/cordova-lib/sr= c/plugman/platforms/common.js#L64) throws an exception when it tries to cop= y a file that already exists, having been placed there by a previously inst= alled plugin. So, I'm curious why does this not show up when we do the copy in serial= , but shows up when we do it in parallel ? Seems fishy to me. > Issue using plugin restore for plugins with common dependencies > --------------------------------------------------------------- > > Key: CB-9560 > URL: https://issues.apache.org/jira/browse/CB-9560 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Reporter: Marcus Pridham > > Running into an annoying kind of race condition similar to CB-9278 but fo= r plugins. The issue comes up when you have multiple plugins being restore= d that have common dependencies. =20 > The way restore currently works it is adding all the plugins in config.xm= l at once. It does NOT wait for the first plugin and its dependencies to be= installed before adding the next plugin in the config.xml. This can cause= a plugin to be installed multiple times. You will get a message like the = following in the console: > Failed to install =E2=80=98cordova-plugin-inappbrowser':Error: Uh oh! > "/Users/i827005/dev/source/odata-demo/platforms/ios/ODataDemo/Plugins/cor= dova-plugin-inappbrowser/CDVInAppBrowser.m" already exists! -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org