運命を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
私も。
これは、ローカルのmelpaリポジトリが更新されていないため、ストレート(パッケージマネージャー)が新しいパッケージ(org-roamやorg-superstarなど)を見つけることができないという既知の問題です。
私は修正に取り組んでいますが、それまでの間、ローカルのmelpaリポジトリを手動で更新する必要があります。
編集:これは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
更新:c96303830835ed49b6803a5288379891d6ab7cfcのstraight.elのマスターブランチ(開発ではなく)に移動すると、問題が修正されました。
後世のために、そして混乱を避けるために、
シェルチェックで同じ問題が発生し、設定(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)"
更新:これらの手順を実行した後に機能しました
@bunnyer同じ問題がありました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:
@ harrisj @ VitalyAnkhお試しください
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
特に組織のスーパースターで誰かがこれに遭遇した場合、 init.el
(org +pretty)
を要求するようにスーパースターを変更しました(速度の問題のため)。
上記のパッケージ更新機能が機能しない場合は、このフラグを追加する必要があります。
最も参考になるコメント
これは、ローカルのmelpaリポジトリが更新されていないため、ストレート(パッケージマネージャー)が新しいパッケージ(org-roamやorg-superstarなど)を見つけることができないという既知の問題です。
私は修正に取り組んでいますが、それまでの間、ローカルのmelpaリポジトリを手動で更新する必要があります。編集:これはDoomの最近のコミットで修正されましたが、古いバージョンからのユーザーは、初めて
doom upgrade
を実行したときにまだこれに遭遇する可能性があるため、この修正は引き続き適用できます。