Closed bradenkohkz closed 6 years ago
The viewer should refresh on save. You may want to double check the extension config. If it is still not working, please provide a minimal working example.
You didn't have a pdf file for another tex file opened did you?
@James-Yu thanks for getting back to me, could you let me know what you need to see in specific? sorry I quite understand what you meant by a minimal working example.
@AllanWang Nope I didn't have another tex file opened.
The general case is I find that the pdf doesn't refresh on save and I have to manually compile and manually generate the "view pdf in new tab" every time I change something
there should be a config on "auto-refresh after build". Set that to true (which should already be set by default) and make sure that the compilation did not throw errors.
The PDF no longer refreshes with changes after changing my toolchain from XeLaTeX
(via MiKTeX
or TeXLive
) to Tectonic. No errors are thrown and closing and re-opening the PDF panel shows the updated PDF.
Tectonic emits synctex data as <inputFileName>.synctex.gz
containing <inputFileName>.synctex
which may be related to this
My issue above seems to only occur on Windows were it enters WSL. On *nix the same command refreshes the PDF without issue
windows +1, my problem is latex toolchain terminated with error
.
WSL is known for not properly exiting process due to its monitor on pipin
. It cannot be solved on the extension side.
As to terminated error
, you cannot expect the extension to refresh PDF when it is not updated.
It properly exits with 0 according to PowerShell and the error (now a constant notification popup on 5.x) happens as soon as the bash process starts.
See #460
Issue
I really like what you have done to incorporate visual studio code with latex but I just have the small issue of that my pdf in another tab isn't updating. Also, is there a possibility for the pdf viewer to be other than adobe reader? I have taken a liking to summatra reader and wish to use that as the pdf reader instead. Thanks so much.
Suggested actions
LaTeX Workshop Output
[11:25:30] Initializing LaTeX Workshop. [11:25:30] Creating LaTeX Workshop http and websocket server. [11:25:30] LaTeX Workshop initialized. [11:25:30] Found root file from active editor: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex [11:25:30] Root file changed from: undefined. Find all dependencies. [11:25:30] Instatiating new file watcher for c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex [11:25:30] Parsing c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex [11:25:30] Server created on 127.0.0.1:63969 [11:25:30] Default environments loaded [11:25:30] LaTeX Workshop version: 3.13.0 [11:25:30] Default commands loaded [11:25:30] Default unimathsymbols loaded [11:25:30] TAB command invoked. [11:25:30] Found root file from active editor: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex [11:25:30] Root file remains unchanged from: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex. [11:25:30] No PDF viewer connected for c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.pdf [11:25:30] Serving PDF file at http://127.0.0.1:63969/viewer.html?file=/pdf:c%3A%5CUsers%5Cbrade%5COneDrive%5CWork%5CWork%20expense_%5Cweek%209%5Cexpenses.pdf [11:25:30] Open PDF tab for c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.pdf [11:25:31] Found root file from active editor: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex [11:25:31] Root file remains unchanged from: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex. [11:25:32] Preview PDF file: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.pdf [11:25:34] Root file remains unchanged from: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex. [11:25:47] Found root file from active editor: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex [11:25:47] Root file remains unchanged from: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex. [11:25:48] Preview PDF file: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.pdf [11:25:50] Root file remains unchanged from: c:\Users\brade\OneDrive\Work\Work expense_\week 9\expenses.tex.