siliushi / VUEFormatter

formate your vue code
26 stars 5 forks source link

不支持最新版本 sublime #13

Open xueenda opened 6 years ago

xueenda commented 6 years ago

Unexpected error(<class 'AttributeError'>): 'NoneType' object has no attribute 'get' Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublimeplugin.py", line 1072, in run return self.run(edit) File "/Users/endaxue/Library/Application Support/Sublime Text 3/Packages/VUEFormatter/VUEFormatter.py", line 48, in run output = self.get_output_data(output) File "/Users/endaxue/Library/Application Support/Sublime Text 3/Packages/VUEFormatter/VUEFormatter.py", line 113, in get_output_data index = output.find(OUTPUT_VALID) AttributeError: 'NoneType' object has no attribute 'find'

itibbers commented 5 years ago

I have the same question: Unexpected error(<class 'AttributeError'>): 'NoneType' object has no attribute 'get'

CaledoniaProject commented 5 years ago

这个插件已经废了,可以用 jsbeautifer 替代,https://blog.damirmiladinov.com/vuejs/beautify-vuejs.html