revolunet / sublimetext-markdown-preview

markdown preview and build plugin for sublime text 2/3
MIT License
2.31k stars 362 forks source link

[Error] on_post_save #341

Closed Enteleform closed 8 years ago

Enteleform commented 8 years ago

I get this error occasionally upon saving:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 231, in run_callback
    expr()
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 288, in <lambda>
    run_callback('on_post_save', callback, lambda: callback.on_post_save(v))
  File "MarkdownPreview in C:\Users\Fico\AppData\Roaming\Sublime Text 3\Installed Packages\Markdown Preview.sublime-package", line 355, in on_post_save
AttributeError: 'NoneType' object has no attribute 'endswith'

  For this particular error instance, I was just working on a random /Packages/MyPlugin/MyPlugin.py file.  


  ST Version: Stable Channel, Build 3114 OS: Windows 10 Pro (64-bit), Build 10586

facelessuser commented 8 years ago

Looks like when requesting filename from a view, if one doesn't exist, you can get this issue. Should be pretty easy to fix.