Open sbwiecko opened 3 months ago
A temporary fix is to create a directory whose path does not have characters too weird for LSP, e.g., C:\R_HOME
, and to set the R Home Directory accordingly, as explained elsewhere:
C:\ ❯ [System.Environment]::SetEnvironmentVariable("R_USER", "C:\R_HOME", [System.EnvironmentVariableTarget]::User)
Then everything works smoothly
R Language Server (11064) started
R library paths: C:/Program Files/R/R-4.3.3/library
[2024-03-27 13:51:41.163] connection type: tcp at 54013
[2024-03-27 13:51:41.174] connected
[2024-03-27 13:51:41.486] received: Content-Length: 5942
[2024-03-27 13:51:41.716] received payload.
[2024-03-27 13:51:41.716] handling request: initialize
This is not a problem of languageserver
package
You can google the error message, this might be an issue with R itself
Error in file.exists(home) : file name conversion problem -- name too long?
I am sure it is not an issue with the latest versions of R, as it, outside the languageserver environement, gives me the right answer
r$> file.path(Sys.getenv("HOME"))
[1] "C:\\Users\\Sébastien\\Documents"
Hi everyone, there is an issue in VSCode with R LSP immediately when I launch the program with an R or Rmd file:
I believe it must come from the strange character of my username: