corgi-emacs / corgi

Unbundled Emacs configuration aimed at Clojure developers
180 stars 18 forks source link

Corgi is not initialising correctly, error: could not find package string-edit #32

Open ChetanVashisht opened 1 year ago

ChetanVashisht commented 1 year ago

I am using a mac book pro 2015 with a emacs-plus@28 installation. I started with a fresh install of emacs as described in the corgi repository. I copied the sample config files to a clean ~/.emacs.d folder. When emacs starts up, I get the following error:

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

error: Could not find package string-edit. Updating recipe repositories: (corgi-packages org-elpa melpa gnu-elpa-mirror nongnu-elpa el-get emacsmirror-mirror) with ‘straight-pull-recipe-repositories’ may fix this

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. Disable showing Disable logging
  1. Running the M-x straight-pull-recipe-repositories doesn't fix the issue
  2. Changing the straight.el url in bootstrap.el doesn't fix the issue
plexus commented 1 year ago

It seems the package has been renamed, see upstream issue https://github.com/magnars/string-edit.el/issues/19

On Mon, Dec 12, 2022, 07:59 Chetan Vashisht @.***> wrote:

I am using a mac book pro 2015 with a @.*** installation. I started with a fresh install of emacs as described in the corgi repository. I copied the sample config files to a clean ~/.emacs.d folder. When emacs starts up, I get the following error:

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

error: Could not find package string-edit. Updating recipe repositories: (corgi-packages org-elpa melpa gnu-elpa-mirror nongnu-elpa el-get emacsmirror-mirror) with ‘straight-pull-recipe-repositories’ may fix this

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. Disable showing Disable logging

  1. Running the M-x straight-pull-recipe-repositories doesn't fix the issue
  2. Changing the straight.el url in bootstrap.el https://github.com/corgi-emacs/corgi/issues/26 doesn't fix the issue

— Reply to this email directly, view it on GitHub https://github.com/corgi-emacs/corgi/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAH3VELZQ42KLSIGAEIGTTWM3EN5ANCNFSM6AAAAAAS3R5Y4M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ahuggins0006 commented 1 year ago

I am using Ubuntu Linux with emacs 27.1. I was able to resolve the error mentioned by editing the corgi-editor.el file located in the .emacs.d/straight/repos/corgi-packages/corgit-editor directory. I changed line 4. Specifically,(string-edit) to (string-edit-at-point) and the error mentioned didn't reoccur on restart of emacs.

The diff for reference:

;; Filename: corgi-editor.el

-;; Package-Requires: ((use-package) (aggressive-indent) (avy) (company) (counsel) (diminish) (dumb-jump) (evil) (evil-cleverparens) (evil-collection) (evil-surround) (expand-region) (goto-last-change) (ivy) (ivy-prescient) (projectile) (rainbow-delimiters) (smartparens) (smex) (string-edit) (swiper) (undo-fu) (which-key) (winum) (xclip))

+;; Package-Requires: ((use-package) (aggressive-indent) (avy) (company) (counsel) (diminish) (dumb-jump) (evil) (evil-cleverparens) (evil-collection) (evil-surround) (expand-region) (goto-last-change) (ivy) (ivy-prescient) (projectile) (rainbow-delimiters) (smartparens) (smex) (string-edit-at-point) (swiper) (undo-fu) (which-key) (winum) (xclip)) ;;

plexus commented 1 year ago

That and the versions file would need to be updated. PR would be much appreciated!

ChetanVashisht commented 1 year ago

https://github.com/corgi-emacs/corgi-packages/pull/12

Please check this @plexus

plexus commented 1 year ago

What should I check exactly? Doesn't that PR fix this issue?

kommen commented 6 months ago

https://github.com/corgi-emacs/corgi-packages/pull/12 fixed this for me