timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
500 stars 74 forks source link

Console filled with tracebacks #46

Closed idan closed 10 years ago

idan commented 10 years ago

Over and over again:

Traceback (most recent call last):
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/libs/bottle.py", line 764, in _handle
    return route.call(**args)
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/libs/bottle.py", line 1575, in wrapper
    rv = callback(*a, **ka)
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Server.py", line 141, in handler_api_revive
    buffer_id = f.result()
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Common.py", line 353, in result
    reraise(exc[0], exc[1], exc[2])
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Common.py", line 44, in reraise
    raise value
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Common.py", line 340, in __call__
    self.__result = self.__func(*self.__args, **self.__kwargs)
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Server.py", line 139, in <lambda>
    f = Future(lambda: RendererManager.revive_buffer(revivable_key))
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/RendererManager.py", line 371, in revive_buffer
    if filesystem_path_equals(view.file_name(), revivable_key):
  File "/Users/igazit/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/RendererManager.py", line 88, in filesystem_path_equals
    return path1.lower() == path2.lower()
AttributeError: 'NoneType' object has no attribute 'lower'

I'm a python dev, but I don't know how to grab the exception in a debuggable fashion and see what it was supposedly trying to render. Given that either path1 or path2 (or both) are None, maybe that would offer a clue as to what is broken. Some guidance here would be helpful.