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

qi commented on CB-4618:
------------------------

Hi Benn, still failed.

cordova library for "wp8" already exists. No need to download. Continuing.
Checking if platform "wp8" passes minimum requirements...
Checking wp8 requirements...
Running ""C:\Users\Qi\.cordova\lib\wp\cordova\3.0.0\wp8\bin\check_reqs"" (output
 to follow)

Running bin/create for platform "wp8" with command: ""C:\Users\Qi\.cordova\lib\w
p\cordova\3.0.0\wp8\bin\create"  "D:\Dev\cordova\project-template\platforms\wp8"
 "io.cordova.hellocordova" "HelloCordova"" (output to follow)
platformRoot = C:\Users\Qi\.cordova\lib\wp\cordova\3.0.0\wp8
repoRoot = C:\Users\Qi\.cordova\lib\wp\cordova\3.0.0
Creating Cordova-WP8 Project:
        App Name : HelloCordova
        Namespace : io.cordova.hellocordova
        Path : D:\Dev\cordova\project-template\platforms\wp8
CREATE SUCCESS : D:\Dev\cordova\project-template\platforms\wp8

cordova library for "wp8" already exists. No need to download. Continuing.
Calling plugman.prepare for platform "wp8"
Preparing wp8 project...
Processing configuration changes for plugins.
Error: Non-whitespace before first tag.
Line: 0
Column: 1
Char: 
    at error (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node_modules\
plugman\node_modules\elementtree\node_modules\sax\lib\sax.js:347:8)
    at strictFail (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node_mod
ules\plugman\node_modules\elementtree\node_modules\sax\lib\sax.js:364:22)
    at Object.write (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node_m
odules\plugman\node_modules\elementtree\node_modules\sax\lib\sax.js:603:11)
    at XMLParser.feed (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node
_modules\plugman\node_modules\elementtree\lib\parsers\sax.js:48:15)
    at ElementTree.parse (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\n
ode_modules\plugman\node_modules\elementtree\lib\elementtree.js:263:10)
    at Object.exports.XML (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\
node_modules\plugman\node_modules\elementtree\lib\elementtree.js:593:13)
    at Object.module.exports.parseElementtreeSync (C:\Users\Qi\AppData\Roaming\n
pm\node_modules\cordova\node_modules\plugman\src\util\xml-helpers.js:108:38)
    at Object.csproj (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node_
modules\plugman\src\util\csproj.js:7:28)
    at Object.module.exports.parseProjectFile (C:\Users\Qi\AppData\Roaming\npm\n
ode_modules\cordova\node_modules\plugman\src\platforms\wp8.js:40:16)
    at Object.handlePrepare [as prepare] (C:\Users\Qi\AppData\Roaming\npm\node_m
odules\cordova\node_modules\plugman\src\prepare.js:75:79)

I uploaded two files for reference, these were copied from generated project.
I have to 'chcp 65001' before any commands executed.
Thanks.
                
> Cordova CLI can't create wp8 project from template
> --------------------------------------------------
>
>                 Key: CB-4618
>                 URL: https://issues.apache.org/jira/browse/CB-4618
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.0.0
>         Environment: windows 8 simple Chinese edition, cordova 3.0.6
>            Reporter: qi
>            Assignee: Benn Mapes
>            Priority: Critical
>         Attachments: App.xaml.cs, HelloCordova.csproj
>
>
> 1. installed cordova cil on windows 8
> 2. cordova create xxx
> 3. cordova platform add wp8
> got
> D:\Dev\cordova\project-template>cordova -d platform add wp8
> cordova library for "wp8" already exists. No need to download. Continuing.
> Checking if platform "wp8" passes minimum requirements...
> Checking wp8 requirements...
> Running ""C:\Users\Qi\.cordova\lib\wp\cordova\3.0.0\wp8\bin\check_reqs"" 
> (output
>  to follow)
> C:\Users\Qi\.cordova\lib\wp\cordova\3.0.0\wp8\bin\check_reqs.js(46, 5) 
> WshShell.
> Exec: 
> Running bin/create for platform "wp8" with command: 
> ""C:\Users\Qi\.cordova\lib\w
> p\cordova\3.0.0\wp8\bin\create"  
> "D:\Dev\cordova\project-template\platforms\wp8"
>  "io.cordova.hellocordova" "HelloCordova"" (output to follow)
> platformRoot = C:\Users\Qi\.cordova\lib\wp\cordova\3.0.0\wp8
> repoRoot = C:\Users\Qi\.cordova\lib\wp\cordova\3.0.0
> Creating Cordova-WP8 Project:
>         App Name : HelloCordova
>         Namespace : io.cordova.hellocordova
>         Path : D:\Dev\cordova\project-template\platforms\wp8
> CREATE SUCCESS : D:\Dev\cordova\project-template\platforms\wp8
> Error: Non-whitespace before first tag.
> Line: 0
> Column: 1
> Char: 
>     at error 
> (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node_modules\
> elementtree\node_modules\sax\lib\sax.js:347:8)
>     at strictFail 
> (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node_mod
> ules\elementtree\node_modules\sax\lib\sax.js:364:22)
>     at Object.write 
> (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node_m
> odules\elementtree\node_modules\sax\lib\sax.js:603:11)
>     at XMLParser.feed 
> (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node
> _modules\elementtree\lib\parsers\sax.js:48:15)
>     at ElementTree.parse 
> (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\n
> ode_modules\elementtree\lib\elementtree.js:263:10)
>     at Object.exports.XML 
> (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\
> node_modules\elementtree\lib\elementtree.js:593:13)
>     at Object.config_parser 
> (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordov
> a\src\config_parser.js:24:38)
>     at Object.wp8_parser 
> (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\s
> rc\metadata\wp8_parser.js:42:19)
>     at 
> C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\src\prepare.js:56:23
>     at Array.map (native)
> Finally I found following files
> wmappmanifest.xml, HelloCordova.csproj, HelloCordova.sln, MainPage.xaml.cs, 
> etc
> were corrupt, the start characters of file content were sth like
> 锘?*
> the cli can't parse these files
> I doubt it's an encoding issue

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to