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

Fixed a Helix crash on launch when the install directory cannot be canonicalized (the ol' .unwrap_or) #12879

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GoldenGuy1000
Copy link

@GoldenGuy1000 GoldenGuy1000 commented Feb 15, 2025

I admittedly have a weird situation in that I installed Helix on a RAM disk (RAM being treated as a mounted filesystem)
Regardless, Helix crashes immediately on startup because of this canonicalization of the path which fails in my situation.

Let me know if I should write this differently, I've never contributed before so don't know what's up. There are several other file system related .unwrap()s in this same function which returns "A list of runtime directories from highest to lowest priority" that might also want to be examined or some error handling added (even just something like a .expect()).

At least partially fixes #12880

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

Successfully merging this pull request may close these issues.

Running Helix from a directory that cannot be canonicalized does not work
1 participant