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

Uncaught TypeError: this.latex.logger.debuglog.error is not a function #216

Closed shanwai1234 closed 4 years ago

shanwai1234 commented 4 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.40.1 x64 Electron: 3.1.10 OS: Mac OS X 10.13.1 Thrown From: atom-latex package 0.8.10

Stack Trace

Uncaught TypeError: this.latex.logger.debuglog.error is not a function

At /Users/zhikai/.atom/packages/atom-latex/lib/viewer.coffee:83

TypeError: this.latex.logger.debuglog.error is not a function
    at Viewer.module.exports.Viewer.openViewerNewWindow (/packages/atom-latex/lib/viewer.coffee:83:30)
    at Viewer.module.exports.Viewer.openViewer (/packages/atom-latex/lib/viewer.coffee:71:8)
    at HTMLElement.click (/packages/atom-latex/lib/view/panel.js:112:86)

Commands

     -2:52.1.0 core:copy (atom-notification.error.icon.icon-flame.native-key-bindings.has-detail.has-close.has-buttons)

Non-Core Packages

atom-latex 0.8.10 
latex 0.50.2 
pdf-view 0.71.0 
ashthespy commented 4 years ago

Particular error fixed with 7fc98420c82b8346e9dc884860b113d39ca141a9.

This is triggered because there is no PDF file for the viewer to open.