You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generate private method suppresses any exceptions through begin and rescue , and hence if 'latex', 'dvips' or 'convert' aren't present on the machine, the sh method's exception isn't shown, and the rendering fails silently (much to the confusion of the user as to why an image wasn't generated).
begin
temp_dir = create_temp_dir(hash)
latex2dvi(temp_dir, formula) #Exception here? Too bad. Suppressed.
dvi2ps(temp_dir)
ps2image(temp_dir, hash)
rescue
FileUtils.rm_rf(temp_dir) if !@options[:debug]
else
FileUtils.rm_rf(temp_dir)
end
The text was updated successfully, but these errors were encountered:
The
generate
private method suppresses any exceptions throughbegin
andrescue
, and hence if 'latex', 'dvips' or 'convert' aren't present on the machine, thesh
method's exception isn't shown, and the rendering fails silently (much to the confusion of the user as to why an image wasn't generated).The text was updated successfully, but these errors were encountered: