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 DD9EC104E1 for ; Mon, 3 Nov 2014 17:24:33 +0000 (UTC) Received: (qmail 27391 invoked by uid 500); 3 Nov 2014 17:24:33 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 27364 invoked by uid 500); 3 Nov 2014 17:24:33 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 27353 invoked by uid 99); 3 Nov 2014 17:24:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 17:24:33 +0000 Date: Mon, 3 Nov 2014 17:24:33 +0000 (UTC) From: "Craig Payne (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-7928) --copy-from fails with "SyntaxError: Unexpected token -" 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-7928?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel ] Craig Payne updated CB-7928: ---------------------------- Component/s: CLI Description:=20 $ cordova create name com.name.app NAME =E2=80=94-copy-from ~/Cordova/Cordo= va-4.0.0-Examples/Cordova-Examples/barcode/ SyntaxError: Unexpected token =E2=80=94 at Object.parse (native) at cli (/usr/local/lib/node_modules/cordova/src/cli.js:230:24) at Object. (/usr/local/lib/node_modules/cordova/bin/cordova:= 41:1) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3 $ cordova -v 4.0.0 I have a fresh copy of The Examples: $ git clone https://github.com/cfjedimaster/Cordova-Examples.git=20 Cloning into 'Cordova-Examples'... remote: Counting objects: 191, done. remote: Total 191 (delta 0), reused 0 (delta 0) Receiving objects: 100% (191/191), 1.19 MiB | 512.00 KiB/s, done. Resolving deltas: 100% (35/35), done. Checking connectivity... done. $ I had just updated (cleanly on the 3rd try) to Cordova 4.0.0. My copy of c= li.js has this at line 230: } else if (cmd =3D=3D 'create') { var cfg =3D {}; // If we got a fourth parameter, consider it to be JSON to init the= config. if ( undashed[4] ) { cfg =3D JSON.parse(undashed[4]); <--- line 230 } Priority: Minor (was: Major) Environment: MacOS 10.9.5 Affects Version/s: 4.0.0 Summary: --copy-from fails with "SyntaxError: Unexpected toke= n -" (was: --copy-from fails with "SyntaxError: Unexpected token =E2=80=94= ) > --copy-from fails with "SyntaxError: Unexpected token -" > -------------------------------------------------------- > > Key: CB-7928 > URL: https://issues.apache.org/jira/browse/CB-7928 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 4.0.0 > Environment: MacOS 10.9.5 > Reporter: Craig Payne > Priority: Minor > > $ cordova create name com.name.app NAME =E2=80=94-copy-from ~/Cordova/Cor= dova-4.0.0-Examples/Cordova-Examples/barcode/ > SyntaxError: Unexpected token =E2=80=94 > at Object.parse (native) > at cli (/usr/local/lib/node_modules/cordova/src/cli.js:230:24) > at Object. (/usr/local/lib/node_modules/cordova/bin/cordov= a:41:1) > at Module._compile (module.js:456:26) > at Object.Module._extensions..js (module.js:474:10) > at Module.load (module.js:356:32) > at Function.Module._load (module.js:312:12) > at Function.Module.runMain (module.js:497:10) > at startup (node.js:119:16) > at node.js:902:3 > $ cordova -v > 4.0.0 > I have a fresh copy of The Examples: > $ git clone https://github.com/cfjedimaster/Cordova-Examples.git=20 > Cloning into 'Cordova-Examples'... > remote: Counting objects: 191, done. > remote: Total 191 (delta 0), reused 0 (delta 0) > Receiving objects: 100% (191/191), 1.19 MiB | 512.00 KiB/s, done. > Resolving deltas: 100% (35/35), done. > Checking connectivity... done. > $ > I had just updated (cleanly on the 3rd try) to Cordova 4.0.0. My copy of= cli.js has this at line 230: > } else if (cmd =3D=3D 'create') { > var cfg =3D {}; > // If we got a fourth parameter, consider it to be JSON to init t= he config. > if ( undashed[4] ) { > cfg =3D JSON.parse(undashed[4]); <--- line 230 > } -- 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