Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there are some bugs in package "helpful" #140

Closed
pipiTan opened this issue Apr 27, 2022 · 8 comments
Closed

there are some bugs in package "helpful" #140

pipiTan opened this issue Apr 27, 2022 · 8 comments

Comments

@pipiTan
Copy link

pipiTan commented Apr 27, 2022

C-h f will throw error helpful--autoloaded-p: wrong number of arguments.
C-h v : elisp-refs-read-all buffer-forms: unexpected error whilst reading /usr/share/emacs/........
but I perform describe-function, descirbe-variable(not "helpful" provide) via M-x, they work well.

@jeffbowman
Copy link
Contributor

Thanks for the report, this likely has more to do with the helpful package, but can you please post the error message you are seeing? Emacs usually puts this in a stack trace, if you could please post that here for the errors you are seeing, it will be easier for us to help you.

@pipiTan
Copy link
Author

pipiTan commented Apr 27, 2022

Thanks for the report, this likely has more to do with the helpful package, but can you please post the error message you are seeing? Emacs usually puts this in a stack trace, if you could please post that here for the errors you are seeing, it will be easier for us to help you.

Thanks for reply :)
The first is C-h f, the second is C-h v.
function
variable
0

@jeffbowman
Copy link
Contributor

Hmm... not much to go on. What version of Emacs are you using, and what version of Helpful do you have installed?

@pipiTan
Copy link
Author

pipiTan commented Apr 28, 2022

Hmm... not much to go on. What version of Emacs are you using, and what version of Helpful do you have installed?

helpful version is 0.18
截屏图片

@jeffbowman
Copy link
Contributor

Thanks! The answer is your version of Emacs has a breaking change in one of the dependencies used by helpful. There is a fix for the helpful package, see this pull request However, this fix is not in helpful 0.18. This is not a surprise as Emacs 29.0.50 is the development version of Emacs. so I would not expect the helpful package maintainer to tag their package with a new version as a release in this case.

You can use the MELPA version of helpful by following steps from either of these processes:

  • The first way:
  1. In your early-config.el file add (add-to-list 'package-pinned-packages '(helpful . "melpa")
  2. Stop Emacs (including shutting down the daemon if you use it).
  3. Delete the helpful-0.18 folder from your installed packages (usually found in your user-emacs-directory/elpa folder).
  4. Start Emacs, helpful should be installed from MELPA
  • The second way:
  1. run M-x list-packages in Emacs
  2. find the installed helpful package and press the RET key to open information about it.
  3. Look for the text "Other versions", one of the other versions listed should be from MELPA.
  4. Tab until the point is on the MELPA version and press the RET key
  5. At the top there will be an Install button, you can click on this with your mouse or move the point there and press RET to install that version.
  6. You will now have both versions installed, if you wish to delete the 0.18 version, go back to the list of packages, find that version in the list, press the 'D' key to mark it for deletion and then the 'X' to delete that version.

This should resolve your problem. You may need to restart Emacs.

Does this help you?

@pipiTan
Copy link
Author

pipiTan commented Apr 29, 2022

@jeffbowman

Oh my god!! It works. Appreciate you:)

@jeffbowman
Copy link
Contributor

Glad that helped!! May we close this issue as resolved?

@pipiTan
Copy link
Author

pipiTan commented Apr 29, 2022

Sure :)

Glad that helped!! May we close this issue as resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants