Skip to content
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

Random messages in terminal: mv: cannot move...: No such file or directory #276

Open
protist opened this issue Nov 20, 2019 · 4 comments
Open

Comments

@protist
Copy link

protist commented Nov 20, 2019

Occasionally, I randomly get the following message on my terminal:

mv: cannot move '/home/protist/.z.24161' to '/home/protist/.z': No such file or directory

This doesn't necessarily occur after cd-ing; most recently it occurred after ls. There is a file at ~/.z, with user write/read permissions, and recently modified, presumably by z.

I'm not sure if relevant, but I can also see numerous other files with a similar name.

$ ls -al ~/.z{,.*}
-rw-r--r-- 1 protist protist    33436 Nov 20 19:32 .z
-rw-r--r-- 1 protist protist    19561 Aug 15  2017 .z.10923
-rw-r--r-- 1 protist protist        0 Feb  8  2018 .z.11675
-rw-r--r-- 1 protist protist    19561 Aug 15  2017 .z.16124
-rw-r--r-- 1 protist protist    25188 Feb 12  2018 .z.23515
-rw-r--r-- 1 protist protist        0 Feb  8  2018 .z.25040
-rw-r--r-- 1 protist protist    25188 Feb 12  2018 .z.29510
-rw-r--r-- 1 protist protist        0 Feb  8  2018 .z.5317
-rw-r--r-- 1 protist protist    19561 Aug 15  2017 .z.6607

I'm running the latest version, z 1.11 with zsh 5.7.1 on Arch Linux.

EDIT:
I got a different error after another ls.

mv: cannot stat '/home/protist/.z.3141': No such file or directory                                          

It looks like the shell can't find the source file ~/.z.3141, which is true; it doesn't exist. In contrast the original error reported above (i.e. mv: cannot move 'foo' to 'bar': No such file or directory) appears when the target directory cannot be found (and perhaps other situations?).

@bklaase
Copy link

bklaase commented Mar 3, 2020

Same issue. On multiple devices. Also using arch + zsh with same versions as Protist.

@protist
Copy link
Author

protist commented Mar 27, 2020

After this bug eating a half-typed command once too often, I've moved to z.lua, which doesn't have this bug, seems a lot more powerful, is faster, and is still in active development.

@m3hdad
Copy link

m3hdad commented May 22, 2020

any updates on this bug?

@bklaase
Copy link

bklaase commented May 22, 2020

For me it is fixed a few updates ago. It was some racing condition that they resolved. You can reliably reproduce by holding the key in a pre-fix version.

see: #247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants