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 3CAAB18DA8 for ; Tue, 2 Feb 2016 12:58:56 +0000 (UTC) Received: (qmail 150 invoked by uid 500); 2 Feb 2016 12:58:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 99993 invoked by uid 500); 2 Feb 2016 12:58:40 -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 99964 invoked by uid 99); 2 Feb 2016 12:58:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 12:58:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E65E52C14F7 for ; Tue, 2 Feb 2016 12:58:39 +0000 (UTC) Date: Tue, 2 Feb 2016 12:58:39 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10430) cordova-common events don't reach platform's code 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-10430?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D151282= 08#comment-15128208 ]=20 ASF GitHub Bot commented on CB-10430: ------------------------------------- Github user vladimir-kotikov commented on the pull request: https://github.com/apache/cordova-lib/pull/370#issuecomment-178561020 =20 Because we've been logging these events all the time before cordova re= factoring. Many of these events doesn't have much value though, and could b= e safely ignored, but, for example, the command and arguments, used by supe= rspawn are pretty important information IMO, and there should be a way to g= et it without using debugger > cordova-common events don't reach platform's code > ------------------------------------------------- > > Key: CB-10430 > URL: https://issues.apache.org/jira/browse/CB-10430 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaCommon > Affects Versions: 1.0.0 > Reporter: Vladimir Kotikov > Assignee: Vladimir Kotikov > Labels: common, logging, triaged > Fix For: 1.1.0 > > > I was looking to get verbose output of cordova-windows to see what extern= al commands it is running on my behalf. I was hoping the APIfication with u= se of superspawn will help here. However, that does not seem to be the case= =E2=80=93 even though the code seems to suggest that. > {code} > exports.spawn =3D function(cmd, args, opts) { > .. > events.emit(opts.printCommand ? 'log' : 'verbose', 'Running command: = ' + maybeQuote(cmd) + ' ' + args.map(maybeQuote).join(' ')); > .. > } > {code} > {noformat} > =CE=BB cordova build windows --verbose -- --appx=3Duap --verbose > Executing "before_build" hook for all plugins. > Executing "before_prepare" hook for all plugins. > Searching PlatformJson files for differences between project vs. platform= installed plugins > No differences found between project and windows platform. Continuing... > Generating config.xml from defaults for platform "windows" > Updated project successfully > Executing "after_prepare" hook for all plugins. > Executing "before_compile" hook for all plugins. > Searching for available MSBuild versions... > Found MSBuild v14.0 at C:\Program Files (x86)\MSBuild\14.0\bin > Found MSBuild v12.0 at C:\Program Files (x86)\MSBuild\12.0\bin\amd64\ > Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ > Building project: d:\apps\app\platforms\windows\CordovaApp.Windows10.jspr= oj > Configuration : debug > Platform : anycpu > C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets(18= 1,5): error : Couldn't find the required information in the lock file. Mak= e sure you have .NETCore,Version=3Dv5.0/win10-anycpu mentioned in your targ= ets. [ d:\apps\app\platforms\windows\CordovaApp.Windows10.jsproj] > ERROR building one of the platforms: Error: C:\Program Files (x86)\MSBuil= d\14.0\bin\msbuild.exe: Command failed with exit code 1 > You may not have the required environment or OS to build this project > Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command faile= d with exit code 1 > at ChildProcess.whenDone (d:\apps\app\platforms\windows\cordova\node_= modules\cordova-common\src\superspawn.js:139:23) > at emitTwo (events.js:87:13) > at ChildProcess.emit (events.js:172:7) > at maybeClose (internal/child_process.js:817:16) > at Process.ChildProcess._handle.onexit (internal/child_process.js:211= :5) > {noformat}=20 > As you can see there is no =E2=80=9CRunning command =E2=80=A6=E2=80=9D -- 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