sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

problem of forward search without opening program and with SessionData in SumatraPDF-settings.txt

Open DailyShana opened this issue 9 months ago • 3 comments

SumatraPDF version

  • Version 3.5-3.5.2 no problem in previous versions

Describe the bug without opening the sumatrapdf program and with SessionData in SumatraPDF-settings.txt, forward searching do not work.

To Reproduce Steps to reproduce the behavior:

  1. Download test file https://github.com/GitHubRulesOK/MyNotes/raw/master/AppNotes/SumatraPDF/LATeX%20and%20Reverse-Search.zip and extract, we have a folder \LATeX and Reverse-Search

  2. Download portable version of SumatraPDF (eg. version 3.5 64bit) and extract to the folder \LATeX and Reverse-Search

  3. delete SumatraPDF-settings.txt (if there is any)

  4. close all instance of SumatraPDF (if there is any), run "SumatraPDF-3.5-64.exe" -forward-search "sync.tex" 19 "sync.pdf"

  5. the line "A much longer and more evil second footnote" is highlighted as expected.

  6. close all instance of SumatraPDF, run "SumatraPDF-3.5-64.exe" -forward-search "sync.tex" 19 "sync.pdf" again

  7. the line "A much longer and more evil second footnote" is not highlighted as expected.

  8. close all instance of SumatraPDF, open SumatraPDF-settings.txt, delete SessionData section, save and close. image

  9. run "SumatraPDF-3.5-64.exe" -forward-search "sync.tex" 19 "sync.pdf" again

  10. the line "A much longer and more evil second footnote" is highlighted as expected.

Expected behavior In step 7 above, the line "A much longer and more evil second footnote" should be highlighed

File that reproduces the problem If this is related to a specific PDF etc. file, please attach the file.

Screenshots step 4-5 above: 动画1

step 6-7 above: 动画2

Additional context summary: If the pdf file is already opening, there is no problem. If SumatraPDF-settings.txt does not contain SessionData, there is no problem. The problem occurs when the pdf file is not opening and SumatraPDF-settings.txt contain SessionData.

DailyShana avatar May 12 '24 14:05 DailyShana