You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/09/03 02:28:51 UTC

[jira] [Comment Edited] (CB-7447) createmobilespec.js should have an option to use global plugins when testing a platforms/tools release

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

Shazron Abdullah edited comment on CB-7447 at 9/3/14 12:28 AM:
---------------------------------------------------------------

I'm getting an error:
{code}
Error: Unencoded <
Line: 105
Column: 2
Char: <
    at error (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:347:8)
    at strictFail (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:364:22)
    at Object.write (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:671:11)
    at XMLParser.feed (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/lib/parsers/sax.js:48:15)
    at ElementTree.parse (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/lib/elementtree.js:263:10)
    at Object.exports.XML (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/lib/elementtree.js:593:13)
    at Object.module.exports.parseElementtreeSync (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/src/util/xml-helpers.js:126:38)
    at new PluginInfo (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/src/PluginInfo.js:213:37)
    at /Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/src/PluginInfo.js:275:17
    at Array.forEach (native)
{code}

Basically it fails on this line: https://github.com/apache/cordova-mobile-spec/blob/5ca83f3f77e877e83389a38a21db8171f73122ea/createmobilespec/createmobilespec.js#L360
where top_dir is the parent folder where all my repos are kept and which contains the folder cordova-plugin-test-framework.

if --searchpath is the exact folder for the plugin, it works. Not if searchpath recurses through subfolders? if it does, it might be a searchpath bug, if not we just add the hardcoded path to this script.


was (Author: shazron):
I'm getting an error:
{code}
Error: Unencoded <
Line: 105
Column: 2
Char: <
    at error (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:347:8)
    at strictFail (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:364:22)
    at Object.write (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:671:11)
    at XMLParser.feed (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/lib/parsers/sax.js:48:15)
    at ElementTree.parse (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/lib/elementtree.js:263:10)
    at Object.exports.XML (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/node_modules/elementtree/lib/elementtree.js:593:13)
    at Object.module.exports.parseElementtreeSync (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/src/util/xml-helpers.js:126:38)
    at new PluginInfo (/Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/src/PluginInfo.js:213:37)
    at /Users/shaz/Documents/Git/Apache/cordova-cli/node_modules/cordova-lib/src/PluginInfo.js:275:17
    at Array.forEach (native)
{code}

Basically it fails on this line: https://github.com/apache/cordova-mobile-spec/blob/5ca83f3f77e877e83389a38a21db8171f73122ea/createmobilespec/createmobilespec.js#L360
where top_dir is the parent folder where all my repos are kept and which contains the folder cordova-plugin-test-framework.

if --searchpath is the exact folder for the plugin, it works. So this is probably a searchpath bug.

> createmobilespec.js should have an option to use global plugins when testing a platforms/tools release
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CB-7447
>                 URL: https://issues.apache.org/jira/browse/CB-7447
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: mobile-spec
>            Reporter: Marcel Kinard
>            Assignee: Marcel Kinard
>            Priority: Minor
>             Fix For: 3.7.0
>
>
> When doing tests for a platforms/tools release, since plugins aren't updated, the platforms/tools should be tested against the latest released plugins instead of the master branch of plugins. So the suggestion is to add a new option to createmobilespec.js to create a test project that uses the local git repo for platforms and tools, but downloads the plugins from the registry (latest).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)