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/01 13:47:45 UTC
[jira] [Commented] (CB-9587) 'cordova run browser' without browser
platform added fails with weird error.
[ https://issues.apache.org/jira/browse/CB-9587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725260#comment-14725260 ]
ASF GitHub Bot commented on CB-9587:
------------------------------------
GitHub user vladimir-kotikov opened a pull request:
https://github.com/apache/cordova-lib/pull/293
CB-9587 Check if browser platform added properly before creating parser
This fixes weird error when trying to run app on browser platform but the platform isn't added to project. See [CB-9587](https://issues.apache.org/jira/browse/CB-9587) for details and repro steps.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/MSOpenTech/cordova-lib CB-9587
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-lib/pull/293.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 #293
----
commit 5473793a6730734dfb18b74a91f839e5a734a4a1
Author: Vladimir Kotikov <v-...@microsoft.com>
Date: 2015-09-01T11:45:17Z
CB-9587 Check if browser platform added properly before creating parser
----
> 'cordova run browser' without browser platform added fails with weird error.
> ----------------------------------------------------------------------------
>
> Key: CB-9587
> URL: https://issues.apache.org/jira/browse/CB-9587
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaLib
> Affects Versions: 5.3.2
> Reporter: Vladimir Kotikov
> Assignee: Vladimir Kotikov
> Priority: Minor
>
> *Repro steps:*
> cordova create test && cd test
> cordova platform add android
> cordova run browser
> *Expected:*
> Command fails, since browser platform isn't added, with some _meaningful message_.
> *Actual:*
> {noformat}
> cp: copyFileSync: could not write to dest file (code=ENOENT):c:\apps\test\platforms\browser\config.xml
> mkdir: no such file or directory: c:\apps\test\platforms\browser
> shell.js: internal error
> Error: ENOENT, no such file or directory 'c:\apps\test\platforms\browser\www\css'
> at Error (native)
> at Object.fs.mkdirSync (fs.js:747:18)
> at C:\Users\nikhilkh\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:174:14
> at Array.forEach (native)
> at Object._cp (C:\Users\nikhilkh\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\cp.js:157:11)
> at Object.cp (C:\Users\nikhilkh\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\common.js:186:23)
> at browser_parser.update_www (C:\Users\nikhilkh\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\metadata\browser_parser.js:71:11)
> at C:\Users\nikhilkh\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:100:20
> at Array.map (native)
> at C:\Users\nikhilkh\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:74:40
> {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