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

SumatraPDF not being launched on Windows #3

Closed
williamledoux opened this issue Aug 4, 2011 · 4 comments
Closed

SumatraPDF not being launched on Windows #3

williamledoux opened this issue Aug 4, 2011 · 4 comments

Comments

@williamledoux
Copy link
Contributor

  • On Windows,
  • Have SumatraPDF 1.7 my default PDF reader,
  • Just downloaded and extracted LaTeXTools (9780bc4),
  • Rebooted ST2 2097
  • Pressed F7 on a .tex file
    • The viewer was not launched. No error popped out in the output (just Texification suceeded: no errors! [Done!])
    • While in the log we can find:

Windows, Calling Sumatra
Sumatra not running, launch it
Traceback (most recent call last):
File ".\sublime_plugin.py", line 267, in run_
File ".\viewPDF.py", line 18, in run
TypeError: 'module' object is not callable

  • Add the "--run-viewer" option into the windows texify cmd of the LaTeX.sublime-build file.
    • It works, but I am not sure that's the expected way to do it.
@williamledoux
Copy link
Contributor Author

adding ".get_tex_root" after getTeXRoot on line 18 of viewPDF.py seems to help.

@msiniscalchi
Copy link
Collaborator

You should not nee the --run-viewer option. Is Sumatra in your path?
Also, can you check the output of the console---not the output panel
that the plugin brings up? (It's ctrl+` on Windows, I believe) You
should see a message regarding a DDE request being sent to Sumatra.

Please let me know. Thanks!

On Thu, Aug 4, 2011 at 5:34 PM, williamledoux
reply@reply.github.com
wrote:

  • On Windows,
  • Have SumatraPDF 1.7 my default PDF reader,
  • Just downloaded and extracted LaTeXTools (9780bc4),
  • Rebooted ST2 2097
  • Pressed F7 on a .tex file
     *  The viewer was not launched.
  • Add the "--run-viewer" option into the windows texify cmd of the LaTeX.sublime-build file.
     * It works, but I am not sure that's the expected way to do it.

Reply to this email directly or view it on GitHub:
#3

Marciano Siniscalchi
Economics Department, Northwestern University
http://faculty.wcas.northwestern.edu/~msi661

@williamledoux
Copy link
Contributor Author

Hi,
In fact I think I found the bug and fixed it, see in my pull request.
It's my first contrib on github and I failed to make it clear that my pull
request was related to this bug. Sorry.
The error was something like 'module is not callable' on the line and file
where I made a diff.
Le 4 août 2011 23:53, "msiniscalchi" <
reply@reply.github.com> a
écrit :

You should not nee the --run-viewer option. Is Sumatra in your path?
Also, can you check the output of the console---not the output panel
that the plugin brings up? (It's ctrl+` on Windows, I believe) You
should see a message regarding a DDE request being sent to Sumatra.

Please let me know. Thanks!

On Thu, Aug 4, 2011 at 5:34 PM, williamledoux
reply@reply.github.com
wrote:

  • On Windows,
  • Have SumatraPDF 1.7 my default PDF reader,
  • Just downloaded and extracted LaTeXTools (9780bc4),
  • Rebooted ST2 2097
  • Pressed F7 on a .tex file
    • The viewer was not launched.
  • Add the "--run-viewer" option into the windows texify cmd of the
    LaTeX.sublime-build file.
    • It works, but I am not sure that's the expected way to do it.

Reply to this email directly or view it on GitHub:
#3

Marciano Siniscalchi
Economics Department, Northwestern University
http://faculty.wcas.northwestern.edu/~msi661

Reply to this email directly or view it on GitHub:
#3 (comment)

@msiniscalchi
Copy link
Collaborator

Thanks a lot! As you can see, I just merged your patch. I think I introduced this bug when I merged in support for multi-file documents... Another contributor sent me a nice working set of patches, but I managed to mess up on viewPDF.py. A classic case of PEBCAK :-(

ig0774 pushed a commit that referenced this issue Jun 18, 2016
Allow latex_fill_all to support dynamic input completions
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

No branches or pull requests

2 participants