compiler icon indicating copy to clipboard operation
compiler copied to clipboard

Failed to find working directory

Open 13r0ck opened this issue 4 years ago • 1 comments

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:

  1. Create a new elm project
  2. cd into the folder
  3. in a separate terminal delete the folder containing the project
  4. 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.

13r0ck avatar Dec 16 '21 02:12 13r0ck

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.

github-actions[bot] avatar Dec 16 '21 02:12 github-actions[bot]