REditorSupport / languageserver

An implementation of the Language Server Protocol for R
Other
564 stars 91 forks source link

languageserver crashes with regex in file #640

Open johnroxton opened 7 months ago

johnroxton commented 7 months ago

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.