Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ST4 not invoking PDF viewer on macOS? #1539

Open
hhergert opened this issue Sep 1, 2021 · 6 comments · May be fixed by #1540
Open

ST4 not invoking PDF viewer on macOS? #1539

hhergert opened this issue Sep 1, 2021 · 6 comments · May be fixed by #1540

Comments

@hhergert
Copy link

hhergert commented Sep 1, 2021

After updating to ST4 (build 4113), the builder does not launch the PDF viewer (Skim) any more. (MacOS 10.14.6 Mojave, Skim 1.6.4). I tried changing the viewer commands in LaTeXTools.sublime-settings, but it seems that viewer-related commands are simply ignored. latexmk etc. seem to work fine, as does \cite resolution etc., and I can use the settings file to toggle output of logs in the console, for example.

@hhergert
Copy link
Author

hhergert commented Sep 1, 2021

Following up: I fixed some tabs and spaces in jumpToPDF.py (lines 100ff.) that were flagged as inconsistent in debug mode and changed the permissions of the displayfile script in the skim subfolder to make it executable - either the fixed indents or the combination of the two seems to have done the trick (I changed the permissions earlier, so that alone was not it). Skim is starting and syncing to the proper lines again.

@hadisfr
Copy link
Contributor

hadisfr commented Sep 2, 2021

Reproduced in Ubuntu, too.

hadisfr added a commit to hadisfr/LaTeXTools that referenced this issue Sep 2, 2021
The combination of space and tab indentation in jumpToPDF.py -possibly appears in b27fc39 (merging SublimeText#1472)
prevents PDF viewer from opening after build, and removes View PDF and Jump to PDF commands from command list (See SublimeText#1539).
@bipson
Copy link

bipson commented Nov 23, 2021

Encountered the same issue on Linux in master or the latest release (st3-4.0.0-beta.0 tag seems to still work, but using tags is not a sustainable solution for me with SublimeText).

PR #1540 seems to fix it for me. Please consider merging it.

@fewww
Copy link

fewww commented Dec 20, 2021

Could you please send me the files you modified (jumpToPDF.py, displayfile script,...)? Thank you.

@itsrainingdata
Copy link

I've been encountering the same issue for several months. Have tried uninstalling and re-installing Skim, and found the problem persisted over versions 1.67, 1.6.8, 1.6.10. Mac OS Monterey 12.0.1.

See also https://tex.stackexchange.com/questions/618983/pdf-viewer-skim-not-opening-or-updating-on-build-with-sublime-text-4-and-latex

robfisc pushed a commit to robfisc/LaTeXTools that referenced this issue Aug 30, 2022
The combination of space and tab indentation in jumpToPDF.py -possibly appears in b27fc39 (merging SublimeText#1472)
prevents PDF viewer from opening after build, and removes View PDF and Jump to PDF commands from command list (See SublimeText#1539).
@Kamik423
Copy link

This needs to be fixed. Please accept the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants