Quick Summary:
Trying to install a package in elm while in a folder that was recently deleted throws an unhelpful error.
SSCCE
Run in an elm init folder
Elm: 0.19.1
Browser: N/A
Operating System: Linux Pop!_OS 21.10
Additional Details
Steps to reproduce:
Create a new elm project
cd into the folder
in a separate terminal delete the folder containing the project
Run elm install <any package>
Then the user will receive the generic I ran into something that bypassed the normal error reporting process! error with the line getCurrentDirectory:getWorkingDirectory: does not exist (Current working directory no longer exists).
This will occur even if the user then creates a project with the same name in the same location.
This error isn't as helpful as the elm standard. Something like
I can't seem to find this folder. Was it recently deleted?
Try leaving this folder and changing directories back into this, or restart your terminal
Would be awesome and more than suffice for this rather extreme edge case.
Quick Summary: Trying to install a package in elm while in a folder that was recently deleted throws an unhelpful error.
SSCCE
Run in an
elm init
folderPop!_OS 21.10
Additional Details
Steps to reproduce:
cd
into the folderelm install <any package>
Then the user will receive the genericI ran into something that bypassed the normal error reporting process!
error with the linegetCurrentDirectory:getWorkingDirectory: does not exist (Current working directory no longer exists)
.This will occur even if the user then creates a project with the same name in the same location.
This error isn't as helpful as the elm standard. Something like
Would be awesome and more than suffice for this rather extreme edge case.