Skip to content

language server tooltips, colour picker, etc. not working after updating to R 4.2. #563

@bighungryjames

Description

@bighungryjames

image

language server tooltips are not working after updating R.

One of the Bioconductor packages I needed required updating R to latest version (4.2.1 currently), so I updated R using "installr" package. (Which could have been the problem.) Last version I used was R 4.1.2.

After the update, I re-opended the vscode, and noticed that all of the language server functionalities stopped working. The affected functionalities include function definition tooltips (as on the image above), colour picker.

I tried changing my network connection from my workplace's to my private one, but that did not affected anything.

I also tried relocating the languageserver lib from the default lib (C:/Program Files/R/R-4.2.1/library) to a directory inside My Documents via languageserversetup package, but that did not do anything either. Note that I also fixed the .Rprofile problem by appending the following code (I reversed slashes in the address in the code so that the directory separators work as intended):

# LanguageServer Setup Start (do not change this chunk)
# to remove this, run languageserversetup::remove_from_rprofile
if (requireNamespace('languageserversetup', quietly = TRUE)) {
  options(langserver_library = 'C:/Users/*****/Documents/languageserver-library')
  languageserversetup::languageserver_startup()
  unloadNamespace('languageserversetup')
}
# LanguageServer Setup End

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions