SublimeText / LaTeXTools

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

KeyError: 'bst' reported in latex_installed_packages.py #1425

Open dnaihao opened 5 years ago

dnaihao commented 5 years ago

Since my sublime cannot fill the bracket for usepackage automatically, I ran LatexTools: Build cache of LaTex packages manually but got Latextools-key-error

Then I investigated into the file latex_installed_packages.py. After I changed this line Latextools-fix and ran LatexTools: Build cache of LaTex packages, the autofill for usepackage worked successfully: Latextools-fixed

So could we change the method to Latextools-fix-all in latex_installed_packages.py?

If you don't mind, could I commit to Latextools to fix this issue?

ig0774 commented 5 years ago

The default should probably be [] rather than ''. Other than that, feel free to create a PR.