-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Helix Fails to open .bash_history when symlinked to some other dir over /nix/store #12100
Comments
I have added
But still helix cant open it. Helix can open regular PDF files so I do not think the content of the file is the issue but somehow symlinking it over |
The issue is exclusive to the |
I could imagine tree-sitter-bash might cause a hang but not much else. I also have symlinks for things in my |
No hangs. I also deleted everything inside I think I have isolated the problem. It only hangs when it is symlinked to the location pointed by the $HISTFILE. If I change the $HISTFILE helix can open the previous PS: Thank you for the quick response. I opened the issue just to document it and in-case anyone else encounters it. Since the workaround is just renaming the file modifying it and renaming it back it is not really a big problem for me. |
If you're willing to get your hands dirty with building from source it would be interesting to see a run of |
Steps I have followed:
|
I have noticed that some function names were
|
I have also tried to get a flamegraph after helix hangs using:
|
Summary
This only happens on some files that is symlinked over
/nix/store
. Helix cant open the file. Following hangs:hx .bash_history
:o .bash_history
File permissions:
Reproduction Steps
config.lib.file.mkOutOfStoreSymlink
from nix/home/USR/file(original file) -> /nix/store/hash/file -> /home/USR/somedir/file(the final symlink)
Helix log
No log entry is generated.
Platform
Linux
Terminal Emulator
kitty 0.37.0 created by Kovid Goyal
Installation Method
nixpkgs
Helix Version
helix 24.7 (101a74b)
The text was updated successfully, but these errors were encountered: