sublimelsp / LSP-json

Schema validation/completions for your JSON and Sublime files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The latest LSP-json doesn't work on ST 3.

jfcherng opened this issue · comments

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

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 :

Hope this helps, thanks!

Addressed. ST3 is now served an older version of LSP-json that doesn't have ST4-specific code.