From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#41000: 28.0.50; Package file(.el) is 0 bytes after downloading Date: Sun, 03 May 2020 22:15:13 +0200 Message-ID: <87mu6o22su.fsf@stefankangas.se> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="125887"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41000@debbugs.gnu.org To: comproprasad@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 03 22:16:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVL24-000Wdz-Pe for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 May 2020 22:16:12 +0200 Original-Received: from localhost ([::1]:54994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVL23-0006Gl-Mn for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 May 2020 16:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVL1v-0006GR-Sk for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 16:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVL1u-0007wR-Jg for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 16:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVL1u-0007n0-F2 for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 May 2020 20:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41000 X-GNU-PR-Package: emacs Original-Received: via spool by 41000-submit@debbugs.gnu.org id=B41000.158853692527901 (code B ref 41000); Sun, 03 May 2020 20:16:02 +0000 Original-Received: (at 41000) by debbugs.gnu.org; 3 May 2020 20:15:25 +0000 Original-Received: from localhost ([127.0.0.1]:58098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVL1J-0007Fi-2y for submit@debbugs.gnu.org; Sun, 03 May 2020 16:15:25 -0400 Original-Received: from ted.gofardesign.uk ([67.225.143.91]:39394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVL1H-00076v-LJ for 41000@debbugs.gnu.org; Sun, 03 May 2020 16:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=co4de6yLX0XTpj7rPhEKjkC4KdwmvNNaNBWq9k4V1k0=; b=bKW0FVlj+CeraM5wvdFUYJa8mE dHJAaZnEpatxR7Q5TNfkpgCkpMBD4arMJ5TZbFDdv3eMiCJVldxEr9jnG5COBOOXPusOzbsxgEgKY 53wJFqu4//o7A+Uc9hIUuHgXkE1r3skvw/XfoA0oNyUThmSCwR9r3XtxjNvB2472ROM2LVluldOhE NvrUGad6flZ4zgRnz6NL/LLiONWwGRK9tV0OZh0Ye6KT5tQUbLSCeiTd7jZ8fXtXsEs7uHmF0HeQ4 VPI4Gc++ADms4DlAGyCIWig2oCdfim3Rzwa2/kStwjDJgiNtj3VvS4F+lgY9YtEjrEBMonPO6mOkc 0Zpz0HsA==; Original-Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:33160 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jVL19-000jww-VH; Sun, 03 May 2020 16:15:16 -0400 In-Reply-To: (comproprasad@gmail.com's message of "Fri, 01 May 2020 20:09:44 +0530") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179615 Archived-At: Hi, comproprasad@gmail.com writes: > After downloading a package using `package-install` or automatically at > startup through `leaf` or `use-package`, I sometimes get an Emacs Lisp > file of size 0 bytes only. When I try to use `M-x load-library > zero-bytes-package` it loads fine but the related definitions(variables > and functions) are not loaded into the interpreter i.e. `M-x` or `C-h > v` > or `C-h f`. The package manager is very dumb and only reports a void > definition error when a related configuration is loaded at startup. Thanks for the bug report. Do you have a recipe for reproducing this issue? Or does it happen only sporadically? Can you reproduce it under "emacs -Q"? FWIW, I can't remember having seen anything like that myself. > Suggestions: > > 1. There should be hash checking mechanism after package download so > that a corrupted file can be detected earlier and can be > re-downloaded. Agreed, and for other reasons as well. See Bug#19565: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19565 I have a patch there which no one has commented on. As soon as its reviewed and any outstanding issues are addressed, it should only be a matter of writing the documentation before it could go in, I think. > 2. Another option would be to re-download a 0 bytes emacs lisp package. > The issue would be that a partially downloaded package might go > unnoticed which will be a rare case anyway. I haven't found such a > case personally. Yes, it would probably be a good idea to add a check for that. It should be easier to do than the above, in any case. Best regards, Stefan Kangas