sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.72k stars 1.73k forks source link

After rename, unable to load next file #4588

Open Rockin-Gecko opened 1 month ago

Rockin-Gecko commented 1 month ago

SumatraPDF version

Describe the bug A clear and concise description of what the bug is.

In v3.4.6 portable, I can easily rename a file and then type "Ctrl-Shift-Left" or "Ctrl-Shift-Right" to load the next file.

But in v3.5.2 portable, after I rename a file, when I try to load the next file, I see a error message that states "Error loading ". I can only resume loading the next file after I close and reopen SumatraPDF.

Screenshots If applicable, add screenshots to help explain your problem.

2024-10-14_210948

Request As I make heavy use of SumatraPDF to rename my downloaded PDF files, and need it to behave as per v3.4.6, I may have to switch from v3.5.2 back to v3.4.6 in order to retain this feature.

Hope the load next file behaviour for 3.5.x can be made to be more like that for 3.4.6.


Thanks and regards, Gecko

GitHubRulesOK commented 1 month ago

Personally can not emulate that behaviour using portable 3.5.2

1) open a file within a folder listing 2) navigate via ctrl+shift arrows, 3) press F2 to rename any file under control it renames and updates the tab controls 4) see no error apart from bad files.

cant change 3.5.2 so how is it used in 3.6 ?

Rockin-Gecko commented 1 month ago

Hi @GitHubRulesOK,

Thanks for your reply.

I renamed the PDF file, switch to the next PDF file in the folder, and then load the renamed file.

At that point, I get the error that I have an error loading the renamed file,

Typical scenario

  1. Download a number of bank statements. Statements are named "eStatement1", "eStatement2", "eStatement3", etc.
  2. F2 rename to "eStatement 24.08", "eStatement 24.09".
  3. Go back to check contents of "eStatement 24.08". Error loading "eStatement1". Also unable to load renamed "eStatement 24.08".
  4. But can still load "eStatement3", "eStatement4", or other files that have yet to be renamed.

v3.4.6 portable didn't have this issue. It had no problem loading renamed files in alphabetical order.

v.3.6 is pre-release software. As such, is it stable enough for production use?

Thanks and regards, Gecko

Rockin-Gecko commented 1 month ago

I tested this with v3.6 pre-release portable today. The change in version number doesn't help.

For one of my work PCs, I have reinstalled v3.4.6 as I download and rename a lot of PDF files on that PC.

I hope the issue can be addressed for v3.6 final.