thomasschafer / scooter

Interactive find and replace in the terminal
MIT License
396 stars 9 forks source link

Windows: `fatal: Unable to read current working directory: No such file or directory` #30

Open cool-RR opened 1 week ago

cool-RR commented 1 week ago

After running Scooter on Windows/zsh I get this error:

➜  Desktop scooter
fatal: Unable to read current working directory: No such file or directory

This happens regardless of whether I finish the replace action or abandon it by pressing Esc.

I tried this on Windows/bash and got a different error:

Administrator@Turing MSYS ~/Dropbox/Desktop
$ scooter
thread 'tokio-runtime-worker' panicked at src\event.rs:44:67:
called `Result::unwrap()` on an `Err` value: SendError { .. }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thomasschafer commented 1 week ago

Thanks for reporting this - are you able to run both examples with RUST_BACKTRACE=1 i.e.

RUST_BACKTRACE=1 scooter

and let me know what the results are? Also, do these issues happen every time or only under certain conditions? At what point exactly do these issues occur, it sounds like the first is at startup and the second is when replacing?

cool-RR commented 1 week ago

I am now unable to reproduce this bug, with or without the flag. If you want to close the issue that's okay with me.

thomasschafer commented 1 week ago

I'm happy to leave it open so that if others run in to the same issue they can post here, and of course if you do run in to it again let me know! In the meantime I'll try and improve error handling so that we have a better idea of what might be going on if it does reoccur