[fpc-pascal] JSON RPC on Mac M1 fails
Michael Van Canneyt
michael at freepascal.org
Wed Mar 9 16:48:51 CET 2022
On Wed, 9 Mar 2022, Hairy Pixels via fpc-pascal wrote:
> I don’t know where to start debugging this yet but I found that compiling
> for the aarch64 target now breaks my Pascal language server which uses
> JSON RPC.
>
> It breaks early on when sending the first message (initialize) which I register like this:
>
> JSONRPCHandlerManager.RegisterHandler('initialize', TInitialize);
So you get an exception here ?
>
> And then the client returns back the message:
>
> No class "initialize" with method "initialize" was found.
It's not normal that there is 2 times 'initialize' ?
The first should be a class name, and the second a method name.
>
> Which I assumed is from the JSON RPC layer.
Yes.
If you updated from trunk:
I fixed some bugs in the JSONRPC mechanism.
Maybe you are now bumping into something that used to work by accident but
which is now caught...
But then I would also barf at Hairy Pixels.
Michael.
More information about the fpc-pascal
mailing list