compiler
compiler copied to clipboard
Failed to find working directory
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
-
cdinto the folder - in a separate terminal delete the folder containing the project
- Run
elm 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
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.
Thanks for reporting this! To set expectations:
- Issues are reviewed in batches, so it can take some time to get a response.
- Ask questions in a community forum. You will get an answer quicker that way!
- If you experience something similar, open a new issue. We like duplicates.
Finally, please be patient with the core team. They are trying their best with limited resources.