You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default lspOptions have omitNothingFields = True. This causes the _processId field of InitializeParams to get omitted when Nothing, in violation of the LSP spec which says its type should be processId: number | null;. It appears the same applies to _rootUri within this type as well.
The text was updated successfully, but these errors were encountered:
thomasjm
changed the title
Use of lspOptions to ToJSON instance of InitializeParams is not right
Use of lspOptions in ToJSON instance of InitializeParams is not right
May 15, 2020
The default
lspOptions
haveomitNothingFields = True
. This causes the_processId
field ofInitializeParams
to get omitted whenNothing
, in violation of the LSP spec which says its type should beprocessId: number | null;
. It appears the same applies to_rootUri
within this type as well.https://github.com/alanz/haskell-lsp/blob/2ff11293fc55cb59a095918d4193a748bb78078f/haskell-lsp-types/src/Language/Haskell/LSP/Types/DataTypesJSON.hs#L133
I found that the language server jedi-language-server chokes on this.
The text was updated successfully, but these errors were encountered: