-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
spacemacs-cache-directory is ignored in dotspacemacs/*-init #12127
Comments
This might be because the default location of the cache directory gets set in |
So there's another variable in addition to spacemacs-cache-directory which governs the location, sets differently and has higher priority? That's highly confusing and seems like a bug to me - it's better to have single source of truth for this kind of stuff. |
What I mean to say is that
These things all happen before (presumably) user init configuration can happen in Presumably, then, if you wanted to do something else via In my fork (on the Given the way that spacemacs seems to be organized, I'm not sure there would actually be a better way to set the cache directory for user preference without messiness... I guess that there could be a higher level setting exposed in |
I wonder if XDG support in upcoming Emacs 27 could help to resolve this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
The issue is still valid. |
@zabbal Does this problem exist on develop branch? |
@lebensterben -- I believe it does, yes; my remarks above were all made in the context of using the |
What's the point of reporting issues if they'll be closed by some bot regardless of the comments anyway? |
This one fell through the cracks, and we didn't remove the stale label in time. A recent commit seems to indicate that this might be handled automatically in the future: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Anyway, @zabbal, you're welcome to let us know if the issue still stands. |
We will need to reorganise the loading process a bit to make this possible. Right now the cache directory is set according to your user-emacs-directory. I assume the most elegant way would be to add a new var to the dotfile but this is read to late right now. Lets see if I can get up with something. |
Description
spacemacs-cache-directory variable is ignored when set in dotspacemacs/user-init or dotspacemacs/init
After closing Spacemacs the .cacheis created in the old location with auto-save subdirectory and spacemacs-buffer.el files
If that's the expected behavior and it should be set someplace else than it would be great to get this documented.
Reproduction guide 🪲
Observed behaviour: 👀 💔
.cache is re-created at old location
Expected behaviour: ❤️ 😄
The value of spacemacs-cache-directory should be used.
System Info 💻
The text was updated successfully, but these errors were encountered: