-
Notifications
You must be signed in to change notification settings - Fork 4
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
SILE.documentState.paperSize not found using SILE v0.14.17 #77
Comments
"A train can hide another", the error is actually "Could not find file" (and it triggers another error, on the ouputter, likely because occurring too soon). |
Just reproduced on a pretty fresh Ubuntu setup, it occurs when the input file does not exist (= in your case, If it helps, here is an annotated transcript from my session (EDIT: for some reason I have Lua 5.2 on that host, not 5.3 -- the versions below need to be adapted then)
And lo! I got a PDF ( |
Sorry my report was wrong. What I should have reported is this After cloning your repository at https://github.com/Omikhleia/resilient.sile.git I have run this command for building the documentation pablo@cleopatra:~/git-repos/resilient.sile/examples$ sile -u inputters.silm ./sile-resilient-manual.silm --traceback ! Unexpected Lua error stack traceback: error summary: |
Ah, I see, the error is obtained with
But not with (doh!!):
(Though you'll get other issues afterwards, due to other relative paths) That's weird, and I would have to check and likely report to SILE... --> Something to investigate here. (On the other hand I think (if I remember correctly) there's a fix in upcoming SILE 0.15.x for the initialization of inputters that would indirectly address the issue of their options not always been correctly initialized.) I never noticed: I always compile the manual from the base folder ( Honestly, I don't recommend trying to build the manual:
For sample books, that's why I made the awesome-sile-books repository -- used above in my session transcript -- A curated list of book projects ;) |
Just checked and it is indeed fixed in SILE develop branch (= expected for next major 0.15 release). |
Many thanks! |
Trying to build the documentation in ./examples with the command
sile -u inputters.silm mybook.silm
using SILE v0.14.17 (Lua 5.3) in Ubuntu 22.04, I`ve got the following error:
=========================================================================
! Could not find file at
! Unexpected Lua error
error summary:
Processing at:
Run with --traceback for more detailed trace leading up to errors.
This is caused by the line
local w, h = SILE.documentState.paperSize[1], SILE.documentState.paperSize[2]
The text was updated successfully, but these errors were encountered: