Closed pjw91 closed 10 years ago
Recently, my ST2 updates OmniMarkupPreviewer from 2.0.5 to 2.0.7. Then this plugin doesn't work.
When starting ST2, there's a error massage: cls.OLD_IGNORED_RENDERERS = setting.ignored_renderers.copy() in ./OmniMarkupLib/RendererManager.py:442
cls.OLD_IGNORED_RENDERERS = setting.ignored_renderers.copy()
./OmniMarkupLib/RendererManager.py:442
after tracing the code, it seems to be caused by the changing of loading settings. The old type of setting.ignored_renderers is set, but now list
setting.ignored_renderers
set
list
And set has .copy() whereas list has not.
.copy()
Changing that line into cls.OLD_IGNORED_RENDERERS = setting.ignored_renderers[:] works.
cls.OLD_IGNORED_RENDERERS = setting.ignored_renderers[:]
Fixed in v2.0.8
Recently, my ST2 updates OmniMarkupPreviewer from 2.0.5 to 2.0.7. Then this plugin doesn't work.
When starting ST2, there's a error massage:
cls.OLD_IGNORED_RENDERERS = setting.ignored_renderers.copy()
in./OmniMarkupLib/RendererManager.py:442
after tracing the code, it seems to be caused by the changing of loading settings. The old type of
setting.ignored_renderers
isset
, but nowlist
And
set
has.copy()
whereaslist
has not.Changing that line into
cls.OLD_IGNORED_RENDERERS = setting.ignored_renderers[:]
works.