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

problem with savehist-mode causing doom-first-input-hook to throw an error #7817

Open
4 tasks done
Padswynn opened this issue Apr 13, 2024 · 2 comments
Open
4 tasks done
Labels
invalid Unactionable, unrelated, inappropriate, or a pilot error

Comments

@Padswynn
Copy link

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.

  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.

  • The issue can be reproduced on the latest available commit of Doom.

  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

When I start doom emacs, the doom-first-input-hook should succeed, enabling things such as which-key-mode and savehist-mode

Current behavior

Instead, I get an error caused by the savehist-mode hook:

⛔ Error (doom-first-input-hook): Error running hook "savehist-mode" because: (user-error Local variables entry is missing the prefix)

Possibly related to #3535 which went stale?

Steps to reproduce

  1. Open emacs
  2. press any prefix key
  3. Error pops up

System Information

https://pastebin.com/7V8SrDKm

@Padswynn Padswynn added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Apr 13, 2024
@hlissner
Copy link
Member

hlissner commented Apr 13, 2024

I can't reproduce this. I suspect savehist took in a faulty value in ~/.config/emacs/.local/cache/savehist. See if the error persists if you move the file to another location. If it goes away, it'd be a good idea to look through the file to find the culprit. I'm hesitant to ask you to post it, because it may contain sensitive information (mainly history from your clipboard and various minibuffer commands, like M-x).

@Padswynn
Copy link
Author

I can't reproduce this. I suspect savehist took in a faulty value in ~/.config/emacs/.local/cache/savehist. See if the error persists if you move the file to another location. If it goes away, it'd be a good idea to look through the file to find the culprit. I'm hesitant to ask you to post it, because it may contain sensitive information (mainly history from your clipboard and various minibuffer commands, like M-x).

Yea that fixed it....
Looking through the file, not sure what I should look for to find the culprit?
In any case, my problem is solved — appreciate the help!

@hlissner hlissner added invalid Unactionable, unrelated, inappropriate, or a pilot error and removed is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Unactionable, unrelated, inappropriate, or a pilot error
Projects
None yet
Development

No branches or pull requests

2 participants