Closed slackline closed 1 year ago
pydantic.error_wrappers.ValidationError: 1 validation error for InitializeParams
processId
value is not a valid integer (type=type_error.integer)
This assertion is the server claiming that the client is sending a bad message (specifically: a non-integer process ID).
You will need to get trace showing the message, and compare it with what the LSP specification says is allowed. I'm not an emacs user but I expect that its LSP client has some sort of setting to log the protocol flows.
Then you can either agree with the server that the client is sending a bad message - in which case raise the issue at the client; or you can disagree, in which case raise the issue at the server.
Thanks for the pointers, I'll try and get a trace out and work out where the problem is occurring.
Pygls has now migrated to lsprotocol
, so no longer depends on Pydantic. lsprotocol
itseslf uses https://github.com/python-attrs/cattrs
Thank you @tombh very much appreciated.
Our pleasure 🙇 The greater thanks goes to @alcarney in particular for the migration itself. And Brett and Karthik from Microsoft too ❤️
I've encountered an error that pydantic has with
pygls
when used byjedi-language-server
...The authors of jedi-language-server suggested it might be down to lsp-jedi who suggested it might be down to
jedi-language-server
, but the error appeares to stem frompygls
and its use ofpydantic
(from my crude reading).This is with the following versions installed under user account rather than virtualenv
If there is any more useful information or steps I can take to help with investigating and resolving this please let me know.