Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文标点符号报错 #762

Closed
sumneko opened this issue Oct 27, 2021 · 1 comment
Closed

中文标点符号报错 #762

sumneko opened this issue Oct 27, 2021 · 1 comment
Labels
bug Something isn't working unicode Related to unicode characters

Comments

@sumneko
Copy link
Collaborator

sumneko commented Oct 27, 2021

似乎是昨天更新后才出现这样的问题?现在输入中文注释或者想往控制台输出中文,vscode就会有弹窗报以下错误

[Error - 上午11:19:06] Request textDocument/semanticTokens/range failed.
Message: [11:19:06.832][error][#0:script\encoder\utf16le.lua:37]: script\encoder\utf16le.lua:7: attempt to perform bitwise operation on a nil value (local 'h')
stack traceback:
script\encoder\utf16le.lua:37: in function 'encoder.utf16le.decode'
script\encoder\init.lua:45: in function 'encoder.offset'
script\proto\converter.lua:75: in function <script\proto\converter.lua:68>
(...tail calls...)
script\proto\converter.lua:137: in function 'proto.converter.unpackRange'
script\provider\provider.lua:711: in function <script\provider\provider.lua:699>
[C]: in function 'xpcall'
script\proto\proto.lua:148: in function <script\proto\proto.lua:123>

Code: -32603

[Error - 上午11:04:08] Request textDocument/codeAction failed.
Message: [11:04:08.784][error][#0:script\encoder\utf16le.lua:22]: script\encoder\utf16le.lua:22: invalid UTF-8 code
stack traceback:
script\encoder\utf16le.lua:22: in function 'encoder.utf16le.encode'
script\encoder\init.lua:44: in function 'encoder.offset'
script\proto\converter.lua:75: in function <script\proto\converter.lua:68>
(...tail calls...)
script\proto\converter.lua:136: in function 'proto.converter.unpackRange'
script\provider\provider.lua:617: in function <script\provider\provider.lua:608>
[C]: in function 'xpcall'
script\proto\proto.lua:148: in function <script\proto\proto.lua:123>

Code: -32603

Originally posted by @lilystudent2016 in #749 (comment)

@sumneko sumneko changed the title 似乎是昨天更新后才出现这样的问题?现在输入中文注释或者想往控制台输出中文,vscode就会有弹窗报以下错误 中文标点符号报错 Oct 27, 2021
@sumneko
Copy link
Collaborator Author

sumneko commented Oct 27, 2021

将光标放在任意中文标点符号附近,语言服务会报错

@sumneko sumneko added bug Something isn't working unicode Related to unicode characters labels Oct 27, 2021
sumneko added a commit that referenced this issue Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unicode Related to unicode characters
Projects
None yet
Development

No branches or pull requests

1 participant