emacs-openai / chatgpt

Use ChatGPT inside Emacs
GNU General Public License v3.0
193 stars 21 forks source link

The use-package based installation doesn't work. #12

Closed hongyi-zhao closed 1 year ago

hongyi-zhao commented 1 year ago

I try to use the following command to install this package: (use-package chatgpt :ensure t).

But the following error is encountered:

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

error: Could not find package chatgpt. Updating recipe repositories: (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.

See https://github.com/radian-software/straight.el/issues/1084#issuecomment-1544133412 for the related discussion.

jcs090218 commented 1 year ago

You might have to tweak the package.el to install this package, see https://github.com/jcs-emacs/jcs-elpa#-how-to-use.

Does the straight.el maintain its own elpa list? 🤔

hongyi-zhao commented 1 year ago

Does the straight.el maintain its own elpa list? thinking

https://github.com/radian-software/straight.el/blob/master/bootstrap.el

See here for the related comments.

jcs090218 commented 1 year ago

Oh, I think I understand it.

You should use :straight keyword instead:

(use-package chatgpt
  :straight (chatgpt :type git :host github :repo "emacs-openai/chatgpt"))
jcs090218 commented 1 year ago

Closing this due to no new activities. Feel free to open a new one if the issue persist! ;)