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

External commands for file eval #24

Open
viveknallur opened this issue Jul 20, 2017 · 1 comment
Open

External commands for file eval #24

viveknallur opened this issue Jul 20, 2017 · 1 comment

Comments

@viveknallur
Copy link

Hi,
First off, thanks for a fabulous plugin. I seem to be unable to pass "pdflatex" as an external command to the file eval trigger. Context: I use the Linux subsystem on windows (so far I've got the best of both worlds in userspace), and while LightTable is running as a Windows binary, my Latex installation is inside WLS. On a typical windows command line, I can run call pdflatex like so:

prompt>bash -c "pdflatex file.tex"

and this works fine. However, with a litexrc like so:

{ "file": { "commands": ["external-command bash -c pdflatex -interaction=nonstopmode %f"] },
  "project": { "filename": "%p",
               "commands": ["external-command bash -c pdflatex -interaction=nonstopmode --synctex=1 %f",
                            "external-command bash -c bibtex %b",
                            "external-command bash -c pdflatex -interaction=nonstopmode --synctex=1 %f"]}}

Pressing ctrl+enter does nothing. Nothing shows up on the console, the status pane says "Connected to PDF Viewer" and in the PDF Viewer pane is a message saying "The system cannot find the path specified"

Perhaps I'm doing something horribly wrong [and I do recognize that running lighttable from within WLS, while compiling a file within WLS would be the sensible thing to do. But I just can't seem to get lighttable working within WLS].

@viveknallur
Copy link
Author

viveknallur commented Jul 20, 2017

Just as context for running linux binaries from windows commandshell, here's the way it's documented to work: https://msdn.microsoft.com/en-us/commandline/wsl/interop

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

1 participant