cvfosammmm / Setzer

LaTeX editor written in Python with Gtk
https://www.cvfosammmm.org/setzer/
Other
385 stars 33 forks source link

File not found (\input in latex source): issue and fix #405

Closed pvitt72 closed 2 months ago

pvitt72 commented 2 months ago

If you write \input{file} and the file does not exist, Setzer raises a file not found error at line 86 of document_stats.py source. The easy fix is to add:

if os.path.isfile(filename):

at line 86, right before:

save_date = os.path.getmtime(filename)

cvfosammmm commented 2 months ago

This should be fixed already. Are you using an old version maybe?

pvitt72 commented 2 months ago

...I am using the latest version available on Ubuntu (23.10):

$ sudo apt show setzer Package: setzer Version: 56-1 Priority: optional Section: universe/tex Origin: Ubuntu Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Original-Maintainer: Debian Science Maintainers debian-science-maintainers@lists.alioth.debian.org

Good to know! :-)