REditorSupport / REditorSupport/languageserver
languageserver crashes with regex in file
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 675
- Forks
- 118
- Avg merge
- 1d 37m
- Merged PRs (30d)
- 11
Description
I am using R in VSCode with languageserver on Win10. However, when I open a simple .R file like:
library(data.table)
list <- fread("test.txt")
list[, V2 := gsub("\xc3\x97", " x ", V2)]
list[, V2 := gsub("\ud7", " x ", V2)]
list[, V2 := gsub("\x8a", "S", V2)]
I get the error message "Connection to server got closed. Server will not be restarted." and "Client R Language Server: connection to server is erroring. read ECONNRESET"
I am not sure if there is a problem with individual settings on my system, but I have not come across any problem with that in my other code files. I was not able to reproduce the error on my Ubuntu machine.
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
Start by reproducing the crash in VSCode with the shown simple .R file on Windows 10, then narrow down which regex line triggers the language server disconnect. No source file or test is named; done means identifying the Windows-specific failure and confirming the server stays connected for the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100