The latest LSP-json doesn't work on ST 3.
jfcherng opened this issue · comments
Jack Cherng commented
As per report on sublimelsp/LSP-css#46 (comment)
File "/Applications/Sublime Text 3.app/Contents/MacOS/sublime_plugin.py", line 125, in reload_plugin
m = importlib.import_module(modulename)
File "./python3.3/importlib/__init__.py", line 90, in import_module
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "/Applications/Sublime Text 3.app/Contents/MacOS/sublime_plugin.py", line 1199, in load_module
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "/Users/juliangarnier/Library/Application Support/Sublime Text 3/Installed Packages/LSP-json.sublime-package/commands.py", line 1, in <module>
ImportError: cannot import name LspTextCommand
Julian Garnier commented
I haven't pinpointed which version of lsp-json breaks ST3 compatibility, but the error mentioned above is similar to these issues:
sublimelsp/LSP-html#45
sublimelsp/LSP-css#46
Where both html / css languages introduced a similar change before breaking ST3 compatibility :
- feat: implement support for css.customData (sublimelsp/LSP-css#44)
- feat: implement support for html.customData (sublimelsp/LSP-html#38)
Hope this helps, thanks!
Rafał Chłodnicki commented
Addressed. ST3 is now served an older version of LSP-json that doesn't have ST4-specific code.