JuliaTeX / TikzPictures.jl

Creating PGF/TikZ pictures and saving them in various formats
Other
89 stars 28 forks source link

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

Closed jaeschrich closed 3 years ago

jaeschrich commented 3 years ago

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 commented 3 years ago

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