pretext-cli icon indicating copy to clipboard operation
pretext-cli copied to clipboard

Difficult to find image `.tex` files in case of error

Open siefkenj opened this issue 1 year ago • 3 comments

If the compilation of a tikz figure fails, the user may want to inspect the .tex file that was attempting to be compiled. The CLI currently gives the name of the .tex file that failed, but not the path, making it very difficult to track down the file to run further tests.

I suggest that in the case of an error a message like,

Manually inspect the `.tex` file at: ...

be printed.

siefkenj avatar Feb 25 '24 16:02 siefkenj

This probably belongs to PreTeXtBook/pretext ?

StevenClontz avatar Feb 26 '24 15:02 StevenClontz

Does core handle the creation of temporary directories? Or you're just saying since core prints the error, it should format it?

siefkenj avatar Feb 26 '24 16:02 siefkenj

The compilation of a tikz figure happens in the code of PreTeXtBook/pretext so I'm guessing we're just passing along a message from there. Haven't looked closely though.

StevenClontz avatar Feb 26 '24 16:02 StevenClontz