Skip to content

Conversation

@sandersn
Copy link
Contributor

This forces json serialisation to produce an object as an argument; previously, on some machines it would serialise ''nil as ["quote", null]. It seems that all messages expect an object for parameters; it's just expected to be empty for sign-in, sign-out and checking status.

I don't know much about json serialisation in emacs, so it's possible that there's a way to configure jsonrpc differently, or that my setup has a bad combination of versions. This fix is more of a workaround.

Fixes #63

This forces json serialisation to produce an object as an argument;
previously, on some machines it would serialise `''nil` as `["quote",
null]`.

Fixes copilot-emacs#63
@zerolfx zerolfx merged commit c34447d into copilot-emacs:main Nov 14, 2022
@sandersn sandersn deleted the substitute-dummy-parameters-for-nil-copilot-requests branch November 15, 2022 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

copilot-login jsonrpc error: Invalid params: must be object

2 participants