From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.devel Subject: Re: Recent change in master breaks async package update using paradox Date: Fri, 07 Apr 2017 07:42:49 +0200 Organization: nocrew Message-ID: <86pogo4vty.fsf@molnjunk.nocrew.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491543800 12286 195.159.176.226 (7 Apr 2017 05:43:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 05:43:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 07 07:43:15 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwMft-00021R-UO for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 07:43:10 +0200 Original-Received: from localhost ([::1]:49013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwMfz-0001FC-QX for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 01:43:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwMfr-0001Df-8D for emacs-devel@gnu.org; Fri, 07 Apr 2017 01:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwMfo-000464-89 for emacs-devel@gnu.org; Fri, 07 Apr 2017 01:43:07 -0400 Original-Received: from [195.159.176.226] (port=52223 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwMfo-00045L-1a for emacs-devel@gnu.org; Fri, 07 Apr 2017 01:43:04 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cwMfa-0008Nj-Hf for emacs-devel@gnu.org; Fri, 07 Apr 2017 07:42:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:4CMue738/7byoazBtOs8JJUYMUU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213727 Archived-At: Kaushal Modi wrote: > A recent change in master (last 3-4 days) causes async package updates > using paradox.el to throw this error: > > Debugger entered--Lisp error: (wrong-type-argument sequencep #s > (package-desc swiper [...] Kaushal has now provided a code snippet that can reproduce this in a cleanly built emacs -Q with a separate .emacs.d. In this test case, the error shows up when installing the second or third package from the Package Menu. Curiously, the first installs without a hitch. It's a bit hard to debug, because the error happens in an async emacs subprocess. This code (in paradox-execute.el) is executed in the parent emacs: (eval `(async-start (lambda () (require 'package) ,(async-inject-variables "\\`package-") (setq package-menu-async nil) (dolist (elt package-alist) (package-activate (car elt) 'force)) (let ((alist ,(macroexpand `(paradox--perform-package-transaction ',install-list ',delete-list)))) (list package-alist (when (boundp 'package-selected-packages) package-selected-packages) package-archive-contents ;; This is the alist that will be passed to the hook. (cons '(noquery . ,noquery) (cons '(async . t) alist))))) (lambda () ... ))) The first lambda is executed in a subprocess emacs and throws the error (wrong-type-argument sequencep #s(package-desc swiper ... )) I'm going to study async.el documentation and code to see if there's a way to debug this. But if anyone has any hints, that would be appreciated.