Create a new folder, then type name Enter E++ reports error for path is unavailable
Describe the bug Use F2 to create a new folder, then type Enter E++ reports error for the "new folder" does not exists
To Reproduce Steps to reproduce the behavior:
- Go to any folder
- Use right click to create a new folder, type the folder name to finish
- Type Enter to go into the newly created folder
- See error "path is unavailable. If the location is on this PC, make sure the device or drive is connected or the disc is inserted, and then try again. "
Expected behavior Goes into the folder without error occuring.
Screenshots If applicable, add screenshots to help explain your problem.
Version (please complete the following information):
- Explorer++ version: [e.g. 1.4.0.1616 dev (64-bit build)]
- OS: [e.g. Windows 10]
Additional context Add any other context about the problem here.
The steps to repro do not work for me on a dev build -- no repro.
Also, the steps do not mention using F2, which is mentioned in the "Describe the bug" section -- so something seems off.
I am sorry for the wrong description. It occurs when creating a folder with a folder name typed in very fast, then type enter to go into it with the newly created folder but E++ did not comprehend that the folder name has changed and tries to go to the folder with the original name. The issue also occurs when use F2 to rename a folder, then type Enter to go into that folder, but E++ do not comprehend the folder name change and tries to go to the folder with original folder name, and windows return error "path is unavailable. If the location is on this PC, make sure the device or drive is connected or the disc is inserted, and then try again. "
Ahh, yes, I can repro. Pressing Enter to open the folder immediately after pressing Enter to commit the name change is key to repro.
My repro is with using New Folder:
- Press Ctrl+N to create a new folder
- Type Foo
- Press Enter twice quickly (once to commit the name change, once to enter the Foo folder)
The error message appears stating that "New Folder" does not exist.
@sean-e Yes, exactly!
Behavior has changed in Jan 2021. The rename works properly, but two items are displayed in the items pane, both with the new name. However, one item is actually an invalid item that still thinks the directory name is New Folder. That item is the one that remains selected after the Rename operation. Pressing enter on it causes the error message to appear. Pressing enter on the other item with the new name works as expected. I don't recall seeing two items in the items pane after rename before this month. Refreshing the view clears the invalid entry.
Potentially related to commit 09c0281f7e9e008b839effc24f542778e4a8fe58 or commit 0427a3962a103e70dbb7db5afa20695bbc5dada8
The problem occurs after simple rename of directory -- creating a new folder is not necessary to repro; opened new issue #309. Manual refresh of items view is required to get rid of the invalid entry.