Re: [fpc-pascal] JSON RPC changes in 3.3.1
Yes you indeed fixed it! Thanks again. > On Sep 29, 2022, at 9:35 PM, Michael Van Canneyt > wrote: > > > First see if it fixes your problem, then thank me ;-) > > Michael. > > On Thu, 29 Sep 2022, Hairy Pixels wrote: > >> Thanks Michael! >> >>> On Sep 29, 2022, at 9:29 PM, Michael Van Canneyt via fpc-pascal >>> wrote: >>> >>> Yes. It was committed & pushed yesterday. >>> >> >> Regards, >> Ryan Joseph >> Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] JSON RPC changes in 3.3.1
Thanks Michael! > On Sep 29, 2022, at 9:29 PM, Michael Van Canneyt via fpc-pascal > wrote: > > Yes. It was committed & pushed yesterday. > Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] JSON RPC changes in 3.3.1
On Thu, 29 Sep 2022, Hairy Pixels via fpc-pascal wrote: On Sep 28, 2022, at 10:56 PM, Michael Van Canneyt wrote: The error "Can't find class 'initialize' with method 'initialize'" is an error (uninitialized variable) that has now been fixed. You mean you just fixed it in trunk? I hope so. It was driving me crazy trying to figure out went wrong. Yes. It was committed & pushed yesterday. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] JSON RPC changes in 3.3.1
> On Sep 28, 2022, at 10:56 PM, Michael Van Canneyt > wrote: > > The error "Can't find class 'initialize' with method 'initialize'" is an > error (uninitialized variable) that has now been fixed. You mean you just fixed it in trunk? I hope so. It was driving me crazy trying to figure out went wrong. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] JSON RPC changes in 3.3.1
On Wed, 28 Sep 2022, Hairy Pixels via fpc-pascal wrote: On Sep 28, 2022, at 1:34 PM, Luca Olivetti via fpc-pascal wrote: Maybe related to this? https://lists.freepascal.org/pipermail/pas2js/2022-September/00.html The question then is did they change something in 3.3.1 in regards to how parameters can be sent? The error "Parameters must be passed in an object or an array.” Suggests maybe I was sending the params as some other type and this is now illegal in 3.3.1. The 'must send params as object or array' error means exactly what it says: you didn't send params as an object or an array. Or maybe you didn't send params at all. I can't help further if you don't show the exact request. The error "Can't find class 'initialize' with method 'initialize'" is an error (uninitialized variable) that has now been fixed. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] JSON RPC changes in 3.3.1
El 28/9/22 a les 8:51, Hairy Pixels via fpc-pascal ha escrit: On Sep 28, 2022, at 1:34 PM, Luca Olivetti via fpc-pascal wrote: Maybe related to this? https://lists.freepascal.org/pipermail/pas2js/2022-September/00.html The question then is did they change something in 3.3.1 in regards to how parameters can be sent? The error "Parameters must be passed in an object or an array.” Suggests maybe I was sending the params as some other type and this is now illegal in 3.3.1. In my case there was no parameter at all (since it was an empty array), which is either a fault of the client library (pas2js) or of the server (which should not consider it as an error if the method needs no parameters). For the time being I modified my code to send a dummy parameter. Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] JSON RPC changes in 3.3.1
> On Sep 28, 2022, at 1:51 PM, Hairy Pixels wrote: > > The question then is did they change something in 3.3.1 in regards to how > parameters can be sent? The error "Parameters must be passed in an object or > an array.” Suggests maybe I was sending the params as some other type and > this is now illegal in 3.3.1. Quick update. I’m very confused now but I deleted the build folder along with the old exec and now I’m getting a similar error on 3.2. I don’t know what happened but I think I was building against some old object files or something. So something changed but I’m still not sure what. What does that error "'Cannot convert data from object value’” mean exactly? :: <~~ pascal-language-server 1: {'message': 'Cannot convert data from object value', 'code': -32603} :: --> pascal-language-server shutdown(2): None :: <~~ pascal-language-server 2: {'message': 'Parameters must be passed in an object or an array.', 'code': -32602} :: -> pascal-language-server exit: None pascal-language-server: invalid response -> {"jsonrpc":"2.0","error":{"code":-32602,"message":"Parameters must be passed in an object or an array."},"id":null} Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] JSON RPC changes in 3.3.1
> On Sep 28, 2022, at 1:34 PM, Luca Olivetti via fpc-pascal > wrote: > > Maybe related to this? > > https://lists.freepascal.org/pipermail/pas2js/2022-September/00.html The question then is did they change something in 3.3.1 in regards to how parameters can be sent? The error "Parameters must be passed in an object or an array.” Suggests maybe I was sending the params as some other type and this is now illegal in 3.3.1. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] JSON RPC changes in 3.3.1
El 28/9/22 a les 3:06, Hairy Pixels via fpc-pascal ha escrit: :: <~~ pascal-language-server 6: {'message': 'Parameters must be passed in an object or an array.', 'code': -32602} Maybe related to this? https://lists.freepascal.org/pipermail/pas2js/2022-September/00.html (though I'm getting it with 3.2.2). Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal