Doom-emacs: تعذر العثور على الحزمة X في مستودعات الوصفات

تم إنشاؤها على ٣١ مارس ٢٠٢٠  ·  12تعليقات  ·  مصدر: hlissner/doom-emacs

بعد تحديث doom بـ doom upgrade ، أو حزمه بـ doom update ، تظهر لي أخطاء مثل هذه:

Package error: (error Could not find package org-roam in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror))
Package error: (error Could not find package company-org-roam in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror))

و / أو أخطاء مثل هذه:

Cannot open load file: No such file or directory, org-roam
Cannot open load file: No such file or directory, org-superstar
bug common packages straight resolved

التعليق الأكثر فائدة

إنها مشكلة معروفة حيث لا يتم تحديث ملف melpa المحلي الخاص بك ، لذلك لا يمكن مباشرة (مدير الحزم لدينا) العثور على حزم جديدة (مثل org-roam أو org-superstar).

أنا أعمل على إصلاح ، ولكن في هذه الأثناء ستحتاج إلى تحديث melpa repo المحلي يدويًا:

تحرير: تم إصلاح هذا في الالتزامات الأخيرة لـ Doom ، ولكن قد يواجه المستخدمون القادمون من إصدار أقدم هذا في المرة الأولى التي يقومون فيها بتشغيل doom upgrade ، لذلك لا يزال هذا الإصلاح قابلاً للتطبيق عليك:

# Update MELPA
cd ~/.emacs.d/.local/straight/repos/melpa
git pull

# Clear straight's cache
rm -f ~/.emacs.d/.local/straight/build-cache.el
doom sync

ال 12 كومينتر

أنا أيضا.

إنها مشكلة معروفة حيث لا يتم تحديث ملف melpa المحلي الخاص بك ، لذلك لا يمكن مباشرة (مدير الحزم لدينا) العثور على حزم جديدة (مثل org-roam أو org-superstar).

أنا أعمل على إصلاح ، ولكن في هذه الأثناء ستحتاج إلى تحديث melpa repo المحلي يدويًا:

تحرير: تم إصلاح هذا في الالتزامات الأخيرة لـ Doom ، ولكن قد يواجه المستخدمون القادمون من إصدار أقدم هذا في المرة الأولى التي يقومون فيها بتشغيل doom upgrade ، لذلك لا يزال هذا الإصلاح قابلاً للتطبيق عليك:

# Update MELPA
cd ~/.emacs.d/.local/straight/repos/melpa
git pull

# Clear straight's cache
rm -f ~/.emacs.d/.local/straight/build-cache.el
doom sync

لقد واجهت نفس المشكلة ، وفشل الحل البديل الموصى به كما يلي:

$ doom sync
Building straight...
Building straight...done
Building use-package...
Building use-package → Building bind-key...
Building use-package → Building bind-key...done
Building use-package...
Building use-package...done
> Synchronizing your config with Doom Emacs...
  > Regenerating envvars file at "~/.emacs.d/.local/env"
  - Scraping shell environment
    - Ignoring HOME=/Users/jcf
    - Ignoring GPG_TTY=/dev/ttys006
    - Ignoring PWD=/Users/jcf/.emacs.d/.local/straight/repos/melpa
    - Ignoring __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x2
    - Ignoring SSH_AUTH_SOCK=/Users/jcf/.gnupg/S.gpg-agent.ssh
    - Ignoring TERM=xterm-256color
    ✓ Successfully generated "~/.emacs.d/.local/env"
  > (Re)generating core autoloads...
    > Generating core autoloads...
    > Byte-compiling core autoloads file...
    ✓ Generated .local/autoloads.elc
  > Installing packages...
    → Cloning auto-minor-mode...
x There was an unexpected error:
  Type: doom-package-error
  Message:
    Error with packages
  Data:
    "auto-minor-mode"
    (error "Failed to run \"git\"; see buffer *straight-process*")
    "fatal: destination path '/Users/jcf/.emacs.d/.local/straight/repos/auto-minor-mode' already exists and is not an empty directory.
    "
  Straight output:
    fatal: destination path '/Users/jcf/.emacs.d/.local/straight/repos/auto-minor-mode' already exists and is not an empty directory.


Run the command again with the -d (or --debug) switch to enable debug
mode and (hopefully) generate a backtrace from this error:

  doom -d sync

If you file a bug report, please include it!
$ ls -alh /Users/jcf/.emacs.d/.local/straight/repos/auto-minor-mode
ls: /Users/jcf/.emacs.d/.local/straight/repos/auto-minor-mode: No such file or directory

تحديث : الانتقال إلى الفرع الرئيسي (على عكس التطوير) من Straight.el في c96303830835ed49b6803a5288379891d6ab7cfc قد أصلح الأشياء بالنسبة لي.

للأجيال القادمة ولتجنب الالتباس ، فإن مشكلةjcf لا علاقة لها بهذه المشكلة (انظر # 2937 ، والتي تم حلها بشكل منفصل).

واجهت نفس المشكلة في shellcheck التي اكتشفت أنها كانت موجودة أيضًا في ملف التكوين (package.el) الخاص بي ، وأزلته وذهبت الرسالة الآن ...

اعتبارًا من 0e851ac bin/doom سيتم تحديث مستودعات الوصفات الخاصة بك قبل تثبيت / تحديث الحزم ، والتي يجب أن تحل هذه المشكلة. يُرجى إعلامي إذا لم يكن الأمر كذلك وسأعيد فتحه. شكرا للفت إنتباهي!

كان لديه نفس المشكلة. فقط حاولت التحديث / التحديث وحصلت على هذا

Type: error
  Message:
    error
  Data:
    "Could not find package org-superstar in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror)"

تحديث: عملت بعد اتباع هذه الخطوات

kawaiier لديه نفس الإصدار org-superstar . تحديث melpa يدويًا كما هو مذكور أعلاه يعمل على إصلاح المشكلة

لقد أجريت الإصلاح كما هو مذكور أعلاه ، لكنه دائمًا ما ينكسر مرة أخرى في المرة التالية التي أقوم فيها بتشغيل doom upgrade

x There was an unexpected error:ate...
  Type: doom-package-error
  Message:
    Error with packages
  Data:
    "org-superstar"
    (error "Failed to run \"git\"; see buffer *straight-process*")
  Straight output:
    fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
    HEAD

harrisj لدي نفس المشكلة: sweat_smile:

تضمين التغريدة

git -C ~/.emacs.d pull
git -C ~/.emacs.d/.local/straight/repos/melpa pull
rm -rf ~/.emacs.d/.local/straight/repos/org-superstar
rm -f ~/.emacs.d/.local/straight/build-cache.el
doom sync

في حالة حدوث أي شخص لهذا النجم النجمي على وجه الخصوص ، قام ليطلب (org +pretty) في init.el منذ بضعة أيام (بسبب مشاكل السرعة).

إذا لم تعمل عناصر تحديث الحزمة أعلاه ، فقد تحتاج إلى إضافة هذه العلامة.

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