[fpc-pascal] JSON RPC on Mac M1 fails

Hairy Pixels genericptr at gmail.com
Wed Mar 9 15:49:58 CET 2022


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);

And then the client returns back the message:

	No class "initialize" with method "initialize" was found.

Which I assumed is from the JSON RPC layer.

Are there known bugs with the code on aarch64? Strangely the old x86_64 version does run but it failed trying to find some units in directories which were outside the project directory (no idea why this one thing broke). My only guess is maybe some ifdefs are broken for aarch64 since that’s something I came across in my own code.

Regards,
	Ryan Joseph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220309/cf52e280/attachment.htm>


More information about the fpc-pascal mailing list