# SyncTeX jumps to pgflibraryfadings in TeXstudio with todonotes

If I ctrl + mouse click on the output text in TeXstudio with the code below then it takes me to pgflibraryfadings.code.tex which is not what I would expect/like. What can I do to fix this? (LuaTeX engine)

EDIT The problem appears to be related to how LuaTeX generates the SyncTeX files.

\documentclass[12pt]{letter}

\usepackage{todonotes}
\usepackage{lipsum}

\begin{document}

\lipsum

\end{document}

• This looks like a TeXstudio issue and should probably be reported to TeXstudio bug tracking on Github. – gernot Nov 13 '19 at 12:40
• see: tex.stackexchange.com/q/300079/100482 for possible answer – naphaneal Nov 13 '19 at 17:48
• Thanks @naphaneal That doesn't do it though. I went so far as to replace all \immediate commands, but nope. – JPi Nov 13 '19 at 18:22
• Incidentally, it appears to be a synctex problem more than a texstudio problem. – JPi Nov 13 '19 at 21:57