-
Notifications
You must be signed in to change notification settings - Fork 662
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
Permission Denied Error Due to Unset ELM_HOME
Environment Variable in Stuff
Module
#2315
Comments
Thanks for reporting this! To set expectations:
Finally, please be patient with the core team. They are trying their best with limited resources. |
Is this a request for a better error message in this case? What is an example of an environment where the process lacks permission? |
Maybe this is more a problem of the environment. The name getAppUserDataDirectory implies a location that is writable by the current user. If it is giving the location of the elm executable then that's a problem - I wouldn't expect the executable location to be writable in most distros. |
Sorry that was my Interpretation of the |
Description
When running the Elm compiler without the
ELM_HOME
environment variable set, it defaults to using the the location of elm im assuming for storing data. In certain environments, the process may lack the necessary permissions to write to this directory, resulting in aPermission Denied
error.This issue stems from the
getElmHome
function within theStuff
module in the Elm compiler source code. Below is the relevant snippet from theStuff
module:In the absence of the
ELM_HOME
environment variable,getElmHome
defaults to usingAppUserDataDirectory
.Steps to Reproduce
ELM_HOME
environment variable is not set.AppUserDataDirectory
is not writable by the process.Permission Denied
error.The text was updated successfully, but these errors were encountered: