dldl / sphinx-preview

Sphinx preview in Atom
MIT License
5 stars 4 forks source link

Uncaught TypeError: Cannot read property 'path' of null #30

Open mkmcconnell opened 3 years ago

mkmcconnell commented 3 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.58.0 x64 Electron: 9.4.4 OS: Mac OS X 10.15.7 Thrown From: sphinx-preview package 0.1.5

Stack Trace

Uncaught TypeError: Cannot read property 'path' of null

At /Users/mmcconnell/.atom/packages/sphinx-preview/lib/sphinx-preview.js:223

TypeError: Cannot read property 'path' of null
    at Object.isActiveFileRst (/packages/sphinx-preview/lib/sphinx-preview.js:223:47)
    at Object.toggle (/packages/sphinx-preview/lib/sphinx-preview.js:33:14)
    at HTMLElement.sphinxPreviewToggle (/packages/sphinx-preview/lib/sphinx-preview.js:23:47)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:352326)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350801)
    at AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:786983)
    at EventEmitter.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:795037)
    at EventEmitter.emit (events.js:223:5)
    at Object.onMessage (electron/js2c/renderer_init.js:115:818)

Commands

     -2:34.3.0 core:backspace (input.hidden-input)
     -0:44.9.0 editor:newline (input.hidden-input)
  2x -0:37 sphinx-preview:toggle (div.line.cursor-line)

Non-Core Packages

browser-plus 0.0.98 
language-sphinx 0.1.9 
sphinx-preview 0.1.5