You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/09/03 03:36:45 UTC

[jira] [Commented] (CB-9604) Error adding browser platform with new PlatformApi polyfill

    [ https://issues.apache.org/jira/browse/CB-9604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14728370#comment-14728370 ] 

ASF GitHub Bot commented on CB-9604:
------------------------------------

GitHub user TimBarham opened a pull request:

    https://github.com/apache/cordova-lib/pull/295

    CB-9604 Fix error adding browser platform with PlatformApi polyfill.

    Don't try to create `ConfigParser()` in `PlatformApiPoly` constructor, since we may not have copied the `config.xml` file into place yet. Instead, create it once we know we have the `config.xml` file.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-lib CB-9604

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-lib/pull/295.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #295
    
----
commit 3951a990c8aff149cb45b6fa6af6ace0400ab01c
Author: Tim Barham <ti...@microsoft.com>
Date:   2015-09-03T01:34:19Z

    CB-9604 Fix error adding browser platform with PlatformApi polyfill.
    
    Don't try to create ConfigParser() in PlatformApiPoly constructor, since we may not have copied the config.xml file into place yet. Instead, create it once we know we have the config.xml file.

----


> Error adding browser platform with new PlatformApi polyfill
> -----------------------------------------------------------
>
>                 Key: CB-9604
>                 URL: https://issues.apache.org/jira/browse/CB-9604
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: Master
>            Reporter: Tim Barham
>            Assignee: Tim Barham
>            Priority: Blocker
>
> With the new PlatformApi polyfill in place, I'm seeing the following error when adding the browser platform:
> {noformat}
> $ cordova platform add browser
> Adding browser project...
> Running command: cmd "/s /c "C:\Users\timba\.cordova\lib\npm_cache\cordova-browser\4.0.0\package\bin\create.bat D:\CordovaApps\blank\platforms\browser io.cordova.hellocordova HelloCordova""
> Creating Browser project. Path: platforms\browser
> Parsing D:\CordovaApps\blank\platforms\browser\config.xml failed
> Error: ENOENT, no such file or directory 'D:\CordovaApps\blank\platforms\browser\config.xml'
>     at Error (native)
>     at Object.fs.openSync (fs.js:500:18)
>     at Object.fs.readFileSync (fs.js:352:15)
>     at Object.module.exports.parseElementtreeSync (D:\git\cordova-lib\cordova-lib\src\util\xml-helpers.js:118:27)
>     at Object.ConfigParser (D:\git\cordova-lib\cordova-lib\src\configparser\ConfigParser.js:33:24)
>     at new PlatformApiPoly (D:\git\cordova-lib\cordova-lib\src\platforms\PlatformApiPoly.js:68:20)
>     at Object.getPlatformApi (D:\git\cordova-lib\cordova-lib\src\platforms\platforms.js:58:23)
>     at D:\git\cordova-lib\cordova-lib\src\platforms\PlatformApiPoly.js:102:14
>     at _fulfilled (D:\git\cordova-lib\cordova-lib\node_modules\q\q.js:787:54)
>     at self.promiseDispatch.done (D:\git\cordova-lib\cordova-lib\node_modules\q\q.js:816:30)
> {noformat}



--
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