From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.bugs Subject: bug#44804: 28.0.50; loading EBDB using use-package is throwing error Date: Mon, 23 Nov 2020 11:17:41 +0530 Organization: Code Is Great Foundation Message-ID: References: <87blfpkxk2.fsf@ericabrahamsen.net> <87im9wd81z.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23177"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 44804@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 23 06:48:11 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 1kh4hu-0005tI-Bc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 06:48:10 +0100 Original-Received: from localhost ([::1]:43680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kh4ht-0007Oj-0B for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 00:48:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kh4hm-0007Oc-KH for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 00:48:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37238) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kh4hm-00070B-Cu for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 00:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kh4hm-0007cC-8g for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 00:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Nov 2020 05:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44804 X-GNU-PR-Package: emacs Original-Received: via spool by 44804-submit@debbugs.gnu.org id=B44804.160611047429258 (code B ref 44804); Mon, 23 Nov 2020 05:48:02 +0000 Original-Received: (at 44804) by debbugs.gnu.org; 23 Nov 2020 05:47:54 +0000 Original-Received: from localhost ([127.0.0.1]:48784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kh4he-0007bp-6X for submit@debbugs.gnu.org; Mon, 23 Nov 2020 00:47:54 -0500 Original-Received: from mail-pf1-f177.google.com ([209.85.210.177]:33788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kh4hb-0007bb-CX for 44804@debbugs.gnu.org; Mon, 23 Nov 2020 00:47:52 -0500 Original-Received: by mail-pf1-f177.google.com with SMTP id q10so13887194pfn.0 for <44804@debbugs.gnu.org>; Sun, 22 Nov 2020 21:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=KD3zJGhQpD4Vn///xWpoM8UYo3iMTYoOrw+jE3yyj+Q=; b=vkh7X8RDE7xJRNzHNSvA5pGv8yPKSHXA8RAcHbf2D74g8jMveF2ouEBto4r+Taoyp1 enHJBoHzRFM0yI6fZHF7iJ3saOJfXbrzlPpl5nSKLh6MenuS4HWou75cdlwurGCFhFaF 2lY9otDlerxFzdVg8ErumHvjFKAeMDSLzRZ8QViK5CXKyvnM2jyl0J4z2V3bLbwP1WQe nhZTPMX6MlTStpj/xRDSEmHKYe5gWy2hHBus/+vQJkOcvYyYl6sBKfIcyjYxuhT+AyNn 0OqPKql+kD2sm+x1SL/aZmx2Ydx6vCVh3RNo+lRufUG6woNePfUoPolD6tIGPvhrobvq Ag3g== 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:organization:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=KD3zJGhQpD4Vn///xWpoM8UYo3iMTYoOrw+jE3yyj+Q=; b=oBQ5v8p1jhRn4FzsgGXiX65y3V8jjvE3WtAXJEdLjUacn54mjK5WjLOsXtfFhadwPo DIWMD/ns/MTd2vTDvKvTyTS33STAfWLxtZZZcJsjOdS5JdKcpc/gPX6Qwoo7WoSsHNQt dV4PzeLRQvV23GKcp0TlDjcSUhSlkPoUSv3oxccyXSYH6duhqFBipJK81YTpjBm35Hw5 SYORM1zh1rnPvoKN7DlARgxIc+dxL5XTRh0J0SjmrUR1mmjxnvopJvvVFibetf9xZNEG 6eV8RVjOHxQQY+67JKXdiiOps+5sw28na9kKVQ+IWh8iRgPMd/RXsDygfxJQLyJh/4Og SFGg== X-Gm-Message-State: AOAM532r/6j6QCrFVV+F1y7nwVEVK+WUsfx+Orx0S0Ne/7ihIsWwy6Hw 0ENjPubNUa5XS0SvJq/UuELnrG+PqcxP4w== X-Google-Smtp-Source: ABdhPJzfLUNGbKUWeevE53Fitvxy4wowYwnTRXnT6b0yfW1a/ZaStCrKS2zVFQeIeBYWPUd6HU8Vtw== X-Received: by 2002:a63:1901:: with SMTP id z1mr24811707pgl.87.1606110465164; Sun, 22 Nov 2020 21:47:45 -0800 (PST) Original-Received: from mb2.local ([2405:201:5c06:7812:2405:864a:a72b:6313]) by smtp.gmail.com with ESMTPSA id s6sm10978941pfh.9.2020.11.22.21.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 21:47:44 -0800 (PST) In-Reply-To: <87im9wd81z.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sun, 22 Nov 2020 20:13:44 -0800") 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:193894 Archived-At: Eric Abrahamsen writes: >> use this when `use-package' will be part of core emacs: >> >> (use-package ebdb >> :ensure t >> :config >> (use-package 'ebdb-gnus ; no `:ensure t' here, installed with ebdb >> :hook emacs-startup) >> (use-package 'ebdb-message >> :hook emacs-startup)) > > So this is causing the same error? Yes. This produces same error and two more for `edbd-gnus' and `edbd-message'. >> ;; Error (use-package): Failed to parse package 'ebdb-gnus: Wrong type >> argument: symbolp, 'ebdb-gnus Disable showing Disable logging >> ;; Error (use-package): Failed to parse package 'ebdb-message: Wrong type >> argument: symbolp, 'ebdb-message Disable showing Disable logging > > Can you turn on debug-on-error (or start with --debug-init if it's > blowing up at startup) and see what the actual backtrace is? Your > original error was "Wrong type argument: listp, require", which doesn't > mean very much to me. The above configuration with debug-on-error produces this long output: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument symbolp 'ebdb-gnus) symbol-name('ebdb-gnus) use-package-normalize-keywords('ebdb-gnus (:hook emacs-startup)) #f(compiled-function (name &rest args) "Declare an Emacs package by speci= fying a group of configuration options.\n\nFor full documentation, please s= ee the README file that came with\nthis file. Usage:\n\n (use-package pac= kage-name\n [:keyword [option]]...)\n\n:init Code to run bef= ore PACKAGE-NAME has been loaded.\n:config Code to run after PACKA= GE-NAME has been loaded. Note that\n if loading is deferre= d for any reason, this code does not\n execute until the la= zy load has occurred.\n:preface Code to be run before everything ex= cept `:disabled'; this\n can be used to define functions fo= r use in `:if', or that\n should be seen by the byte-compil= er.\n\n:mode Form to be added to `auto-mode-alist'.\n:magic = Form to be added to `magic-mode-alist'.\n:magic-fallback Form to be = added to `magic-fallback-mode-alist'.\n:interpreter Form to be added to= `interpreter-mode-alist'.\n\n:commands Define autoloads for command= s that will be defined by the\n package. This is useful if= the package is being lazily\n loaded, and you wish to cond= itionally call functions in your\n `:init' block that are d= efined in the package.\n:hook Specify hook(s) to attach this pac= kage to.\n\n:bind Bind keys, and define autoloads for the bound = commands.\n:bind* Bind keys, and define autoloads for the bound c= ommands,\n *overriding all minor mode bindings*.\n:bind-key= map Bind a key prefix to an auto-loaded keymap defined in the\n = package. This is like `:bind', but for keymaps.\n:bind-keymap* = Like `:bind-keymap', but overrides all minor mode bindings\n\n:defer = Defer loading of a package -- this is implied when using\n = `:commands', `:bind', `:bind*', `:mode', `:magic', `:hook',\n = `:magic-fallback', or `:interpreter'. This can be an integer,\n = to force loading after N seconds of idle time, if the package= \n has not already been loaded.\n:after Delay the= use-package declaration until after the named modules\n ha= ve loaded. Once load, it will be as though the use-package\n = declaration (without `:after') had been seen at that moment.\n:demand = Prevent the automatic deferred loading introduced by constructs\n = such as `:bind' (see `:defer' for the complete list).\n\n:if E= XPR Initialize and load only if EXPR evaluates to a non-nil value.\= n:disabled The package is ignored completely if this keyword is pres= ent.\n:defines Declare certain variables to silence the byte-compil= er.\n:functions Declare certain functions to silence the byte-compile= r.\n:load-path Add to the `load-path' before attempting to load the p= ackage.\n:diminish Support for diminish.el (if installed).\n:delight= Support for delight.el (if installed).\n:custom Call `cus= tom-set' or `set-default' with each variable\n definition w= ithout modifying the Emacs `custom-file'.\n (compare with `= custom-set-variables').\n:custom-face Call `customize-set-faces' with e= ach face definition.\n:ensure Loads the package using package.el i= f necessary.\n:pin Pin the package to an archive." #)('ebdb-gnus :hook emacs-startup) macroexpand((use-package 'ebdb-gnus :hook emacs-startup)) #f(compiled-function (form) #)((use-package= 'ebdb-gnus :hook emacs-startup)) mapcar(#f(compiled-function (form) #) ((use= -package 'ebdb-gnus :hook emacs-startup) (use-package 'ebdb-message :hook e= macs-startup))) use-package-normalize-form(":config" ((use-package 'ebdb-gnus :hook emacs= -startup) (use-package 'ebdb-message :hook emacs-startup))) use-package-normalize/:config(ebdb :config ((use-package 'ebdb-gnus :hook= emacs-startup) (use-package 'ebdb-message :hook emacs-startup))) use-package-normalize-plist(ebdb (:config (use-package 'ebdb-gnus :hook e= macs-startup) (use-package 'ebdb-message :hook emacs-startup)) nil use-pack= age-merge-keys) use-package-normalize-plist(ebdb (:ensure t :config (use-package 'ebdb-gn= us :hook emacs-startup) (use-package 'ebdb-message :hook emacs-startup)) ni= l use-package-merge-keys) use-package-normalize-keywords(ebdb (:ensure t :config (use-package 'ebdb= -gnus :hook emacs-startup) (use-package 'ebdb-message :hook emacs-startup))) #f(compiled-function (name &rest args) "Declare an Emacs package by speci= fying a group of configuration options.\n\nFor full documentation, please s= ee the README file that came with\nthis file. Usage:\n\n (use-package pac= kage-name\n [:keyword [option]]...)\n\n:init Code to run bef= ore PACKAGE-NAME has been loaded.\n:config Code to run after PACKA= GE-NAME has been loaded. Note that\n if loading is deferre= d for any reason, this code does not\n execute until the la= zy load has occurred.\n:preface Code to be run before everything ex= cept `:disabled'; this\n can be used to define functions fo= r use in `:if', or that\n should be seen by the byte-compil= er.\n\n:mode Form to be added to `auto-mode-alist'.\n:magic = Form to be added to `magic-mode-alist'.\n:magic-fallback Form to be = added to `magic-fallback-mode-alist'.\n:interpreter Form to be added to= `interpreter-mode-alist'.\n\n:commands Define autoloads for command= s that will be defined by the\n package. This is useful if= the package is being lazily\n loaded, and you wish to cond= itionally call functions in your\n `:init' block that are d= efined in the package.\n:hook Specify hook(s) to attach this pac= kage to.\n\n:bind Bind keys, and define autoloads for the bound = commands.\n:bind* Bind keys, and define autoloads for the bound c= ommands,\n *overriding all minor mode bindings*.\n:bind-key= map Bind a key prefix to an auto-loaded keymap defined in the\n = package. This is like `:bind', but for keymaps.\n:bind-keymap* = Like `:bind-keymap', but overrides all minor mode bindings\n\n:defer = Defer loading of a package -- this is implied when using\n = `:commands', `:bind', `:bind*', `:mode', `:magic', `:hook',\n = `:magic-fallback', or `:interpreter'. This can be an integer,\n = to force loading after N seconds of idle time, if the package= \n has not already been loaded.\n:after Delay the= use-package declaration until after the named modules\n ha= ve loaded. Once load, it will be as though the use-package\n = declaration (without `:after') had been seen at that moment.\n:demand = Prevent the automatic deferred loading introduced by constructs\n = such as `:bind' (see `:defer' for the complete list).\n\n:if E= XPR Initialize and load only if EXPR evaluates to a non-nil value.\= n:disabled The package is ignored completely if this keyword is pres= ent.\n:defines Declare certain variables to silence the byte-compil= er.\n:functions Declare certain functions to silence the byte-compile= r.\n:load-path Add to the `load-path' before attempting to load the p= ackage.\n:diminish Support for diminish.el (if installed).\n:delight= Support for delight.el (if installed).\n:custom Call `cus= tom-set' or `set-default' with each variable\n definition w= ithout modifying the Emacs `custom-file'.\n (compare with `= custom-set-variables').\n:custom-face Call `customize-set-faces' with e= ach face definition.\n:ensure Loads the package using package.el i= f necessary.\n:pin Pin the package to an archive." #)(ebdb :ensure t :config (use-package 'ebdb-gnus :hook e= macs-startup) (use-package 'ebdb-message :hook emacs-startup)) macroexpand((use-package ebdb :ensure t :config (use-package 'ebdb-gnus := hook emacs-startup) (use-package 'ebdb-message :hook emacs-startup))) internal-macroexpand-for-load((use-package ebdb :ensure t :config (use-pa= ckage 'ebdb-gnus :hook emacs-startup) (use-package 'ebdb-message :hook emac= s-startup)) nil) eval-buffer(# nil "/Users/pankaj/.config/emacs/lis= p/init-ebdb.el" nil t) ; Reading at buffer position 359 load-with-code-conversion("/Users/pankaj/.config/emacs/lisp/init-ebdb.el"= "/Users/pankaj/.config/emacs/lisp/init-ebdb.el" nil t) require(init-ebdb) eval-buffer(# nil "/Users/pankaj/.config/emacs/init.el" n= il t) ; Reading at buffer position 1876 load-with-code-conversion("/Users/pankaj/.config/emacs/init.el" "/Users/p= ankaj/.config/emacs/init.el" t t) load("/Users/pankaj/.config/emacs/init" noerror nomessage) startup--load-user-init-file(#f(compiled-function () #) #f(compiled-function () #) t) command-line() normal-top-level() --8<---------------cut here---------------end--------------->8---