Doom-emacs: O Develop está totalmente quebrado.

Criado em 19 jun. 2018  ·  28Comentários  ·  Fonte: hlissner/doom-emacs

Todos os commits de 03022d09f9e47e6786003a728b020fd59dd30395 em diante quebram tudo.
O último commit de trabalho é 648f4bb5859536dfe167542b07aff7bc4d4c447e

A quebra é basicamente devido a

Unable to find theme file for ‘doom-one’
bug resolved

Todos 28 comentários

Você poderia gentilmente expandir "meio que totalmente quebrado"? Mensagens de erro e backtraces seriam muito apreciados. Talvez um link para sua própria configuração, se estiver em algum lugar. Houve muitas mudanças recentemente.

Se você executar o emacs no modo de depuração com emacs --debug-init , ele produzirá mensagens de erro mais úteis.

Ah, não vi sua edição. Execute bin/doom refresh (ou make ) e veja se isso corrige o seu problema.

@hlissner no último commit (ae6c3cacf2cc04b1fdaddfd941a142a94550b8bb) Ainda estou recebendo o mesmo erro:

./bin/doom refresh                            
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Initializing modules
Doom core autoloads is up-to-date
Looking for orphaned packages...
Looking for packages to install...
No packages to install!
Doom package autoloads is up-to-date
Recompiled 0/1 file(s) (203 ignored)

Isso ainda me dá:

Error in a Doom startup hook: doom|init-ui, (doom-hook-error doom|init-theme (error "Unable to find theme file for ‘doom-one’"))

Minha configuração atual está aqui, mas funciona desde o commit antes da refatoração, como mencionei.

Nada em sua configuração parece estar errado, então você poderia tentar bin/doom autoloads ? Isso forçará a regeneração dos arquivos autoloads, que geralmente são os culpados quando o Emacs não consegue encontrar um pacote instalado.

Isso dá um erro que percebi deste commit em diante:

./bin/doom autoloads                 
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Initializing modules
Deleted old autoloads.el
Generating new autoloads.el
✓ Scanned core/autoload/ui.el
✓ Scanned core/autoload/scratch.el
✓ Scanned core/autoload/projects.el
✓ Scanned core/autoload/packages.el
✓ Scanned core/autoload/message.el
✓ Scanned core/autoload/menu.el
✓ Scanned core/autoload/memoize.el
✓ Scanned core/autoload/help.el
✓ Scanned core/autoload/files.el
✓ Scanned core/autoload/editor.el
✓ Scanned core/autoload/debug.el
✓ Scanned core/autoload/cache.el
✓ Scanned core/autoload/buffers.el
✓ Scanned modules/completion/company/autoload.el
⚠ Ignoring modules/completion/ivy/autoload/posframe.el
✓ Scanned modules/completion/ivy/autoload/ivy.el
✓ Scanned modules/completion/ivy/autoload/evil.el
✓ Scanned modules/config/default/autoload/evil.el
✓ Scanned modules/config/default/autoload/default.el
✓ Scanned modules/config/literate/autoload.el
✓ Scanned modules/emacs/electric/autoload.el
✓ Scanned modules/emacs/term/autoload.el
✓ Scanned modules/feature/eval/autoload/settings.el
✓ Scanned modules/feature/eval/autoload/repl.el
✓ Scanned modules/feature/eval/autoload/evil.el
✓ Scanned modules/feature/eval/autoload/eval.el
✓ Scanned modules/feature/evil/autoload/folds.el
✓ Scanned modules/feature/evil/autoload/files.el
✓ Scanned modules/feature/evil/autoload/evil.el
✓ Scanned modules/feature/evil/autoload/evil-mc.el
✓ Scanned modules/feature/file-templates/autoload.el
✓ Scanned modules/feature/lookup/autoload/lookup.el
✓ Scanned modules/feature/lookup/autoload/evil.el
✓ Scanned modules/feature/lookup/autoload/docsets.el
✓ Scanned modules/feature/lookup/autoload/devdocs.el
✓ Scanned modules/feature/snippets/autoload/snippets.el
✓ Scanned modules/feature/snippets/autoload/settings.el
✓ Scanned modules/feature/snippets/autoload/evil.el
✓ Scanned modules/feature/syntax-checker/autoload.el
✓ Scanned modules/feature/version-control/autoload.el
✓ Scanned modules/feature/workspaces/autoload/workspaces.el
✓ Scanned modules/feature/workspaces/autoload/evil.el
✓ Scanned modules/lang/cc/autoload.el
✓ Scanned modules/lang/emacs-lisp/autoload.el
✓ Scanned modules/lang/latex/autoload.el
✓ Scanned modules/lang/markdown/autoload.el
✓ Scanned modules/lang/org/autoload/tables.el
✓ Scanned modules/lang/org/autoload/org.el
✓ Scanned modules/lang/org/autoload/org-present.el
✓ Scanned modules/lang/org/autoload/org-link.el
✓ Scanned modules/lang/org/autoload/org-capture.el
✓ Scanned modules/lang/org/autoload/org-attach.el
⚠ Ignoring modules/lang/org/autoload/ipython.el
✓ Scanned modules/lang/python/autoload.el
⚠ Ignoring modules/lang/python/autoload/conda.el
✓ Scanned modules/lang/sh/autoload.el
✓ Scanned modules/lang/web/autoload/html.el
✓ Scanned modules/lang/web/autoload/evil.el
✓ Scanned modules/lang/web/autoload/css.el
✓ Scanned modules/tools/magit/autoload.el
✓ Scanned modules/tools/rotate-text/autoload.el
✓ Scanned modules/ui/doom-dashboard/autoload.el
✓ Scanned modules/ui/doom-modeline/autoload.el
✓ Scanned modules/ui/fci/autoload.el
✓ Scanned modules/ui/hl-todo/autoload.el
✓ Scanned modules/ui/nav-flash/autoload.el
✓ Scanned modules/ui/neotree/autoload.el
✓ Scanned modules/ui/popup/autoload/settings.el
✓ Scanned modules/ui/popup/autoload/popup.el
✓ Scanned modules/ui/unicode/autoload.el
✓ Scanned modules/ui/vi-tilde-fringe/autoload.el
✓ Expanded module autoload paths
✓ Generated autodefs
✓ Clean up autoloads

Deleted old autoloads.pkg.el
Symbol’s value as variable is void: import

O erro é então:

Warning (initialization): An error occurred while loading ‘/home/haozeke/.emacs.d/init.el’:

: Your package autoloads are missing! Run ‘bin/doom refresh’ to regenerate them

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

Tente bin/doom --debug autoloads e veja se ele produz uma mensagem de erro mais útil.

Isso produz (truncando muitas mensagens de varredura bem-sucedidas):

✓ Expanded module autoload paths
✓ Generated autodefs
✓ Clean up autoloads

Compiling /home/haozeke/.emacs.d/.local/autoloads.el...
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (doom-project-expand)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (doom/describe-setting)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (doom/help)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (doom-buffer-list)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (other-popup)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (set-email-account!)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (set-eshell-alias!)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (set-pretty-symbols!)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el...done
Wrong type argument: symbolp, (closure ((p autoloads :desc "Regenerates Doom's autoloads file.

This file tells Emacs where to find your module's autoloaded functions and
plugins." :body #0) t) (args) (doom-reload-autoloads nil (quote force)))

Muito estranho. Você poderia me mostrar a saída de bin/doom info .

Sim:

bin/doom info                
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Generating Doom info...
Initializing modules
- OS: gnu/linux (x86_64-pc-linux-gnu)
- Emacs: 26.1 (May 29, 2018)
- Doom: 2.0.9 (develop ae6c3cacf2cc04b1fdaddfd941a142a94550b8bb)
- Graphic display: nil (daemon: nil)
- System features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2
- Details:

elisp elc count: 0 uname -a: Linux myarchbox 4.16.16-1-ck-haswell #1 SMP PREEMPT Sat Jun 16 08:24:52 EDT 2018 x86_64 GNU/Linux modules: (:feature (evil +everywhere) file-templates (lookup +devdocs +docsets) snippets spellcheck (syntax-checker +childframe) version-control workspaces :completion (ivy +fuzzy) :ui doom-dashboard doom-modeline evil-goggles fci hl-todo nav-flash neotree (popup +all +defaults) unicode vi-tilde-fringe window-select :emacs ediff electric imenu term :tools magit pdf rotate-text :lang data emacs-lisp latex markdown (org +attach +babel +capture +export +present) python ruby sh web :config (default +bindings +snippets +evil-commands)) packages: n/a exec-path: (~/.zplug/bin ~/Git/Github/Dotfiles/Scripts ~/.node_modules/bin ~/.yarn/bin ~/.local/bin ~/bin /bin /usr/local/bin /usr/bin /usr/local/sbin /opt/cxoffice/bin /var/lib/flatpak/exports/bin /usr/lib/jvm/default/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl ~/.rvm/bin ~/.local/bin/gitHelpers ~/.local/bin/droidHelpers ~/.local/bin/dockerHelpers ~/.local/bin/shellHelpers ~/.local/bin/fileHelpers ~/.local/bin/webHelpers ~/.local/bin/installHelpers ~/.cargo/bin ~/.go/bin ~/Git/Github/Linux/xmr-stak-cpu/bin /var/lib/snapd/snap/bin //home/haozeke/.gem/ruby/2.4.0/bin ~/LabWork/IITB/Icover /root/.gem/ruby/2.2.0/bin ~/Matlab/MATLAB_Production_Server/R2015a/bin ~/.gem/ruby/2.2.0/bin ~/.gem/ruby/2.3.0/bin /opt/schrodinger2016-2 ~/Git/Github/mylammps/src ~/Git/Github/espresso/build ~/Git/Github/Scripts/Build ~/Git/Github/Scripts/System ~/.local/g16 /usr/local/MATLAB/R2017a/bin /usr/local/MATLAB/R2017a/bin /usr/lib/emacs/26.1/x86_64-pc-linux-gnu)

~/.emacs.d/.local/autoloads.el existe para você? Se isso não acontecer, atualize para o Doom mais recente (empurrou-o há um minuto atrás) e invoque o erro novamente e o Doom salvará o arquivo autoloads errôneo em ~/.emacs.d/.local/autoloads.el.bak .

Por favor, envie esse arquivo para mim (por exemplo, via pastebin).

Eu tenho ~/.emacs.d/.local/autoloads.el com o Doom mais recente ... No entanto, não consigo produzir o arquivo autoloads.el.bak ...

$ ./bin/doom autoloads     
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Wrong type argument: stringp, nil
$ cd .local/ 
$ ls
:  autoloads.el  autoloads.elc  autoloads.pkg.el  autoloads.pkg.elc  cache  emacs-version.el  etc  packages

Executar o emacs ainda me leva a:

Error in a Doom startup hook: doom|init-ui, (doom-hook-error doom|init-theme (error "Unable to find theme file for ‘doom-one’"))

Em uma nova configuração do Doom (removendo .emacs.d completamente) eu recebo:

$ make
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Installing core packages
Importing package-keyring.gpg...
Importing package-keyring.gpg...done
Contacting host: elpa.gnu.org:443
Contacting host: elpa.gnu.org:443
Contacting host: melpa.org:443
Contacting host: melpa.org:443
Contacting host: orgmode.org:443
Contacting host: orgmode.org:443
Package refresh done
✓ Installed persistent-soft
✓ Installed use-package
✓ Installed quelpa
✓ Installed async
Installing core packages...done
Initializing modules
Generating new autoloads.el
✓ Scanned core/autoload/ui.el
✓ Scanned core/autoload/scratch.el
✓ Scanned core/autoload/projects.el
✓ Scanned core/autoload/packages.el
✓ Scanned core/autoload/message.el
✓ Scanned core/autoload/menu.el
✓ Scanned core/autoload/memoize.el
✓ Scanned core/autoload/help.el
✓ Scanned core/autoload/files.el
✓ Scanned core/autoload/editor.el
✓ Scanned core/autoload/debug.el
✓ Scanned core/autoload/cache.el
✓ Scanned core/autoload/buffers.el
✓ Scanned modules/completion/company/autoload.el
⚠ Ignoring modules/completion/ivy/autoload/posframe.el
✓ Scanned modules/completion/ivy/autoload/ivy.el
✓ Scanned modules/completion/ivy/autoload/evil.el
✓ Scanned modules/config/default/autoload/evil.el
✓ Scanned modules/config/default/autoload/default.el
✓ Scanned modules/config/literate/autoload.el
✓ Scanned modules/emacs/electric/autoload.el
✓ Scanned modules/emacs/term/autoload.el
✓ Scanned modules/feature/eval/autoload/settings.el
✓ Scanned modules/feature/eval/autoload/repl.el
✓ Scanned modules/feature/eval/autoload/evil.el
✓ Scanned modules/feature/eval/autoload/eval.el
✓ Scanned modules/feature/evil/autoload/folds.el
✓ Scanned modules/feature/evil/autoload/files.el
✓ Scanned modules/feature/evil/autoload/evil.el
✓ Scanned modules/feature/evil/autoload/evil-mc.el
✓ Scanned modules/feature/file-templates/autoload.el
✓ Scanned modules/feature/lookup/autoload/lookup.el
✓ Scanned modules/feature/lookup/autoload/evil.el
✓ Scanned modules/feature/lookup/autoload/docsets.el
✓ Scanned modules/feature/lookup/autoload/devdocs.el
✓ Scanned modules/feature/snippets/autoload/snippets.el
✓ Scanned modules/feature/snippets/autoload/settings.el
✓ Scanned modules/feature/snippets/autoload/evil.el
✓ Scanned modules/feature/syntax-checker/autoload.el
✓ Scanned modules/feature/version-control/autoload.el
✓ Scanned modules/feature/workspaces/autoload/workspaces.el
✓ Scanned modules/feature/workspaces/autoload/evil.el
✓ Scanned modules/lang/cc/autoload.el
✓ Scanned modules/lang/emacs-lisp/autoload.el
✓ Scanned modules/lang/latex/autoload.el
✓ Scanned modules/lang/markdown/autoload.el
✓ Scanned modules/lang/org/autoload/tables.el
✓ Scanned modules/lang/org/autoload/org.el
✓ Scanned modules/lang/org/autoload/org-present.el
✓ Scanned modules/lang/org/autoload/org-link.el
✓ Scanned modules/lang/org/autoload/org-capture.el
✓ Scanned modules/lang/org/autoload/org-attach.el
⚠ Ignoring modules/lang/org/autoload/ipython.el
✓ Scanned modules/lang/python/autoload.el
⚠ Ignoring modules/lang/python/autoload/conda.el
✓ Scanned modules/lang/sh/autoload.el
✓ Scanned modules/lang/web/autoload/html.el
✓ Scanned modules/lang/web/autoload/evil.el
✓ Scanned modules/lang/web/autoload/css.el
✓ Scanned modules/tools/magit/autoload.el
✓ Scanned modules/tools/rotate-text/autoload.el
✓ Scanned modules/ui/doom-dashboard/autoload.el
✓ Scanned modules/ui/doom-modeline/autoload.el
✓ Scanned modules/ui/fci/autoload.el
✓ Scanned modules/ui/hl-todo/autoload.el
✓ Scanned modules/ui/nav-flash/autoload.el
✓ Scanned modules/ui/neotree/autoload.el
✓ Scanned modules/ui/popup/autoload/settings.el
✓ Scanned modules/ui/popup/autoload/popup.el
✓ Scanned modules/ui/unicode/autoload.el
✓ Scanned modules/ui/vi-tilde-fringe/autoload.el
✓ Expanded module autoload paths
✓ Generated autodefs
✓ Clean up autoloads
Looking for orphaned packages...
Looking for packages to install...
22 packages will be installed:

+ ace-link (ELPA)
+ ace-window (ELPA)
+ all-the-icons (ELPA)
+ avy (ELPA)
+ buttercup (ELPA)
+ command-log-mode (ELPA)
+ dtrt-indent (ELPA)
+ esup (ELPA)
+ expand-region (ELPA)
+ helpful (ELPA)
+ hide-mode-line (ELPA)
+ highlight-indentation (ELPA)
+ highlight-numbers (ELPA)
+ hydra (ELPA)
+ pcre2el (ELPA)
+ projectile (ELPA)
+ rainbow-delimiters (ELPA)
+ restart-emacs (ELPA)
+ smartparens (ELPA)
+ undo-tree (ELPA)
+ visual-fill-column (ELPA)
+ which-key (ELPA)

Proceed? (y or n) y

Refreshing package archives
Importing package-keyring.gpg...
Importing package-keyring.gpg...done
Contacting host: elpa.gnu.org:443
Contacting host: elpa.gnu.org:443
Contacting host: melpa.org:443
Contacting host: melpa.org:443
Contacting host: orgmode.org:443
Package refresh done
Installing which-key
✓ DONE
Installing visual-fill-column
✓ DONE
Installing undo-tree
✓ DONE
Installing smartparens
✓ DONE
Installing restart-emacs
✓ DONE
Installing rainbow-delimiters
✓ DONE
Installing projectile
✓ DONE
Installing pcre2el
✓ DONE
Installing hydra
✓ DONE
Installing highlight-numbers
✓ DONE
Installing highlight-indentation
✓ DONE
Installing hide-mode-line
✓ DONE
Installing helpful
✓ DONE
Installing expand-region
✓ DONE
Installing esup
✓ DONE
Installing dtrt-indent
✓ DONE
Installing command-log-mode
✓ DONE
Installing buttercup
✓ DONE
Installing avy
✓ DONE
Installing all-the-icons
✓ DONE
Installing ace-window
✓ DONE
Installing ace-link
✓ DONE
Finished!
✓ Cached package state
✓ Package autoloads included
✓ Removed load-path/auto-mode-alist entries
Error in a Doom startup hook: doom|init-ui, (doom-hook-error doom|init-theme (error "Unable to find theme file for ‘doom-one’"))
make: *** [Makefile:5: all] Error 255

Basicamente, o mesmo problema, porém, ao executar o emacs, agora recebo:

Warning (initialization): An error occurred while loading ‘/home/haozeke/.emacs.d/init.el’:

Error in your private config: init, (file-missing Cannot open load file No such file or directory evil)

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.
Error in post-command-hook (doom|transient-hook--load-evil-collection): (file-missing "Cannot open load file" "No such file or directory" "evil-collection")

Ainda sem ~/.emacs.d/.local/autoloads.el.bak com a nova instalação.

O erro ao tentar instalar os pacotes é novamente:

$ make install                                             
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Initializing modules
Doom core autoloads is up-to-date
Looking for packages to install...
Symbol’s value as variable is void: import
make: *** [Makefile:25: install] Error 255

Parece que muitas coisas estão quebrando de alguma forma:

$ /bin/doom -d install 
Debug mode on
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/packages.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/cache.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/debug.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/message.el (source)...
Initializing modules
Loading /home/haozeke/.emacs.d/modules/config/literate/init.el (source)...
Doom core autoloads is up-to-date
Looking for packages to install...
Wrong type argument: symbolp, (closure ((p install :desc "Installs requested plugins that aren't installed." :body #0) t) (args) (doom--do (quote doom-packages-install)))

Desculpe, houve uma regressão. Acabei de enviar uma correção para o erro stringp . Por favor, atualize e tente mais uma vez.

Ainda os mesmos erros com o último commit ..

$ make  
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Initializing modules
Doom core autoloads is up-to-date
Looking for orphaned packages...
Looking for packages to install...
No packages to install!
Doom package autoloads is up-to-date
Error in a Doom startup hook: doom|init-ui, (doom-hook-error doom|init-theme (error "Unable to find theme file for ‘doom-one’"))
make: *** [Makefile:5: all] Error 255

```bash
$ ./bin/doom -d install 
Debug mode on
Loading /home/haozeke/.emacs.d/early-init.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/packages.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/cache.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/debug.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/message.el (source)...
Initializing modules
Loading /home/haozeke/.emacs.d/modules/config/literate/init.el (source)...
Doom core autoloads is up-to-date
Looking for packages to install...
Wrong type argument: symbolp, (closure ((p install :desc "Installs requested plugins that aren't installed." :body #0) t) (args) (doom--do (quote doom-packages-install)))
./bin/doom -d autoloads       
Debug mode on
✓ Expanded module autoload paths
✓ Generated autodefs
✓ Clean up autoloads

Compiling /home/haozeke/.emacs.d/.local/autoloads.el...
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (doom-project-expand)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (doom/describe-setting)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (doom/help)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (doom-buffer-list)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (other-popup)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (set-email-account!)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (set-eshell-alias!)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el... (set-pretty-symbols!)
Compiling /home/haozeke/.emacs.d/.local/autoloads.el...done
Deleted old autoloads.pkg.el
Wrong type argument: symbolp, (closure ((p autoloads :desc "Regenerates Doom's autoloads file.

This file tells Emacs where to find your module's autoloaded functions and
plugins." :body #0) t) (args) (doom-reload-autoloads nil (quote force)))

Emacs dá:

Warning (initialization): An error occurred while loading ‘/home/haozeke/.emacs.d/init.el’:

: Your package autoloads are missing! Run ‘bin/doom refresh’ to regenerate them

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

Finalmente, bin/doom -d refresh dá:

Error in a Doom startup hook: doom|init-ui, (doom-hook-error doom|init-theme (error "Unable to find theme file for ‘doom-one’"))

Além disso, @hlissner , não se desculpe! Estou feliz por você estar me ajudando a fazer isso funcionar novamente.

Wrong type argument: symbolp, (closure ((p autoloads :desc "Regenerates Doom's autoloads file.

This file tells Emacs where to find your module's autoloaded functions and
plugins." :body #0) t) (args) (doom-reload-autoloads nil (quote force)))

Esse é um erro muito estranho. Não consigo reproduzi-lo, mas tenho certeza de que é a causa raiz de tudo isso. Você poderia colar seu arquivo autoloads.pkg.el (ou autoloads.pkg.el.bak )?

Este arquivo é responsável por configurar seu load-path e custom-theme-load-path (entre outras coisas), então se ele está falhando ao gerar / executar, é natural que o Emacs não seja capaz de encontrar o tema.

Claro, ele foi carregado aqui no hastebin .

Você poderia tentar essa mudança em core / core-dispatcher.el (linha 82) na macro dispatcher! :

         `((dolist (alias ',aliases)
             (map-put doom--dispatch-alias-alist alias ',cmd))))
       `((map-put doom--dispatch-command-alist ',cmd
                  (list :desc ,docstring
-                       :body (lambda (args) ,form))))))))
+                       :body '(lambda (args) ,form))))))))


 ;;
 ;; Dispatch commands
 ;;

Em seguida, tente bin/doom autoloads novamente para ver se isso corrige o seu problema.

Sim, tentei, mas não houve alteração. Ainda conseguindo

Deleted old autoloads.pkg.el
Symbol’s value as variable is void: import

No entanto, agora não estou recebendo .local/autoloads.pkg.el ..

$ cd .local && ls
autoloads.el  autoloads.elc  cache  emacs-version.el  etc  packages

Você é capaz de produzir aquele erro Symbol’s value as variable is void: import especificamente quando executa doom --debug autoloads . Um rastreamento de pilha para isso seria de grande ajuda.

Caso contrário, verifique se autoloads.pkg.el existe. Caso contrário, verifique se autoloads.pkg.el.bak sim. Nesse caso, carregue esse arquivo para mim.

Além disso, se você não souber, temos um servidor Discord . Talvez seja melhor continuar este processo em tempo real.

Com doom --debug autoloads eu recebo:

Compiling /home/haozeke/.emacs.d/.local/autoloads.el...done
Deleted old autoloads.pkg.el
Wrong type argument: symbolp, (closure ((p autoloads :desc "Regenerates Doom's autoloads file.

This file tells Emacs where to find your module's autoloaded functions and
plugins." :body #0) t) (args) (doom-reload-autoloads nil (quote force)))

Além disso, eu não recebo mais autoloads.pkg.el , ou o arquivo .bak .

autoloads.el   cache             etc
autoloads.elc  emacs-version.el  packages

Posso obter autoloads.pkg.el executando make .

Esse arquivo está aqui .

Depois de muito procurar, finalmente me concentrei na causa do erro de fechamento de símbolo em 84756b3. Atualize e execute bin/doom refresh e me informe se isso resolve o seu problema!

Novos erros ..

Quando o emacs começa:

Warning (initialization): An error occurred while loading ‘/home/haozeke/.emacs.d/init.el’:

: Your package autoloads are missing! Run ‘bin/doom refresh’ to regenerate them

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

De doom refresh

Initializing modules
Doom core autoloads is up-to-date
Looking for orphaned packages...
Looking for packages to install...
No packages to install!
Doom package autoloads is up-to-date

--------------------------------------------------

There was an unexpected error:
  Error in a Doom module (doom-module-error)
  modules/config/default/+bindings.el
  (void-function evil-define-key*)

Run the command again with the -d (or --debug) option to enable debug
mode and, hopefully, generate a stack trace. If you decide to file a bug
report, please include it!

Emacs outputs to standard error, so you’ll need to redirect stderr to
stdout to pipe this to a file or clipboard!

  e.g. doom -d install 2>&1 | clipboard-program

A partir do comando sugerido:

 ./bin/doom -d install 2>&1                            
Debug mode on
Loading /home/haozeke/.emacs.d/core/autoload/packages.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/cache.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/debug.el (source)...
Loading /home/haozeke/.emacs.d/core/autoload/message.el (source)...
Initializing modules
Loading /home/haozeke/.emacs.d/modules/config/literate/init.el (source)...
Doom core autoloads is up-to-date
Looking for packages to install...

...
  load("/home/haozeke/.doom.d/packages.el" t t t)
  (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e))))
  (closure ((temp-buffer . #<buffer  *temp*>) (force-p) t) (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))("/home/haozeke/.doom.d/packages.el" t)
  funcall((closure ((temp-buffer . #<buffer  *temp*>) (force-p) t) (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e))))) "/home/haozeke/.doom.d/packages.el" t)
  (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t))
  (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t)))
  (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t))))
  (let* ((--cl-_load-- (function (lambda (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))))) (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t)))))
  (progn (let* ((--cl-_load-- (function (lambda (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))))) (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t))))))
  (if (or force-p (not doom-packages)) (progn (let* ((--cl-_load-- (function (lambda (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))))) (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t)))))))
  (let ((load-prefer-newer t)) (if (eq force-p 'internal) nil (if (or force-p (not (and (boundp 'package-alist) package-alist))) (progn (setq load-path (cons doom-core-dir doom-site-load-path)) (doom-ensure-packages-initialized 'force))) (if (or force-p (not (and (boundp 'quelpa-cache) quelpa-cache))) (progn (if (featurep 'quelpa) nil (load (locate-library "quelpa.el") nil t t)) (setq quelpa-initialized-p nil) (or (quelpa-setup-p) (error "Could not initialize quelpa"))))) (if (or force-p (not doom-packages)) (progn (let* ((--cl-_load-- (function (lambda (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))))) (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t))))))))
  (progn (let ((load-prefer-newer t)) (if (eq force-p 'internal) nil (if (or force-p (not (and (boundp 'package-alist) package-alist))) (progn (setq load-path (cons doom-core-dir doom-site-load-path)) (doom-ensure-packages-initialized 'force))) (if (or force-p (not (and (boundp 'quelpa-cache) quelpa-cache))) (progn (if (featurep 'quelpa) nil (load (locate-library "quelpa.el") nil t t)) (setq quelpa-initialized-p nil) (or (quelpa-setup-p) (error "Could not initialize quelpa"))))) (if (or force-p (not doom-packages)) (progn (let* ((--cl-_load-- (function (lambda (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))))) (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t)))))))))
  (unwind-protect (progn (let ((load-prefer-newer t)) (if (eq force-p 'internal) nil (if (or force-p (not (and (boundp 'package-alist) package-alist))) (progn (setq load-path (cons doom-core-dir doom-site-load-path)) (doom-ensure-packages-initialized 'force))) (if (or force-p (not (and (boundp 'quelpa-cache) quelpa-cache))) (progn (if (featurep 'quelpa) nil (load (locate-library "quelpa.el") nil t t)) (setq quelpa-initialized-p nil) (or (quelpa-setup-p) (error "Could not initialize quelpa"))))) (if (or force-p (not doom-packages)) (progn (let* ((--cl-_load-- (function (lambda (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))))) (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t))))))))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (let ((load-prefer-newer t)) (if (eq force-p 'internal) nil (if (or force-p (not (and (boundp 'package-alist) package-alist))) (progn (setq load-path (cons doom-core-dir doom-site-load-path)) (doom-ensure-packages-initialized 'force))) (if (or force-p (not (and (boundp 'quelpa-cache) quelpa-cache))) (progn (if (featurep 'quelpa) nil (load (locate-library "quelpa.el") nil t t)) (setq quelpa-initialized-p nil) (or (quelpa-setup-p) (error "Could not initialize quelpa"))))) (if (or force-p (not doom-packages)) (progn (let* ((--cl-_load-- (function (lambda (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))))) (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t))))))))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
  (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (let ((load-prefer-newer t)) (if (eq force-p 'internal) nil (if (or force-p (not (and (boundp 'package-alist) package-alist))) (progn (setq load-path (cons doom-core-dir doom-site-load-path)) (doom-ensure-packages-initialized 'force))) (if (or force-p (not (and (boundp 'quelpa-cache) quelpa-cache))) (progn (if (featurep 'quelpa) nil (load (locate-library "quelpa.el") nil t t)) (setq quelpa-initialized-p nil) (or (quelpa-setup-p) (error "Could not initialize quelpa"))))) (if (or force-p (not doom-packages)) (progn (let* ((--cl-_load-- (function (lambda (file &optional noerror) (condition-case e (load file noerror t t) ((debug error) (signal 'doom-package-error (list (or (doom-module-from-path file) '(:private . packages)) e)))))))) (progn (let ((doom-modules (doom-modules)) (doom--stage 'packages) (noninteractive t)) (setq doom-packages nil) (funcall --cl-_load-- (expand-file-name "packages.el" doom-core-dir)) (let ((private-packages (expand-file-name "packages.el" doom-private-dir))) (funcall --cl-_load-- private-packages t) (let* ((path nil)) (maphash (function (lambda (key --cl-var--) (setq path (doom-module-path (car key) (cdr key) "packages.el")) (let ((doom--current-module key)) (funcall --cl-_load-- path t)))) doom-modules) nil) (funcall --cl-_load-- private-packages t))))))))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
  doom-initialize-packages()
  doom-get-missing-packages()
  (reverse (doom-get-missing-packages))
  (let ((packages (reverse (doom-get-missing-packages)))) (cond ((not packages) (print! (green "No packages to install!")) nil) ((not (or auto-accept-p (y-or-n-p (format "%s packages will be installed:\n\n%s\n\nProceed?" (length packages) (mapconcat (function (lambda (pkg) (format "+ %s (%s)" (car pkg) (cond ((doom-package-different-recipe-p (car pkg)) "new recipe") ((doom-package-different-backend-p (car pkg)) (if (plist-get (cdr pkg) :recipe) "ELPA->QUELPA" "QUELPA->ELPA")) ((plist-get (cdr pkg) :recipe) "QUELPA") ("ELPA"))))) (cl-sort (cl-copy-list packages) (function string-lessp) :key (function car)) "\n"))))) (error "Aborted!")) ((let (success) (doom-refresh-packages-maybe doom-debug-mode) (let ((--dolist-tail-- packages)) (while --dolist-tail-- (let ((pkg (car --dolist-tail--))) (print! "Installing %s" (car pkg)) (condition-case ex (progn (let ((result (or (and (package-installed-p (car pkg)) (not (doom-package-different-backend-p (car pkg))) (not (doom-package-different-recipe-p (car pkg))) 'already-installed) (and (doom-install-package (car pkg) (cdr pkg)) (setq success t) 'success) 'failure)) (pin-label (and (plist-member (cdr pkg) :pin) (format " [pinned: %s]" (plist-get (cdr pkg) :pin))))) (print! "%s%s" (cond ((eq result 'already-installed) (dark (white "⚠ ALREADY INSTALLED"))) ((eq result 'success) (green "✓ DONE")) ((eq result 'failure) (red "✕ FAILED")) (t nil)) (or pin-label "")))) ((debug quote user-error) (print! (bold (red "  NOTICE: %s" ex)))) ((debug quote file-error) (print! (bold (red "  FILE ERROR: %s" (error-message-string ex)))) (print! "  Trying again...") (if doom-debug-mode (progn (doom-refresh-packages-maybe t)) (let ((old-fn (symbol-function 'write-region))) (let ((standard-output (function (lambda (&rest _))))) (let* ((vnew (function (lambda (file) (load file nil t)))) (old (symbol-function 'load-file))) (unwind-protect (progn (fset 'load-file vnew) (let* ((vnew (function (lambda (&rest _)))) (old (symbol-function 'message))) (unwind-protect (progn (fset 'message vnew) (let* ((vnew (function (lambda (start end filename &optional append visit lockname mustbenew) (if visit nil (setq visit 'no-message)) (funcall old-fn start end filename append visit lockname mustbenew)))) (old (symbol-function 'write-region))) (unwind-protect (progn (fset 'write-region vnew) (let ((inhibit-message t)) (let ((save-silently t)) (doom-refresh-packages-maybe t)))) (fset 'write-region old)))) (fset 'message old)))) (fset 'load-file old)))))) (let ((result (or (and (package-installed-p (car pkg)) (not (doom-package-different-backend-p (car pkg))) (not (doom-package-different-recipe-p (car pkg))) 'already-installed) (and (doom-install-package (car pkg) (cdr pkg)) (setq success t) 'success) 'failure)) (pin-label (and (plist-member (cdr pkg) :pin) (format " [pinned: %s]" (plist-get (cdr pkg) :pin))))) (print! "%s%s" (cond ((eq result 'already-installed) (dark (white "⚠ ALREADY INSTALLED"))) ((eq result 'success) (green "✓ DONE")) ((eq result 'failure) (red "✕ FAILED")) (t nil)) (or pin-label ""))))) (setq --dolist-tail-- (cdr --dolist-tail--))))) (print! (bold (green "Finished!"))) (if success (progn (set-file-times doom-packages-dir) (doom-delete-autoloads-file doom-package-autoload-file))) success))))
  doom-packages-install(nil)
  funcall(doom-packages-install nil)
  (if (funcall fn doom-auto-accept) (progn (doom-reload-package-autoloads)))
  doom--do(doom-packages-install)
  (closure ((p install :desc "Installs requested plugins that aren't installed." :body #0) t) (args) (doom--do 'doom-packages-install))(nil)
  funcall((closure ((p install :desc "Installs requested plugins that aren't installed." :body #1) t) (args) (doom--do 'doom-packages-install)) nil)
  (if help (apply (function doom--dispatch-help) command desc (cdr args)) (funcall body (cdr args)))
  (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) '(:desc :body :allow-other-keys)) (setq --cl-keys-- (cdr (cdr --cl-keys--)))) ((car (cdr (memq ':allow-other-keys --cl-rest--))) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:desc :body)" (car --cl-keys--)))))) (if help (apply (function doom--dispatch-help) command desc (cdr args)) (funcall body (cdr args))))
  (let* ((--cl-rest-- (let ((sym (intern (car args)))) (or (assq sym doom--dispatch-command-alist) (assq (cdr (assq sym doom--dispatch-alias-alist)) doom--dispatch-command-alist) (error "Invalid command: %s" (car args))))) (command (if --cl-rest-- (car-safe (prog1 --cl-rest-- (setq --cl-rest-- (cdr --cl-rest--)))) (signal 'wrong-number-of-arguments (list nil (length --cl-rest--))))) (desc (car (cdr (plist-member --cl-rest-- ':desc)))) (body (car (cdr (plist-member --cl-rest-- ':body))))) (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) '(:desc :body :allow-other-keys)) (setq --cl-keys-- (cdr (cdr --cl-keys--)))) ((car (cdr (memq ':allow-other-keys --cl-rest--))) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:desc :body)" (car --cl-keys--)))))) (if help (apply (function doom--dispatch-help) command desc (cdr args)) (funcall body (cdr args)))))
  (let ((help (equal (car args) "help"))) (if help (car-safe (prog1 args (setq args (cdr args))))) (let* ((--cl-rest-- (let ((sym (intern (car args)))) (or (assq sym doom--dispatch-command-alist) (assq (cdr (assq sym doom--dispatch-alias-alist)) doom--dispatch-command-alist) (error "Invalid command: %s" (car args))))) (command (if --cl-rest-- (car-safe (prog1 --cl-rest-- (setq --cl-rest-- (cdr --cl-rest--)))) (signal 'wrong-number-of-arguments (list nil (length --cl-rest--))))) (desc (car (cdr (plist-member --cl-rest-- ':desc)))) (body (car (cdr (plist-member --cl-rest-- ':body))))) (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) '(:desc :body :allow-other-keys)) (setq --cl-keys-- (cdr (cdr --cl-keys--)))) ((car (cdr (memq ':allow-other-keys --cl-rest--))) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:desc :body)" (car --cl-keys--)))))) (if help (apply (function doom--dispatch-help) command desc (cdr args)) (funcall body (cdr args))))))
  doom-dispatch(("install"))
  (condition-case e (doom-dispatch args) ((debug error) (message "--------------------------------------------------\n") (message "There was an unexpected error:") (message "  %s (%s)" (get (car e) 'error-message) (car e)) (let ((--dolist-tail-- (cdr e)) item) (while --dolist-tail-- (setq item (car --dolist-tail--)) (message "  %s" item) (setq --dolist-tail-- (cdr --dolist-tail--)))) (if debug-on-error nil (message (concat "\nRun the command again with the -d (or --debug) option to enable debug\n" "mode and, hopefully, generate a stack trace. If you decide to file a bug\n" "report, please include it!\n\n" "Emacs outputs to standard error, so you'll need to redirect stderr to\n" "stdout to pipe this to a file or clipboard!\n\n" "  e.g. doom -d install 2>&1 | clipboard-program")))))
  (let ((default-directory emacs-dir)) (setq argv nil noninteractive 'doom) (condition-case e (doom-dispatch args) ((debug error) (message "--------------------------------------------------\n") (message "There was an unexpected error:") (message "  %s (%s)" (get (car e) 'error-message) (car e)) (let ((--dolist-tail-- (cdr e)) item) (while --dolist-tail-- (setq item (car --dolist-tail--)) (message "  %s" item) (setq --dolist-tail-- (cdr --dolist-tail--)))) (if debug-on-error nil (message (concat "\nRun the command again with the -d (or --debug) option to enable debug\n" "mode and, hopefully, generate a stack trace. If you decide to file a bug\n" "report, please include it!\n\n" "Emacs outputs to standard error, so you'll need to redirect stderr to\n" "stdout to pipe this to a file or clipboard!\n\n" "  e.g. doom -d install 2>&1 | clipboard-program"))))))
  (cond ((not noninteractive) (doom|run-all-startup-hooks)) ((and (not (cdr args)) (member (car args) '("help" "h"))) (usage)) ((not args) (usage) (message "") (error "No command detected, aborting!")) ((let ((default-directory emacs-dir)) (setq argv nil noninteractive 'doom) (condition-case e (doom-dispatch args) ((debug error) (message "--------------------------------------------------\n") (message "There was an unexpected error:") (message "  %s (%s)" (get (car e) 'error-message) (car e)) (let ((--dolist-tail-- (cdr e)) item) (while --dolist-tail-- (setq item (car --dolist-tail--)) (message "  %s" item) (setq --dolist-tail-- (cdr --dolist-tail--)))) (if debug-on-error nil (message (concat "\nRun the command again with the -d (or --debug) option to enable debug\n" "mode and, hopefully, generate a stack trace. If you decide to file a bug\n" "report, please include it!\n\n" "Emacs outputs to standard error, so you'll need to redirect stderr to\n" "stdout to pipe this to a file or clipboard!\n\n" "  e.g. doom -d install 2>&1 | clipboard-program"))))))))
  (let ((args (cdr (cdr (cdr command-line-args)))) (emacs-dir (or (getenv "EMACSDIR") (expand-file-name "../" (file-name-directory load-file-name))))) (while (condition-case nil (progn (string-prefix-p "-" (car args))) (error nil)) (let* ((val (car-safe (prog1 args (setq args (cdr args)))))) (cond ((member val '("--help" "-h")) (error "Did you mean 'doom help'?")) ((member val '("--debug" "-d")) (setq doom-debug-mode t) (setenv "DEBUG" "1") (message "Debug mode on")) ((member val '("--insecure" "-i")) (setenv "INSECURE" "1") (message "Insecure mode on")) ((member val '("--private" "-p")) (setq doom-private-dir (expand-file-name (concat (car-safe (prog1 args (setq args (cdr args)))) "/"))) (or (file-directory-p doom-private-dir) (error "%s does not exist" doom-private-dir)) (setenv "DOOMDIR" doom-private-dir) (message "DOOMDIR changed to %s" doom-private-dir)) ((member val '("--emacsd" "-e")) (setq emacs-dir (expand-file-name (concat (car-safe (prog1 args (setq args (cdr args)))) "/"))) (message "Emacs directory changed to %s" emacs-dir)) ((member val '("--yes" "-y")) (setq doom-auto-accept t) (setenv "YES" "1") (message "Auto-yes mode on")) (t nil)))) (or (file-directory-p emacs-dir) (error "%s does not exist" emacs-dir)) (load (expand-file-name "init" emacs-dir) nil 'nomessage) (cond ((not noninteractive) (doom|run-all-startup-hooks)) ((and (not (cdr args)) (member (car args) '("help" "h"))) (usage)) ((not args) (usage) (message "") (error "No command detected, aborting!")) ((let ((default-directory emacs-dir)) (setq argv nil noninteractive 'doom) (condition-case e (doom-dispatch args) ((debug error) (message "--------------------------------------------------\n") (message "There was an unexpected error:") (message "  %s (%s)" (get (car e) 'error-message) (car e)) (let ((--dolist-tail-- (cdr e)) item) (while --dolist-tail-- (setq item (car --dolist-tail--)) (message "  %s" item) (setq --dolist-tail-- (cdr --dolist-tail--)))) (if debug-on-error nil (message (concat "\nRun the command again with the -d (or --debug) option to enable debug\n" "mode and, hopefully, generate a stack trace. If you decide to file a bug\n" "report, please include it!\n\n" "Emacs outputs to standard error, so you'll need to redirect stderr to\n" "stdout to pipe this to a file or clipboard!\n\n" "  e.g. doom -d install 2>&1 | clipboard-program")))))))))
  eval-buffer(#<buffer  *load*> nil "/home/haozeke/.emacs.d/bin/doom" nil t)  ; Reading at buffer position 4693
  load-with-code-conversion("/home/haozeke/.emacs.d/bin/doom" "/home/haozeke/.emacs.d/bin/doom" nil t)
  load("/home/haozeke/.emacs.d/bin/doom" nil t t)
  command-line-1(("-scriptload" "./bin/doom" "--" "-d" "install"))
  command-line()
  normal-top-level()
$ ./bin/doom autoloads                          
Initializing modules
Deleted old autoloads.el
Generating new autoloads.el
✓ Scanned core/autoload/ui.el
✓ Scanned core/autoload/scratch.el
✓ Scanned core/autoload/projects.el
✓ Scanned core/autoload/packages.el
✓ Scanned core/autoload/message.el
✓ Scanned core/autoload/menu.el
✓ Scanned core/autoload/memoize.el
✓ Scanned core/autoload/help.el
✓ Scanned core/autoload/files.el
✓ Scanned core/autoload/editor.el
✓ Scanned core/autoload/debug.el
✓ Scanned core/autoload/cache.el
✓ Scanned core/autoload/buffers.el
✓ Scanned modules/completion/company/autoload.el
⚠ Ignoring modules/completion/ivy/autoload/posframe.el
✓ Scanned modules/completion/ivy/autoload/ivy.el
✓ Scanned modules/completion/ivy/autoload/evil.el
✓ Scanned modules/config/default/autoload/evil.el
✓ Scanned modules/config/default/autoload/default.el
✓ Scanned modules/config/literate/autoload.el
✓ Scanned modules/emacs/electric/autoload.el
✓ Scanned modules/emacs/term/autoload.el
✓ Scanned modules/feature/eval/autoload/settings.el
✓ Scanned modules/feature/eval/autoload/repl.el
✓ Scanned modules/feature/eval/autoload/evil.el
✓ Scanned modules/feature/eval/autoload/eval.el
✓ Scanned modules/feature/evil/autoload/folds.el
✓ Scanned modules/feature/evil/autoload/files.el
✓ Scanned modules/feature/evil/autoload/evil.el
✓ Scanned modules/feature/evil/autoload/evil-mc.el
✓ Scanned modules/feature/file-templates/autoload.el
✓ Scanned modules/feature/lookup/autoload/lookup.el
✓ Scanned modules/feature/lookup/autoload/evil.el
✓ Scanned modules/feature/lookup/autoload/docsets.el
✓ Scanned modules/feature/lookup/autoload/devdocs.el
✓ Scanned modules/feature/snippets/autoload/snippets.el
✓ Scanned modules/feature/snippets/autoload/settings.el
✓ Scanned modules/feature/snippets/autoload/evil.el
✓ Scanned modules/feature/syntax-checker/autoload.el
✓ Scanned modules/feature/version-control/autoload.el
✓ Scanned modules/feature/workspaces/autoload/workspaces.el
✓ Scanned modules/feature/workspaces/autoload/evil.el
✓ Scanned modules/lang/cc/autoload.el
✓ Scanned modules/lang/emacs-lisp/autoload.el
✓ Scanned modules/lang/latex/autoload.el
✓ Scanned modules/lang/markdown/autoload.el
✓ Scanned modules/lang/org/autoload/tables.el
✓ Scanned modules/lang/org/autoload/org.el
✓ Scanned modules/lang/org/autoload/org-present.el
✓ Scanned modules/lang/org/autoload/org-link.el
✓ Scanned modules/lang/org/autoload/org-capture.el
✓ Scanned modules/lang/org/autoload/org-attach.el
⚠ Ignoring modules/lang/org/autoload/ipython.el
✓ Scanned modules/lang/python/autoload.el
⚠ Ignoring modules/lang/python/autoload/conda.el
✓ Scanned modules/lang/sh/autoload.el
✓ Scanned modules/lang/web/autoload/html.el
✓ Scanned modules/lang/web/autoload/evil.el
✓ Scanned modules/lang/web/autoload/css.el
✓ Scanned modules/tools/magit/autoload.el
✓ Scanned modules/tools/rotate-text/autoload.el
✓ Scanned modules/ui/doom-dashboard/autoload.el
✓ Scanned modules/ui/doom-modeline/autoload.el
✓ Scanned modules/ui/fci/autoload.el
✓ Scanned modules/ui/hl-todo/autoload.el
✓ Scanned modules/ui/nav-flash/autoload.el
✓ Scanned modules/ui/neotree/autoload.el
✓ Scanned modules/ui/popup/autoload/settings.el
✓ Scanned modules/ui/popup/autoload/popup.el
✓ Scanned modules/ui/unicode/autoload.el
✓ Scanned modules/ui/vi-tilde-fringe/autoload.el
✓ Expanded module autoload paths
✓ Generated autodefs
✓ Clean up autoloads

Deleted old autoloads.pkg.el
--------------------------------------------------

There was an unexpected error:
  Error with packages (doom-package-error)
  (:private . packages)
  (void-variable import)

Run the command again with the -d (or --debug) option to enable debug
mode and, hopefully, generate a stack trace. If you decide to file a bug
report, please include it!

Emacs outputs to standard error, so you’ll need to redirect stderr to
stdout to pipe this to a file or clipboard!

  e.g. doom -d install 2>&1 | clipboard-program

Finalmente, de make eu recebo este autoloads.pkg.el apressado aqui .

Vou passar para o servidor discord para continuar isso.

Talvez tente excluir .emacs.d e reinstalar o doom?

@ ar1a feito antes de cada novo relatório de bug .. :)

Obrigado pelo trabalho árduo!

Qual foi a solução?

@ ar1a Havia três problemas separados:

Wrong type argument: symbolp, (closure ((p autoloads :desc "Regenerates Doom's autoloads file.

This file tells Emacs where to find your module's autoloaded functions and
plugins." :body #0) t) (args) (doom-reload-autoloads nil (quote force)))

Que foi corrigido em 84756b3, causado por uma função de aviso que não tinha verificações de tipo.

There was an unexpected error:
  Error with packages (doom-package-error)
  (:private . packages)
  (void-variable import)

Causado por algumas instruções de importação do python que se infiltraram em seu ~/.doom.d/packages.el .

Unable to find theme file for ‘doom-one’

Causado por seus arquivos autoloads não sendo totalmente gerados ao executar bin/doom autoloads . Corrigir os outros dois problemas corrigiu este.

Causado por algumas instruções de importação do python que se infiltraram em seu ~ / .doom.d / packages.el.

muito real, haha. todos nós já estivemos lá.

Esta página foi útil?
0 / 5 - 0 avaliações

Questões relacionadas

ashiklom picture ashiklom  ·  3Comentários

idoo picture idoo  ·  3Comentários

pieterdd picture pieterdd  ·  3Comentários

governorgoat picture governorgoat  ·  3Comentários

driftcrow picture driftcrow  ·  3Comentários