EmmyLua / VSCode-EmmyLua

Lua IDE/Debugger Plugin for VSCode
637 stars 89 forks source link

Request textDocument/inlineValue failed一直提示这个是什么原因 #175

Open Notteaquail opened 2 months ago

Notteaquail commented 2 months ago

System.Text.Json.JsonException: The JSON value could not be converted to System.Int32. Path: $.context.frameId | LineNumber: 0 | BytePositionInLine: 185. ---> System.InvalidOperationException: Cannot get the value of a token type 'String' as a number. at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_ExpectedNumber(JsonTokenType) + 0x1b at System.Text.Json.Utf8JsonReader.TryGetInt32(Int32&) + 0xc1 at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object, ReadStack&, Utf8JsonReader&) + 0x84 at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader&, Type, JsonSerializerOptions, ReadStack&, T&) + 0x7a5 at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader&, Type, JsonSerializerOptions, ReadStack&, T&, Boolean&) + 0x1b8 at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object, ReadStack&, Utf8JsonReader&) + 0x129 at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader&, Type, JsonSerializerOptions, ReadStack&, T&) + 0x7a5 at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader&, Type, JsonSerializerOptions, ReadStack&, T&, Boolean&) + 0x1b8 at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader&, JsonSerializerOptions, ReadStack&) + 0xd7 --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack&, Utf8JsonReader&, Exception) + 0x43 at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader&, JsonSerializerOptions, ReadStack&) + 0x219 at EmmyLua.LanguageServer.Framework.Server.Handler.InlineValueHandlerBase.<>c__DisplayClass1_0.<b0>d.MoveNext() + 0x2bf --- End of stack trace from previous location --- at EmmyLua.LanguageServer.Framework.Server.LanguageServer.d58.MoveNext() + 0x3de [Error - 4:38:39 PM] Request textDocument/inlineValue failed. Message: The JSON value could not be converted to System.Int32. Path: $.context.frameId | LineNumber: 0 | BytePositionInLine: 185. Code: -32700

CppCXY commented 2 months ago

什么版本

Notteaquail commented 2 months ago

v0.8.18

CppCXY commented 2 months ago

你提出这个问题的时候0.8.18还没有更新, 现在还有这个问题?

Notteaquail commented 2 months ago

还有,使用luapanda调试的时候触发的

CppCXY commented 2 months ago

根据LSP规定freamId必须是整数, 从错误来看他违反了规定, 这不值得我去兼容, 如果你非要使用luapanda你可以去vscode设置里面关掉inlineValues

Notteaquail commented 2 months ago

好的