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 DDC7910A7D for ; Wed, 21 Aug 2013 01:13:53 +0000 (UTC) Received: (qmail 98230 invoked by uid 500); 21 Aug 2013 01:13:52 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 98208 invoked by uid 500); 21 Aug 2013 01:13:52 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 98162 invoked by uid 99); 21 Aug 2013 01:13:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 01:13:52 +0000 Date: Wed, 21 Aug 2013 01:13:52 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4618) Cordova CLI can't create wp8 project from template 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-4618?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1374568= 5#comment-13745685 ]=20 ASF subversion and git services commented on CB-4618: ----------------------------------------------------- Commit 0f56fbcdaacc7c851ee4fd26ca63bea15b10daea in branch refs/heads/master= from [~bennmapes] [ https://git-wip-us.apache.org/repos/asf?p=3Dcordova-cli.git;h=3D0f56fbc ] [CB-4618] fix for xml parsing on windows, use xml-helpers from now on to pa= rse xml =20 > 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: Filip Maj > Priority: Critical > > 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) Ws= hShell. > Exec:=20 > Running bin/create for platform "wp8" with command: ""C:\Users\Qi\.cordov= a\lib\w > p\cordova\3.0.0\wp8\bin\create" "D:\Dev\cordova\project-template\platfor= ms\wp8" > "io.cordova.hellocordova" "HelloCordova"" (output to follow) > platformRoot =3D C:\Users\Qi\.cordova\lib\wp\cordova\3.0.0\wp8 > repoRoot =3D 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: =EF=BB=BF > at error (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\node_m= odules\ > elementtree\node_modules\sax\lib\sax.js:347:8) > at strictFail (C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\n= ode_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\cordo= va\node > _modules\elementtree\lib\parsers\sax.js:48:15) > at ElementTree.parse (C:\Users\Qi\AppData\Roaming\npm\node_modules\co= rdova\n > ode_modules\elementtree\lib\elementtree.js:263:10) > at Object.exports.XML (C:\Users\Qi\AppData\Roaming\npm\node_modules\c= ordova\ > 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\co= rdova\s > rc\metadata\wp8_parser.js:42:19) > at C:\Users\Qi\AppData\Roaming\npm\node_modules\cordova\src\prepare.j= s:56:23 > at Array.map (native) > Finally I found following files > wmappmanifest.xml, HelloCordova.csproj, HelloCordova.sln, MainPage.xaml.c= s, etc > were corrupt, the start characters of file content were sth like > =E9=94=98?* > 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 administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira