erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.62k stars 53 forks source link

fix jsonrpc version type to honor JSON-RPC protocol spec #437

Closed estin closed 1 year ago

estin commented 1 year ago

Hi!

I'm trying pylyzer with Helix editor. This fix allow to use pylyzer.

In specification https://www.jsonrpc.org/specification#response_object

jsonrpc
  A String specifying the version of the JSON-RPC protocol. MUST be exactly "2.0".

to enable pylyzer in helix: ~/.config/helix/languages.toml

[language-server]
pylyzer = { command = "pylyzer", args = ["--server"] }

[[language]]
name = "python"
language-servers = [ "pylyzer" ]
auto-format = true
# TODO: pyls needs utf-8 offsets
indent = { tab-width = 4, unit = "    " }
mtshiba commented 1 year ago

Thank you!

Soon I will release a new pylyzer version.