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

UndefVarError: tex_log not defined when _run encounters an error. #77

Closed
jaeschrich opened this issue Sep 9, 2021 · 1 comment
Closed
Assignees

Comments

@jaeschrich
Copy link

I'm having an issue where I get a "tex_log not defined" error when I run "save(PDF("test"), tp)". Based on the stack trace and an inspection of the source code, it looks like "tex_log" is not declared in the _run method, such that when an error occurs the program is unable to produce an appropriate error message. But I'm not familiar enough with Julia to fix it myself, sorry!

This is the stack trace:

save(PDF("test"), tp)
UndefVarError: tex_log not defined

Stacktrace:
 [1] _run(tp::TikzPictures.TikzPicture, temp_dir::String, temp_filename::String; dvi::Bool)
   @ TikzPictures ~/.julia/packages/TikzPictures/Y2iEZ/src/TikzPictures.jl:284
 [2] _run
   @ ~/.julia/packages/TikzPictures/Y2iEZ/src/TikzPictures.jl:259 [inlined]
 [3] (::TikzPictures.var"#20#21"{PDF, TikzPictures.TikzPicture, String})()
   @ TikzPictures ~/.julia/packages/TikzPictures/Y2iEZ/src/TikzPictures.jl:302
 [4] cd(f::TikzPictures.var"#20#21"{PDF, TikzPictures.TikzPicture, String}, dir::String)
   @ Base.Filesystem ./file.jl:106
 [5] save(f::PDF, tp::TikzPictures.TikzPicture)
   @ TikzPictures ~/.julia/packages/TikzPictures/Y2iEZ/src/TikzPictures.jl:296
 [6] top-level scope
   @ In[18]:1
 [7] eval
   @ ./boot.jl:360 [inlined]
 [8] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1116
@mykelk mykelk self-assigned this Sep 9, 2021
@mykelk
Copy link
Member

mykelk commented Sep 9, 2021

Thanks for the report. I'll check this out.

@mykelk mykelk closed this as completed in d1ebe00 Sep 9, 2021
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

2 participants