REditorSupport / REditorSupport/languageserver
Problem with Chinese characters
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 675
- Forks
- 118
- Avg merge
- 1d 37m
- Merged PRs (30d)
- 11
Description
I'm not sure whether this is a bug for REditorSupport/vscode-R, R languageserver packages, or miss settings in vscode.
Description of Problem:
When I wrote an R program that included Chinese characters, the Chinese characters were automatically transformed into unicode.
before:
library(openxlsx)
read.xlsx("中文.xlsx")
after:
library(openxlsx)
read.xlsx("<U+4E2D><U+6587>.xlsx")
Environment (please complete the following information):
OS: Windwos 10
VSCode Version: 1.76.0
R Version: 4.1.3
vscode-R version: v2.7.2
Other Settings:
R>Lsp:Enabled
Enable the R language service to provide code analysis features completion,signature,hover,diagnostics,definition,etc.)
r$> sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936
[2] LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils
[5] datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.3 cli_3.6.0
[3] jsonlite_1.8.4 rlang_1.0.6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files or tests. Start by reproducing the Windows 10 example with R 4.1.3 and the listed language-service setting, then determine whether vscode-R, the R language server, or VS Code transforms the Chinese characters. Done means identifying the responsible component and preserving the original characters in the saved R code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100