GNU bug report logs - #68945
30.0.50; loaddefs-generate--parse-file: Wrong type argument: symbolp, 63

Previous Next

Package: emacs;

Reported by: Brent Westbrook <bwestbr2 <at> go.olemiss.edu>

Date: Tue, 6 Feb 2024 03:33:02 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#68945: closed (30.0.50; loaddefs-generate--parse-file: Wrong
 type argument: symbolp, 63)
Date: Tue, 06 Feb 2024 20:39:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 06 Feb 2024 15:38:18 -0500
with message-id <jwvsf25e3ec.fsf-monnier+emacs <at> gnu.org>
and subject line Re: master a2201a2034a: (loaddefs-generate--parse-file): Be a bit more defensive
has caused the debbugs.gnu.org bug report #68945,
regarding 30.0.50; loaddefs-generate--parse-file: Wrong type argument: symbolp, 63
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
68945: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68945
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Brent Westbrook <bwestbr2 <at> go.olemiss.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; loaddefs-generate--parse-file: Wrong type argument:
 symbolp, 63
Date: Mon, 05 Feb 2024 12:28:41 -0500
Attempting to install the projectile package from melpa leads to the
following (abbreviated) Backtrace:

Debugger entered--Lisp error: (wrong-type-argument symbolp 63)
  loaddefs-generate--compute-prefixes("projectile")
  loaddefs-generate--parse-file("/home/brent/.emacs.d/elpa/projectile-20240205.1021/projectile.el" "/home/brent/.emacs.d/elpa/projectile-20240205.1021/projectile-autoloads.el" nil)
  loaddefs-generate("/home/brent/.emacs.d/elpa/projectile-20240205.1021" "/home/brent/.emacs.d/elpa/projectile-20240205.1021/projectile-autoloads.el" nil "(add-to-list 'load-path (or (and load-file-name (directory-file-name (file-name-directory load-file-name))) (car load-path)))")
  package-generate-autoloads(projectile "/home/brent/.emacs.d/elpa/projectile-20240205.1021")
  package--make-autoloads-and-stuff(#s(package-desc :name projectile :version (20240205 1021) :summary "Manage and navigate projects in Emacs easily" :reqs ((emacs (25 1))) :kind tar :archive "melpa" :dir nil :extras ((:commit . "e45f0b0cc43fdc066e7971ff3ed3bf4c78015ed0") (:authors ("Bozhidar Batsov" . "bozhidar <at> batsov.dev")) (:maintainers ("Bozhidar Batsov" . "bozhidar <at> batsov.dev")) (:maintainer "Bozhidar Batsov" . "bozhidar <at> batsov.dev") (:keywords "project" "convenience") (:url . "https://github.com/bbatsov/projectile")) :signed nil) "/home/brent/.emacs.d/elpa/projectile-20240205.1021")

I can replicate this with emacs -Q:

(require 'package)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-install 'projectile)

However, I think the real issue is with loading the package, not the
installation. I originally hit this when trying to load the package with
use-package, but then hit this version when trying to uninstall and
reinstall. use-package reports this instead:

use-package-autoload-keymap: use-package: Cannot load package.el: projectile

when I try to switch projects with my projectile-command-map.

I noticed a couple of recent changes when grepping the git log for
loaddefs (Feb 3), so I'm going to try to revert to a version prior to
that to see if that helps.

Let me know if you need any more info,
Brent Westbrook

Build info:

In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, cairo version
 1.18.0) of 2024-02-05 built on keystone
Repository revision: 95c8bfb11ec82e67652e5903495c1fcb5c61ace2
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101011
System Description: Arch Linux

Configured using:
 'configure --with-native-compilation --with-json --with-x-toolkit=no
 --with-tree-sitter'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM ZLIB

Important settings:
  value of $LANG: C.UTF-8
  locale-coding-system: utf-8-unix


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Arash Esbati <arash <at> gnu.org>
Cc: Philip Kaludercic <philipk <at> posteo.net>, 68945-done <at> debbugs.gnu.org
Subject: Re: master a2201a2034a: (loaddefs-generate--parse-file): Be a bit
 more defensive
Date: Tue, 06 Feb 2024 15:38:18 -0500
> I have no clue about the code, but shouldn't this read:
>
> +          (when (symbolp name)
>                           ^^^^ -> probe
>
> ?

Indeed, thanks,

  I think this is also suggested by Philip K. in this message[1].
> [1]  https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-02/msg00249.html

Oh, indeed, there was a bug open for this one.  I think we can close it now.


        Stefan



This bug report was last modified 1 year and 99 days ago.

Previous Next


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