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
Workspace containing a single file named "test.R" with content:
'\xa0'
Error:
Having this file open and reloading the vscode windows produces the following Error messages: "Connection to server got closed. Server will not be restarted." (Source: R) "Client R Language Server: connection to server is erroring. read ECONNRESET" (Source: R)
R Language Server output channel contains:
R Language Server (11948) started
R library paths: C:/Users/Manuel/AppData/Local/R/win-library/4.3
C:/Program Files/R/R-4.3.3/library
[2024-03-25 10:19:25.933] Error: file name conversion problem -- name too long?
Call: file.exists(str_texts)
Stack trace:
1: file.exists(str_texts)
2: with_wd(rootPath, file.exists(str_texts) & !dir.exists(str_texts))
3: document_link_reply(id, uri, self$workspace, document, rootPath)
4: handler(self, item$id, item$params)
5: parse_callback(self, uri, version, result)
6: private$callback(result)
7: task$check()
8: self$parse_task_manager$check_tasks()
9: self$process_events()
[2024-03-25 10:19:25.935] exiting
[Error - 10:19:25 AM] Client R Language Server: connection to server is erroring.
read ECONNRESET
[Error - 10:19:25 AM] Client R Language Server: connection to server is erroring.
read ECONNRESET
[Error - 10:19:25 AM] Connection to server got closed. Server will not be restarted.
R Language Server (11948) exited with exit code nul
Notes:
I could not reproduce using wsl.
The file name does not seem to be the issue, the error does not occur with different file contents.
If I start with an empty file and add the text '\xa0', the languageserver usually does not crash and features like Go to Definition work on the following:
s<-'\xa0's
The text was updated successfully, but these errors were encountered:
I'm getting the same (or only similar error, but with a different cause:
[2024-07-22 11:49:52.050] Error: cannot change working directory
Call: setwd(wd)
Stack trace:
1: setwd(wd)
2: with_wd(rootPath, file.exists(str_texts) & !dir.exists(str_texts))
3: document_link_reply(id, uri, self$workspace, document, rootPath)
4: handler(self, item$id, item$params)
5: parse_callback(self, uri, version, result)
6: private$callback(result)
7: task$check()
8: self$parse_task_manager$check_tasks()
9: self$process_events()
[2024-07-22 11:49:52.053] exiting
[Error - 11:49:53 AM] Client R Language Server: connection to server is erroring.
read ECONNRESET
[Error - 11:49:53 AM] Client R Language Server: connection to server is erroring.
read ECONNRESET
[Error - 11:49:53 AM] Connection to server got closed. Server will not be restarted.
R Language Server (5788) exited with exit code null
From the second step of the stack trace onwards, it's almost identical.
Setup:
Workspace containing a single file named "test.R" with content:
'\xa0'
Error:
Having this file open and reloading the vscode windows produces the following Error messages:
"Connection to server got closed. Server will not be restarted."
(Source: R)"Client R Language Server: connection to server is erroring. read ECONNRESET"
(Source: R)R Language Server output channel contains:
Notes:
I could not reproduce using wsl.
The file name does not seem to be the issue, the error does not occur with different file contents.
If I start with an empty file and add the text
'\xa0'
, the languageserver usually does not crash and features likeGo to Definition
work on the following:The text was updated successfully, but these errors were encountered: