What happened?
When trying to install doom-emacs on a virgin machine, the install fails due to missing autoload file. There are couple of issues open already, but no fix. On my machine (WSL2 on Windows 11) I got around by simply doing touch ~/path/to/autoload.29.0.50
, and doom-emacs has been working well enough.
However, I am trying out nix-doom-emacs and this issue fails to install it. I have used nix-doom-emacs successfully before but stopped due to unrelated reason. This issue wasn’t present back then (few months ago). However, this time the missing autoload file means I am not able to proceed. Since the issue is related to doom-emacs and not Nix (non-doom users have reported nix-doom-emacs working well for them), I thought of asking here first.
Relevant part of log:
~ 29.6s ❱ cat /nix/store/100h6pkf26a9kpbcn0qxsblwmycf26ck-straight-emacs-env/doom.error.log
# -*- lisp-interaction -*-
# vim: set ft=lisp:
(file-missing "Cannot open load file")
(load "/nix/store/100h6pkf26a9kpbcn0qxsblwmycf26ck-straight-emacs-env/autoloads.29.0.50" nil nomessage)
(condition-case e (load (string-remove-suffix ".el" doom-autoloads-file) nil 'nomessage) ((debug file-missing) (if (locate-file doom-autoloads-file load-path) (signal 'doom-autoload-error e) (signal 'doom-error (list "Doom is in an incomplete state" "run 'doom sync' on the command line to repair it")))))
(progn (setq doom-init-p t) (if doom-debug-p (progn (let ((inhibit-message t)) (message #("DOOM Initializing Doom" 0 5 (face font-lock-comment-face)))))) (let ((--dolist-tail-- '(exec-path load-path))) (while --dolist-tail-- (let ((var (car --dolist-tail--))) (set-default var (get var 'initial-value)) (setq --dolist-tail-- (cdr --dolist-tail--))))) (condition-case e (load (string-remove-suffix ".el" doom-autoloads-file) nil 'nomessage) ((debug file-missing) (if (locate-file doom-autoloads-file load-path) (signal 'doom-autoload-error e) (signal 'doom-error (list "Doom is in an incomplete state" "run 'doom sync' on the command line to repair it"))))) (if doom-debug-p (doom-debug-mode 1)) (if (and (or (display-graphic-p) (daemonp)) doom-env-file) (progn (progn (set-default 'process-environment (get 'process-environment 'initial-value))) (doom-load-envvars-file doom-env-file 'noerror))) (require 'core-modules) (autoload 'doom-initialize-packages "core-packages") (eval-after-load 'package #'(lambda nil (require 'core-packages))) (eval-after-load 'straight #'(lambda nil (doom-initialize-packages))) (if noninteractive nil (add-hook 'after-change-major-mode-hook #'doom-run-local-var-hooks-maybe-h 100) (add-hook 'hack-local-variables-hook #'doom-run-local-var-hooks-h) (add-hook 'emacs-startup-hook #'doom-load-packages-incrementally-h) (add-hook 'window-setup-hook #'doom-display-benchmark-h) (doom-run-hook-on 'doom-first-buffer-hook '(find-file-hook doom-switch-buffer-hook)) (doom-run-hook-on 'doom-first-file-hook '(find-file-hook dired-initial-position-hook)) (doom-run-hook-on 'doom-first-input-hook '(pre-command-hook)) (add-hook 'doom-first-buffer-hook #'gcmh-mode)))
(if (or force-p (not doom-init-p)) (progn (setq doom-init-p t) (if doom-debug-p (progn (let ((inhibit-message t)) (message #("DOOM Initializing Doom" 0 5 (face font-lock-comment-face)))))) (let ((--dolist-tail-- '(exec-path load-path))) (while --dolist-tail-- (let ((var (car --dolist-tail--))) (set-default var (get var 'initial-value)) (setq --dolist-tail-- (cdr --dolist-tail--))))) (condition-case e (load (string-remove-suffix ".el" doom-autoloads-file) nil 'nomessage) ((debug file-missing) (if (locate-file doom-autoloads-file load-path) (signal 'doom-autoload-error e) (signal 'doom-error (list "Doom is in an incomplete state" "run 'doom sync' on the command line to repair it"))))) (if doom-debug-p (doom-debug-mode 1)) (if (and (or (display-graphic-p) (daemonp)) doom-env-file) (progn (progn (set-default 'process-environment (get 'process-environment 'initial-value))) (doom-load-envvars-file doom-env-file 'noerror))) (require 'core-modules) (autoload 'doom-initialize-packages "core-packages") (eval-after-load 'package #'(lambda nil (require 'core-packages))) (eval-after-load 'straight #'(lambda nil (doom-initialize-packages))) (if noninteractive nil (add-hook 'after-change-major-mode-hook #'doom-run-local-var-hooks-maybe-h 100) (add-hook 'hack-local-variables-hook #'doom-run-local-var-hooks-h) (add-hook 'emacs-startup-hook #'doom-load-packages-incrementally-h) (add-hook 'window-setup-hook #'doom-display-benchmark-h) (doom-run-hook-on 'doom-first-buffer-hook '(find-file-hook doom-switch-buffer-hook)) (doom-run-hook-on 'doom-first-file-hook '(find-file-hook dired-initial-position-hook)) (doom-run-hook-on 'doom-first-input-hook '(pre-command-hook)) (add-hook 'doom-first-buffer-hook #'gcmh-mode))))
(doom-initialize)
(load-with-code-conversion "/nix/store/kkxpg24lcyl4dh2wqxh149z1zbgzladj-doom-src/init.el" "/nix/store/kkxpg24lcyl4dh2wqxh149z1zbgzladj-doom-src/init.el" t t)
What did you expect to happen?
doom install to proceed and complete successfully.
Steps to reproduce
- follow installation instructions on doomemacs README
(Steps for Nix-doom-emacs are more involved, but produce very similar results)
System information
/e/nixos master• 10m 46.2s ❱ doom info
../../home/payas/.emacs.d/core/autoload/system.el: Warning: Unknown type: consp
> Executing 'doom info' with Emacs 29.0.50 at 2022-06-08 15:53:38
generated Jun 08, 2022 15:53:38
system NixOS 22.11.20220603.236cc29 (Raccoon) Linux 5.10.16.3-microsoft-standard-WSL2 x86_64
emacs 29.0.50 master 00a0226ba ~/.emacs.d/ -> ~/.emacs.d/
doom 3.0.0-dev HEAD -> master bea3cc16 2022-06-04 15:02:06 +0200 ~/.doom.d/ -> ~/.doom.d/
shell /nix/store/r4hfg0mf769l1yxiljw9dyz06ywvdgcx-fish-3.4.1/bin/fish
features CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS XIM GTK3 ZLIB
traits batch server-running envvar-file
modules :completion company vertico :ui nav-flash ophints (popup +defaults) window-select :editor snippets :emacs dired electric ibuffer (undo +tree) :term vterm :checkers (syntax +childframe) (spell +aspell +flyspell) :tools biblio direnv (eval +overlay) (lsp +eglot) magit pdf (&nopath tree-sitter) :lang beancount emacs-lisp (gdscript +lsp) latex (nix +lsp) (org +babel +capture +roam2 +noter +pandoc) (sh +fish) web :email (mu4e +gmail +org) :app calendar (rss +org) :config literate (default +bindings +smartparens)
packages (typit :recipe (:host github :repo mrkkrp/typit)) (minions) (pdf-tools :built-in 'prefer)
elpa vterm tsc tree-sitter-langs tree-sitter tablist pdf-tools org-pdftools org-noter org nadvice let-alist emacsql-sqlite-builtin emacsql-sqlite emacsql