Skip to content

JsonRpc throws if given argument list is a collection type other than a literal array #272

@heejaechang

Description

@heejaechang

exception is Object serialized to Array. JObject instance expected.

I have dump here (\mlangfs1\public\hechang\jsonRpc)

tokenize

....

                Newtonsoft.Json.dll!Newtonsoft.Json.Linq.JObject.FromObject(object o, Newtonsoft.Json.JsonSerializer jsonSerializer)   Unknown
> StreamJsonRpc.dll!StreamJsonRpc.JsonMessageFormatter.TokenizeUserData(StreamJsonRpc.Protocol.JsonRpcMessage jsonRpcMessage) Line 314            C#
               StreamJsonRpc.dll!StreamJsonRpc.JsonMessageFormatter.Serialize(StreamJsonRpc.Protocol.JsonRpcMessage message) Line 190            C#
               StreamJsonRpc.dll!StreamJsonRpc.JsonMessageFormatter.Serialize(System.Buffers.IBufferWriter<byte> contentBuffer, StreamJsonRpc.Protocol.JsonRpcMessage message) Line 135         C#
StreamJsonRpc.dll!StreamJsonRpc.HeaderDelimitedMessageHandler.Write(StreamJsonRpc.Protocol.JsonRpcMessage content, System.Threading.CancellationToken cancellationToken) Line 225            C#
      StreamJsonRpc.dll!StreamJsonRpc.PipeMessageHandler.WriteCoreAsync(StreamJsonRpc.Protocol.JsonRpcMessage content, System.Threading.CancellationToken cancellationToken) Line 101            C#
              StreamJsonRpc.dll!StreamJsonRpc.MessageHandlerBase.WriteAsync(StreamJsonRpc.Protocol.JsonRpcMessage content, System.Threading.CancellationToken cancellationToken) Line 137            C#
               StreamJsonRpc.dll!StreamJsonRpc.JsonRpc.TransmitAsync(StreamJsonRpc.Protocol.JsonRpcMessage message, System.Threading.CancellationToken cancellationToken) Line 1881           C#
               StreamJsonRpc.dll!StreamJsonRpc.JsonRpc.InvokeCoreAsync<object>(long? id, string targetName, System.Collections.Generic.IReadOnlyList<object> arguments, System.Threading.CancellationToken cancellationToken, bool isParameterObject) Line 1115     C#
               StreamJsonRpc.dll!StreamJsonRpc.JsonRpc.InvokeCoreAsync<object>(long? id, string targetName, System.Collections.Generic.IReadOnlyList<object> arguments, System.Threading.CancellationToken cancellationToken) Line 1005       C#
               StreamJsonRpc.dll!StreamJsonRpc.JsonRpc.InvokeWithCancellationAsync<object>(string targetName, System.Collections.Generic.IReadOnlyList<object> arguments, System.Threading.CancellationToken cancellationToken) Line 875         C#
Microsoft.VisualStudio.LanguageServices.dll!Microsoft.VisualStudio.LanguageServices.Remote.JsonRpcEx.InvokeAsync(string targetName, System.Collections.Generic.IReadOnlyList<object> arguments, System.Threading.CancellationToken cancellationToken) Line 62           C#
Microsoft.VisualStudio.LanguageServices.dll!Microsoft.VisualStudio.LanguageServices.Remote.JsonRpcConnection.InvokeAsync(string targetName, System.Collections.Generic.IReadOnlyList<object> arguments, System.Threading.CancellationToken cancellationToken) Line 37           C#

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions