Forward search failed when input a tex file with relative path containing /../
Forward search failed when input a tex file with relative path containing /../
\documentclass[]{article}
\usepackage{lipsum}
\begin{document}
\section[1]{sec 1}
\lipsum[1-3]
\subsection{sub 1}
\input{../main/example-section}
\end{document}
I use vscode + sumatrapdf.
It seems to be a problem with vscode. Both, forward and backward search work with your example inside TeXworks.
Yes, I tried TeXworks but I'm still not sure. There are indeed user who think it's SyncTeX related, such as this issue. I originally thought it was related to my reader, but I'm now leaning more towards it being related to SyncTeX, (this issue).
I once tried to modify the synctex_parser_utils.c file in my reader. (this commit). However, the author recently replaced it with a new version of SyncTeX (this commit).
Can you include in your main.zip both the main.pdf and main.synctex.gz
Here it is. main.zip