You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going to use vscode's ruby-lsp plugin. However, after struggling for a while, I could not make the definition jump.
The cause seems to be the presence of Japanese comments in the file.
In the attached Ruby code, I assume a situation like jumping from pp TEST to TEST = 'test'.' In the case of the code written in success file 1', it succeeds. But for the code in failed file, it fails. The only difference is that the Japanese comment # テスト` is on the line above the jump source.
Furthermore, if you look at success file 2, it succeeds if the same Japanese comment is added to the line below the jump source.
If there is any information I am missing, please let me know.
Expected output
Maybe this is true for other languages as well. I hope that eventually Japanese will be handled properly and we can jump from pp TEST to TEST = 'test' in examples like failed file.
The text was updated successfully, but these errors were encountered:
I suspect this is related to #1251. The Prism parser returns byte instead of character locations, so multibyte characters are currently throwing off the language server. We need to come up with a strategy to fix this generally for the entire language server since locations are used everywhere.
Thanks for getting back to me. I could not find that Issue. Sorry to have bothered you.
It seems like a difficult issue to solve. I will wait patiently.
I look forward to having a great product available again. I wish you the best of luck!
Ruby version
3.1.4, 3.2.2, 3.3.0
Code snippet
Gemfile
vscode/settings.json
success file
failed file
success file 2
VSCode
However, I have the same issue on my Mac
Description
I was going to use vscode's ruby-lsp plugin. However, after struggling for a while, I could not make the definition jump.
The cause seems to be the presence of Japanese comments in the file.
In the attached Ruby code, I assume a situation like jumping from
pp TEST
toTEST = 'test'
.' In the case of the code written insuccess file 1', it succeeds. But for the code in
failed file, it fails. The only difference is that the Japanese comment
# テスト` is on the line above the jump source.Furthermore, if you look at
success file 2
, it succeeds if the same Japanese comment is added to the line below the jump source.If there is any information I am missing, please let me know.
Expected output
Maybe this is true for other languages as well. I hope that eventually Japanese will be handled properly and we can jump from
pp TEST
toTEST = 'test'
in examples likefailed file
.The text was updated successfully, but these errors were encountered: