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 23FE810EFD for ; Tue, 18 Mar 2014 07:51:51 +0000 (UTC) Received: (qmail 10215 invoked by uid 500); 18 Mar 2014 07:51:50 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 9917 invoked by uid 500); 18 Mar 2014 07:51:47 -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 9868 invoked by uid 99); 18 Mar 2014 07:51:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2014 07:51:44 +0000 Date: Tue, 18 Mar 2014 07:51:44 +0000 (UTC) From: "steelair (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-6301) Create Cordova platform wp8 or windows8 got error "Non-whitespace before first tag" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 steelair created CB-6301: ---------------------------- Summary: Create Cordova platform wp8 or windows8 got error "No= n-whitespace before first tag" Key: CB-6301 URL: https://issues.apache.org/jira/browse/CB-6301 Project: Apache Cordova Issue Type: Bug Components: CLI Affects Versions: 3.4.0 Environment: Windows 8.1 Pro(Chinese-Simplified) Visual Studio 2013 Ultimate with Update 1(Chinese-Simplified) Reporter: steelair Fix For: 3.4.0 When I use Command-Line to add platforms like this: cordova platform add wp8 cordova platform add windows8 The issue occurs like this: C:\testproject>cordova platform add windows8 Checking windows8 requirements... Creating windows8 project... Creating Cordova Windows 8 Project: App Name : testproject Namespace : testproject Path : C:\testproject\platforms\windows8 Project created [Error: Non-whitespace before first tag. Line: 0 Column: 1 Char: =EF=BF=BD] I got the same issue when I Add plugin like this: cordova plugin add org.apache.cordova.device The issue goes to: C:\testproject>cordova plugin add org.apache.cordova.device Fetching plugin "org.apache.cordova.device" via plugin registry Installing org.apache.cordova.device (windows8) Error: Non-whitespace before first tag. Line: 0 Column: 1 Char: =EF=BF=BD at error (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordova\no= de_mo dules\elementtree\node_modules\sax\lib\sax.js:347:8) at strictFail (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordo= va\no de_modules\elementtree\node_modules\sax\lib\sax.js:364:22) at Object.write (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cor= dova\ node_modules\elementtree\node_modules\sax\lib\sax.js:603:11) at XMLParser.feed (C:\Users\steelAir\AppData\Roaming\npm\node_modules\c= ordov a\node_modules\elementtree\lib\parsers\sax.js:48:15) at ElementTree.parse (C:\Users\steelAir\AppData\Roaming\npm\node_module= s\cor dova\node_modules\elementtree\lib\elementtree.js:263:10) at Object.exports.XML (C:\Users\steelAir\AppData\Roaming\npm\node_modul= es\co rdova\node_modules\elementtree\lib\elementtree.js:593:13) at Object.module.exports.parseElementtreeSync (C:\Users\steelAir\AppDat= a\Roa ming\npm\node_modules\cordova\node_modules\plugman\src\util\xml-helpers.js:= 120:3 8) at Object.module.exports.package_name (C:\Users\steelAir\AppData\Roamin= g\npm \node_modules\cordova\node_modules\plugman\src\platforms\windows8.js:35:36) at PlatformMunger.generate_plugin_config_munge (C:\Users\steelAir\AppDa= ta\Ro aming\npm\node_modules\cordova\node_modules\plugman\src\util\config-changes= .js:2 85:54) at PlatformMunger.add_plugin_changes (C:\Users\steelAir\AppData\Roaming= \npm\ node_modules\cordova\node_modules\plugman\src\util\config-changes.js:211:29= ) -- This message was sent by Atlassian JIRA (v6.2#6252)