I want to write a tiny plugin which read the first line of the view and set its syntax to markdown if the line has some string.
For convenience, I copy some lines from another plugin which is named StatusBarFileSize, but forgot to modify the class name:
class StatusBarFileSize(sublime_plugin.EventListener):
... ...
After finish my new plugin, I found it can’t work, then I realised I should change the classname. But after the correction, the plugin still can’t work, and I got lots of something like StatusBarFileSize object has no attribute view
error.
I guess there is some conflict due to the previous mistake, and restart sublime, after that, my new plugin works as expected.
So, is the error a bug?