ashthespy / Atom-LaTeX

The only LaTeX package you need for typesetting with Atom.
https://atom.io/packages/atom-latex
MIT License
22 stars 9 forks source link

Fixed #173 #227

Closed oparisblue closed 4 years ago

oparisblue commented 4 years ago

If the LaTeX root file does not exist (was deleted) or is not valid (does not have begin{document}) then the file will be undefined. This undefined variable gets passed to Object.basename, which only accepts string arguments, hence causing a deprecation warning.

Steps to reproduce the bug:

  1. Save an empty file with the extension .tex.
  2. Open the file in Atom.
  3. Type in a backslash character \, observe the resulting deprecation warning.
ashthespy commented 4 years ago

Thanks, fixed with 3196af265834bdb9fdc48352e9331f378d696bb1