Doom-emacs: تطوير نوع من كسر تماما.

تم إنشاؤها على ١٩ يونيو ٢٠١٨  ·  28تعليقات  ·  مصدر: hlissner/doom-emacs

كل الالتزامات من 03022d09f9e47e6786003a728b020fd59dd30395 فصاعدًا تحطم كل شيء.
آخر التزام عمل هو 648f4bb5859536dfe167542b07aff7bc4d4c447e

كسر هو في الأساس بسبب

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

ال 28 كومينتر

هل يمكنك التفضل بتوسيع موضوع "نوع من الانهيار التام"؟ سيكون موضع تقدير كبير رسائل الخطأ و backtraces. ربما رابط إلى التكوين الخاص بك ، إذا كان في مكان ما. كانت هناك العديد من التغييرات في الآونة الأخيرة.

إذا قمت بتشغيل emacs في وضع التصحيح باستخدام emacs --debug-init ، فسوف ينتج عنه المزيد من رسائل الخطأ المفيدة.

آه ، لم أرَ تعديلك. يرجى تشغيل bin/doom refresh (أو make ) ومعرفة ما إذا كان ذلك سيؤدي إلى حل مشكلتك.

hlissner في آخر التزام (ae6c3cacf2cc04b1fdaddfd941a142a94550b8bb) ما زلت أتلقى نفس الخطأ:

./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)

هذا لا يزال يعطيني:

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

تكويني الحالي هنا ولكنه يعمل من الالتزام قبل إعادة البناء ، كما ذكرنا.

لا شيء في التكوين الخاص بك يبدو خاطئًا ، فهل يمكنك تجربة bin/doom autoloads بدلاً من ذلك؟ سيؤدي هذا إلى فرض إعادة إنشاء ملفات التحميل التلقائي ، والتي عادةً ما يتم إلقاء اللوم عليها عندما يتعذر على Emacs العثور على حزمة مثبتة.

هذا يعطي خطأ لاحظت من هذا الالتزام فصاعدا:

./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

الخطأ إذن هو:

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.

جرب bin/doom --debug autoloads وتأكد من ظهور رسالة خطأ مفيدة أكثر.

ينتج عن ذلك (اقتطاع الكثير من رسائل الفحص الناجحة):

✓ 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)))

غريب جدا. هل يمكن أن تريني ناتج bin/doom info .

نعم:

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 موجود بالنسبة لك؟ إذا لم يحدث ذلك ، فالرجاء التحديث إلى أحدث إصدار من Doom (تم دفعه قبل دقيقة) واستدعاء الخطأ مرة أخرى وسيحفظ Doom ملف التحميل التلقائي الخاطئ في ~/.emacs.d/.local/autoloads.el.bak .

الرجاء إرسال هذا الملف إلي (على سبيل المثال عبر pastebin).

لدي ~/.emacs.d/.local/autoloads.el مع أحدث Doom ... ومع ذلك لا يمكنني إنتاج ملف 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

لا يزال تشغيل emacs يحصل علي:

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

في إعداد Doom الجديد (إزالة .emacs.d تمامًا) أحصل على:

$ 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

في الأساس نفس المشكلة ولكن عند تشغيل emacs أحصل الآن على:

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")

لا يوجد حتى الآن ~/.emacs.d/.local/autoloads.el.bak مع التثبيت الجديد أيضًا ..

الخطأ عند محاولة تثبيت الحزم مرة أخرى:

$ 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

يبدو الأمر وكأن الكثير من الأشياء تتعطل بطريقة ما:

$ /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)))

عذرا ، كان هناك تراجع. لقد ضغطت للتو على إصلاح الخطأ stringp . يرجى التحديث والمحاولة مرة أخرى.

لا تزال نفس الأخطاء مع أحدث الالتزام ..

$ 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)))

إيماكس يعطي:

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.

أخيرًا ، bin/doom -d refresh يعطي:

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

أيضًا ، hlissner ، لا تعتذر! أنا سعيد لأنك تأخذ الوقت الكافي لمساعدتي في إعادة هذا العمل.

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)))

هذا خطأ غريب جدا. لا يمكنني إعادة إنتاجه ، لكنني واثق من أنه السبب الجذري لكل هذا. هل يمكنك لصق ملف autoloads.pkg.el (أو autoloads.pkg.el.bak

هذا الملف مسؤول عن تعيين load-path و custom-theme-load-path (من بين أشياء أخرى) ، لذلك إذا فشل في الإنشاء / التشغيل ، فمن الطبيعي أن Emacs لن يتمكن من العثور على السمة.

بالتأكيد ، تم تحميله هنا على hastebin .

هل يمكنك تجربة هذا التغيير في core / core-dispatcher.el (السطر 82) في الماكرو 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
 ;;

ثم حاول bin/doom autoloads مرة أخرى لترى ما إذا كان سيؤدي إلى حل مشكلتك؟

نعم ، لقد جربتها ، لكن لا يوجد تغيير. لا يزال يحصل

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

ومع ذلك ، لا أحصل الآن على .local/autoloads.pkg.el على الإطلاق ..

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

هل أنت قادر على إنتاج هذا الخطأ Symbol’s value as variable is void: import تحديدًا عند تشغيل doom --debug autoloads . سيكون تتبع المكدس لذلك مساعدة هائلة.

إذا لم يكن كذلك ، فتحقق مما إذا كان autoloads.pkg.el موجودًا. إذا لم يحدث ذلك ، فتحقق مما إذا كان autoloads.pkg.el.bak يفعل ذلك. إذا كان الأمر كذلك ، تسرع في ذلك الملف لي.

أيضًا ، إذا لم تكن على علم ، فلدينا خادم Discord . ربما يكون من الأفضل أن نواصل هذه العملية في الوقت الفعلي.

مع doom --debug autoloads أحصل على:

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)))

كما أنني لم أعد أحصل على أي ملف autoloads.pkg.el على الإطلاق ، أو ملف .bak .

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

يمكنني الحصول على autoloads.pkg.el بتشغيل make .

هذا الملف موجود هنا .

بعد الكثير من البحث ، ركزت أخيرًا على سبب خطأ إغلاق الرمز في 84756b3. يرجى التحديث ، ثم تشغيل bin/doom refresh وإخباري إذا أدى ذلك إلى حل مشكلتك!

اخطاء جديدة ..

عندما يبدأ emacs:

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.

من 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

من الأمر المقترح:

 ./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

أخيرًا ، من make حصلت على هذا autoloads.pkg.el سريعًا هنا .

سأنتقل إلى خادم الخلاف لمواصلة هذا.

ربما حاول حذف .emacs.d وإعادة تثبيت الموت؟

تم إجراء @ ar1a قبل كل تقرير خطأ جديد .. :)

شكرا على العمل الشاق!

ماذا كان الحل؟

@ ar1a كانت هناك ثلاث مشاكل منفصلة:

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)))

والتي تم إصلاحها في 84756b3 ، بسبب وظيفة النصيحة التي تفتقر إلى فحوصات النوع.

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

ناتج عن بعض عبارات استيراد Python التي تسللت إلى ~/.doom.d/packages.el .

Unable to find theme file for ‘doom-one’

بسبب عدم إنشاء ملفات التحميل التلقائي بالكامل عند تشغيل bin/doom autoloads . إصلاح المسألتين الأخريين تم إصلاح هذه المشكلة.

ناتج عن بعض عبارات استيراد Python التي تسللت إلى ملفه ~ / .doom.d /pack.el.

حقيقي جدا ، هاها. كلنا كنا هناك.

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات

القضايا ذات الصلة

idoo picture idoo  ·  3تعليقات

luisenrike picture luisenrike  ·  3تعليقات

gilbertw1 picture gilbertw1  ·  3تعليقات

governorgoat picture governorgoat  ·  3تعليقات

pieterdd picture pieterdd  ·  3تعليقات