-
-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Emacs creates native-lisp directories unconditionally #247804
Comments
This isn't really possible with the current handling of NIX_PROFILES see this comment: #241518 (comment) |
👍 yes, I hope it didn't sound like I feel antagonistic to your PR, I really hope that it lands because I do enjoy a clean |
I cannot reproduce it. Steps:
BTW, the value of |
The bug I mention only happens in Emacs 29. I can reproduce your issue in Emacs 28. #251529 fixes this issue. |
I'm sorry, I should have done more testing to isolate the issue. I tested out which of my packages is the culprit and the issue goes away if i remove this from my (use-package ido-completing-read+
:config
(ido-ubiquitous-mode)) Maybe it has something to do with the |
Describe the bug
Emacs will try to create a directory structure like
share/emacs/native-lisp/29.1-ef7c54ae/
for every path in$NIX_PROFILES
. This seems to be because of the code inpkgs/applications/editors/emacs/site-start.el
.On NixOS, the
NIX_PROFILES
environment variable may contain invalidpaths, for example
~/.nix-profile
may not exist. This causes Emacs tocreate the full directory structure for that path. This also causes
issues if Nix afterwards wants to create
~/.nix-profile
as a symlinkbut it already exists as a directory.
Steps To Reproduce
Expected behavior
The code in
site-start.el
should filterNIX_PROFILES
down to onlypaths that already exist.
Additional context
Ideally,
NIX_PROFILES
would only include paths that exist in the firstplace, but this is not the case. #241518 also seems related.
Notify maintainers
@AndersonTorres
@adisbladis
@Atemu
@jwiegley
@lovek323
@matthewbauer
Metadata
"x86_64-linux"
Linux 6.4.8, NixOS, 23.11 (Tapir), 23.11.20230807.5a8e924
yes
yes
nix-env (Nix) 2.17.0
/etc/nix/inputs/nixpkgs
The text was updated successfully, but these errors were encountered: