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

success function for testing of lualatex installation throws an exception when not installed #83

Closed
dylan-asmar opened this issue Jul 2, 2023 · 1 comment · Fixed by #84

Comments

@dylan-asmar
Copy link
Member

The use of success(`$(tikzCommand()) -v`) appears throughout as a test of whether lualatex is able to be used. It also shows up in the runtests.jl as success(`lualatex -v`). However, success raises an exception if the process cannot be started (https://docs.julialang.org/en/v1/base/base/#Base.success).

Therefore instead of the intended use of falling back to tectonic, we get the following error:

ERROR: IOError: could not spawn `lualatex -v`: no such file or directory (ENOENT)

I recreated this behavior on Ubuntu and MacOS (M1 processor with some modifications for tectonic use).

We can fix this by creating a helper function that catches the exception of success. I was planning on including it with my pull request for the tectonic_jll change but wanted to submit the issue in case a different approach is preferred.

@mykelk
Copy link
Member

mykelk commented Jul 2, 2023

Yes, that sounds good. We can use tectonic_jll since we don't need biber.

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.

2 participants