Skip to content

Forward Search doe not work for files located in WSL #5660

@hethon

Description

@hethon

SumatraPDF version

  • Version 3.5.2

Project structure(files are on wsl)

project_root
├── build
│   └── index
│       ├── index.pdf
│       └── index.synctex.gz
└── src
    └── index.tex

To Reproduce
Execute this from project root.

/mnt/c/Users/Lenovo/AppData/Local/SumatraPDF/SumatraPDF.exe \
-reuse-instance 'build\index\index.pdf' \
-forward-search 'src\index.tex' 42

(Windows handles conversion to UNC paths automatically.)

PDF opens normally, forward search fails with:

Unknown Source file (\\wsl.localhost\Ubuntu\home\hethon\Documents\personal\resume\src\index.tex)

Expected behavior
SumatraPDF should jump to line 42 in index.tex and highlight it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions