From issues-return-94898-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Tue Jun 5 13:32:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 83BA9180625 for ; Tue, 5 Jun 2018 13:32:04 +0200 (CEST) Received: (qmail 45402 invoked by uid 500); 5 Jun 2018 11:32:03 -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 45390 invoked by uid 99); 5 Jun 2018 11:32:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2018 11:32:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1AEF0C8B0D for ; Tue, 5 Jun 2018 11:32:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Z1bojzDkPMuc for ; Tue, 5 Jun 2018 11:32:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id BDD215F51F for ; Tue, 5 Jun 2018 11:32:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BD975E08C7 for ; Tue, 5 Jun 2018 11:32:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 38BC821098 for ; Tue, 5 Jun 2018 11:32:00 +0000 (UTC) Date: Tue, 5 Jun 2018 11:32:00 +0000 (UTC) From: "jimi adrian (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (CB-13694) UnhandledPromiseRejectionWarning when throwing errors 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-13694?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] jimi adrian updated CB-13694: ----------------------------- Comment: was deleted (was: npm i -g cordova cordova create my-project cordova platform add android cordova run android =C2=A0 ChildProcess.whenDone (/my-project/platforms/android/cordova/node_modules/c= ordova-common/src/superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:14089) UnhandledPromiseRejectionWarning: Unhandled promise rejection= . This error originated either by throwing inside of an async function with= out a catch block, or by rejecting a promise which was not handled with .ca= tch(). (rejection id: 1) (node:14089) [DEP0018] DeprecationWarning: Unhandled promise rejections ar= e deprecated. In the future, promise rejections that are not handled will t= erminate the Node.js process with a non-zero exit code =C2=A0 OS: Ubuntu 16.04 node:=C2=A0v8.11.1 npm: 6.1.0 cordova: 8.0.0 =C2=A0) > UnhandledPromiseRejectionWarning when throwing errors > ----------------------------------------------------- > > Key: CB-13694 > URL: https://issues.apache.org/jira/browse/CB-13694 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli > Affects Versions: cordova@8.0.0 > Environment: Mac OS High Sierra, Node v8.9.1 > Reporter: Vito Macchia > Priority: Major > > Since updating to cordova-cli 8.0.0 (yesterday) I get UnhandledPromiseRej= ectionWarnings instead or error prompts with error stacks, which also make = difficult to identify bugs/broken deps/missconfigurations. > Example > With cordova@7.1.0 > {code} > cordova prepare > Error: doc.find is not a function > {code} > With cordova@8.0.0 > {code} > cordova prepare > (node:2519) UnhandledPromiseRejectionWarning: Unhandled promise rejection= (rejection id: 1): TypeError: doc.find is not a function > (node:2519) [DEP0018] DeprecationWarning: Unhandled promise rejections ar= e deprecated. In the future, promise rejections that are not handled will t= erminate the Node.js process with a non-zero exit code. > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org