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

Problem on OS X with Bazel 0.15.2 #1

Closed
mtsgrd opened this issue Aug 24, 2018 · 4 comments
Closed

Problem on OS X with Bazel 0.15.2 #1

mtsgrd opened this issue Aug 24, 2018 · 4 comments

Comments

@mtsgrd
Copy link

mtsgrd commented Aug 24, 2018

First of all, thank you for providing this extension!

I ran into a problem trying this out on OS X, with Bazel 0.15.2.

$> bazel run :my_report_view
Starting local Bazel server and connecting to it...
.............
INFO: Analysed target //:my_report_view (47 packages loaded).
INFO: Found 1 target...
ERROR: /Users/mtsgrd/c/resume/BUILD:3:1: SkylarkAction my_report.pdf failed (Exit 1)
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)
 restricted \write18 enabled.

kpathsea: Running mktexfmt pdflatex.fmt
/private/var/tmp/_bazel_mtsgrd/0d605fe67c66d81e0a753bdfcbb497fc/sandbox/darwin-sandbox/2/execroot/__main__/bin/kpsewhich: /private/var/tmp/_bazel_mtsgrd/0d605fe67c66d81e0a753bdfcbb497fc/sandbox/darwin-sandbox/2/execroot/__main__/bin/kpsewhich: cannot execute binary file
/private/var/tmp/_bazel_mtsgrd/0d605fe67c66d81e0a753bdfcbb497fc/sandbox/darwin-sandbox/2/execroot/__main__/bin/mktexfmt: kpsewhich -var-value=TEXMFROOT failed, aborting early.
BEGIN failed--compilation aborted at /private/var/tmp/_bazel_mtsgrd/0d605fe67c66d81e0a753bdfcbb497fc/sandbox/darwin-sandbox/2/execroot/__main__/bin/mktexfmt line 25.
I can't find the format file `pdflatex.fmt'!
Target //:my_report_view failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 18.296s, Critical Path: 0.62s
INFO: 1 process: 1 darwin-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Any idea what's going on?

@EdSchouten
Copy link
Contributor

Hey! Thanks for using this extension! \o/

This currently breaks, because it always downloads the Linux x86-64 version of TeXLive:

https://github.com/ProdriveTechnologies/bazel-latex/blob/master/repositories.bzl#L5427

This code should be adjusted to download the appropriate tarball from this page, based on the host operating system (^F Darwin):

https://github.com/ProdriveTechnologies/texlive-modular/releases

@mtsgrd
Copy link
Author

mtsgrd commented Aug 24, 2018

I love Bazel, and I got excited to see this extension since I have just rewritten my own resume in LaTeX(!)

Thanks for pointing me in the right direction, if I'm left with some spare time this weekend I might give fixing that a shot. :)

@EdSchouten
Copy link
Contributor

Hi @mtsgrd,

As I wanted to get some more experience with how toolchains work in Bazel (need that for work), I went ahead and implemented Darwin support for you. Enjoy!

@mtsgrd
Copy link
Author

mtsgrd commented Aug 26, 2018

Awesome, it works now! 👍

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

No branches or pull requests

2 participants