SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 362 forks source link

Error when copy_output_on_build has possibly missing extension #1501

Closed ssnl closed 2 years ago

ssnl commented 3 years ago

I have

    "output_directory": "<<cache>>",

    "copy_output_on_build": [".pdf", ".bbl"],

While this work fine in most cases. This fails when I do not use bibliography, due to error like the following

Traceback (most recent call last):
  File "/Users/XXX/Library/Application Support/Sublime Text 3/Packages/LaTeXTools/makePDF.py", line 914, in do_finish
    os.path.dirname(self.file_name)
  File "./python3.3/shutil.py", line 243, in copy2
  File "./python3.3/shutil.py", line 109, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: '/Users/XXX/Library/Application Support/Sublime Text 3/Cache/LaTeXTools/b8acb1db173b965fd340f12d48db8ff3/YYY.bbl'