Open ghyatzo opened 2 years ago
Symlinking my .zshrc
into the home folder fixed the crash and the installation went though. Still, I believe that using ZDOTDIR
is a better approach as it allows the script to better adapt to the environment it is running in.
This also happens when trying to uninstall, and again it happens at the step: Removing PATH modifications in startup scripts.
when from the configuration choosen during the installation it should know no modifications were made to begin with.
The XDG base directories are a standard for unix systems that could be a good idea to implement to make linux and mac os installations more robust. for example, the juliaupself.json
could find home in the XDG_DATA_HOME
directory if set.
Hello, I am on an M1 Mac. I encountered this error report:
The installer configuration which I selected was the following:
Most notably, I requested not to automatically modify the .zshrc file to add julia to the PATH (I rather do it by hand). The culprit seems to be
I don't know rust enough, but since I requested no config file modifications, the variable
paths
should be empty, but we still try to iterate through it, without checks. Maybe rusts handles this on his own and the issue is further up?Actually, I notice also that the function
find_shell_scripts_to_be_modified()
assumes that the.zshrc
file is in the home folder. But i keep my.zshrc
file in the~/.config/zsh
folder. This assumption most likely caused the crash.If that is the case a possible fix could be: Instead of defaulting to the home directory, use the
$ZDOTDIR
env variable (which I use to set the dot dir for zsh to the previously mentioned non-default location). Quoting the zsh man pages shipped with the OS:P.S.: I found rather strange that the code went trough these routines even after electing to not have any startup file modified.