GNU bug report logs - #34147
27.0.50; M-x describe-package groovy-mode breaks

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Xu Chunyang <mail@HIDDEN>; dated Sun, 20 Jan 2019 15:19:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 34147 <at> debbugs.gnu.org:


Received: (at 34147) by debbugs.gnu.org; 5 Feb 2019 23:08:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 05 18:08:22 2019
Received: from localhost ([127.0.0.1]:33862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gr9pF-0007EZ-MI
	for submit <at> debbugs.gnu.org; Tue, 05 Feb 2019 18:08:21 -0500
Received: from mail-qt1-f179.google.com ([209.85.160.179]:44633)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <federicotedin@HIDDEN>) id 1gr9pE-0007EK-VS
 for 34147 <at> debbugs.gnu.org; Tue, 05 Feb 2019 18:08:21 -0500
Received: by mail-qt1-f179.google.com with SMTP id n32so5889157qte.11
 for <34147 <at> debbugs.gnu.org>; Tue, 05 Feb 2019 15:08:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version;
 bh=tN10o0IqhdlJ0wmSEPddXU9LSlO13yh06Mu7vFkvvfI=;
 b=gLId3KijuT6DN8IIF/fno5QoFfHe2b19rbbjwZ+hBFmqabWgqvO9n1oeqSJDE9U7yH
 6Q8u6DD1MKEGBqX5ndlegPFsYNGyokTj/178N0j4PPQqStKRkbbiqco8h/tFCogY8VQq
 bpvYdQPS+bei8DQqX1OkFHK956PWnl59mxtNMMPaqmotwcACOM22vkwDkhfiYxanywxu
 taVnZIq+i7Moih7L2dCngzSdC/WmnzVf4BbQKDwebP9hiEpjOWt84103bjW7iC9JJjjp
 +ifE06punz4C2ig7Xc+7cBoHgTysmEp/rlPBfDtEYIyP/seRDySaJSwROpsuX0TOAOBD
 EF2Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version;
 bh=tN10o0IqhdlJ0wmSEPddXU9LSlO13yh06Mu7vFkvvfI=;
 b=N32RlTLjjmJ9Pl08Aq5TyP49lX+tRSe88x9wM3LtJlJ90ur6UqWrIs3rAFbWUEFeHM
 9vcuRNSxJkUry0yzk2vbf5ZQw3nmXykmSNEubtoZNsGV/FuLgtAOlaksNeDRBpQWbkmP
 AD4dn65M1tuC52thA+Z5Nj4GO93mjIqRgqEM7F4GvOeWZZtALlqwTKU2v8WcUr1jxReQ
 0FHlIhmiRaEGOQDRVThl9AyK6Z0tnaGrUA9GgsSXpd+XSLmDcOzzq34r5aq3C1xHLc9A
 zBUyDutdJg0QGIyqnPgbMfNrszBaq+DQfL55FsVKsOw94u8MUkBlG1JMRYzzkCazDvUV
 2Q4w==
X-Gm-Message-State: AHQUAubeEy8cBddAyp1QmpXc74SthDU/JXsCuTwMdu7CxL6eUdGbaZ+i
 VHxNtB4DfNj+rVIsqpKNHTRTyd+Q
X-Google-Smtp-Source: AHgI3IadMnITf/jiDrm4dBXalAQKGi6unaBoVvUScwYyVw5l0JDKyyQlU6QyEvLf6DwVpiuto+gWGA==
X-Received: by 2002:a0c:b8a9:: with SMTP id y41mr4613332qvf.216.1549408095250; 
 Tue, 05 Feb 2019 15:08:15 -0800 (PST)
Received: from hideo ([181.170.211.157])
 by smtp.gmail.com with ESMTPSA id 32sm19249286qto.55.2019.02.05.15.08.13
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 05 Feb 2019 15:08:14 -0800 (PST)
From: Federico Tedin <federicotedin@HIDDEN>
To: Xu Chunyang <mail@HIDDEN>
Subject: Re: bug#34147: 27.0.50; M-x describe-package groovy-mode breaks
Date: Tue, 05 Feb 2019 20:08:11 -0300
Message-ID: <878syt96lg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34147
Cc: 34147 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> By evaluating describe-package-1 to get detailed Backtrace (I didn't
> paste it since it is very long), it seems the error is caused by the
> "last" expression of describe-package-1:
>
> (insert readme-string)
>
> when readme-string is nil.
>
> I notice Melpa fails to provide the readme file, this URL is 404
>
> https://melpa.org/packages/groovy-mode-readme.txt

It looks like when a package doesn't provide a 'Commentary' field, the
xyz-readme.txt file isn't generated by MELPA (see
https://github.com/melpa/package-build/blob/master/package-build.el#L382).

Other packages without 'Commentary' (in no particular order):
- instapaper
- javap-mode
- tdd-status-mode-line
- jknav
- runtests

Using C-h P on these packages will trigger the same error. I guess we
could replace:

(insert readme-string)

with:

(when readme-string
  (insert readme-string))

or:

(if readme-string
    (insert readme-string)
  (insert "This package does not provide a description."))

to cover cases where the xyz-readme.txt file for the package doesn't
exist.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34147; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Jan 2019 15:18:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 20 10:18:12 2019
Received: from localhost ([127.0.0.1]:39094 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1glErU-0003zB-F2
	for submit <at> debbugs.gnu.org; Sun, 20 Jan 2019 10:18:12 -0500
Received: from eggs.gnu.org ([209.51.188.92]:55390)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1glErR-0003yt-C2
 for submit <at> debbugs.gnu.org; Sun, 20 Jan 2019 10:18:10 -0500
Received: from lists.gnu.org ([209.51.188.17]:46660)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1glErM-00036r-6B
 for submit <at> debbugs.gnu.org; Sun, 20 Jan 2019 10:18:04 -0500
Received: from eggs.gnu.org ([209.51.188.92]:37349)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mail@HIDDEN>) id 1glErL-00067C-5U
 for bug-gnu-emacs@HIDDEN; Sun, 20 Jan 2019 10:18:03 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_LOW
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mail@HIDDEN>) id 1glErK-00034w-Eh
 for bug-gnu-emacs@HIDDEN; Sun, 20 Jan 2019 10:18:03 -0500
Received: from forward100o.mail.yandex.net ([37.140.190.180]:55644)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1glErK-00031Q-50
 for bug-gnu-emacs@HIDDEN; Sun, 20 Jan 2019 10:18:02 -0500
Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net
 [IPv6:2a02:6b8:0:1472:2741:0:8b7:94])
 by forward100o.mail.yandex.net (Yandex) with ESMTP id 69EC14AC0D63
 for <bug-gnu-emacs@HIDDEN>; Sun, 20 Jan 2019 18:17:58 +0300 (MSK)
Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net
 [2a02:6b8:0:1a2d::28])
 by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id bw1rHdpQsX-HwQqCMMZ;
 Sun, 20 Jan 2019 18:17:58 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xuchunyang.me; s=mail;
 t=1547997478; bh=jqekd3ZDsM/Ie/bx5wrmLh9avocdojNyeDCnqmbOzZ8=;
 h=From:To:Subject:Date:Message-ID;
 b=226BLpc6g7s4SD2hy+9uBNepesUnv9jizznoi5ClsJ6dvOJSXPT704vbfEQ4UupZE
 a16DgmZrAEyXEtxyw0/qc8UowKrF4IVZrrwPKSAtcc3cNKP4yQml0P4MpfJxd11tEi
 5hnOlHpaqpile7qmTNxnb5Z1707hY+sUKzc7YCMU=
Authentication-Results: mxback15g.mail.yandex.net;
 dkim=pass header.i=@xuchunyang.me
Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id
 bmnFxCz0wZ-Hso8RSxZ; Sun, 20 Jan 2019 18:17:56 +0300
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client certificate not present)
From: Xu Chunyang <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; M-x describe-package groovy-mode breaks
Date: Sun, 20 Jan 2019 23:17:38 +0800
Message-ID: <m2munvtl2l.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 37.140.190.180
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

I've setup Melpa, C-h P groovy-mode breaks, here is the backtrace

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  #f(compiled-function (pkg) #<bytecode 0x45e6b941>)(groovy-mode)
  apply(#f(compiled-function (pkg) #<bytecode 0x45e6b941>) groovy-mode)
  describe-package-1(groovy-mode)
  describe-package(groovy-mode)
  funcall-interactively(describe-package groovy-mode)
  call-interactively(describe-package nil nil)
  command-execute(describe-package)

By evaluating describe-package-1 to get detailed Backtrace (I didn't
paste it since it is very long), it seems the error is caused by the
"last" expression of describe-package-1:

(insert readme-string)

when readme-string is nil.

I notice Melpa fails to provide the readme file, this URL is 404

https://melpa.org/packages/groovy-mode-readme.txt

--
In GNU Emacs 27.0.50
Repository revision: 436c225f1b8ca48fa7c7e769fe6b7055f37af95d
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1671
System Description:  Mac OS X 10.14.2




Acknowledgement sent to Xu Chunyang <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#34147; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 5 Feb 2019 23:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.