-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
language server tooltips, colour picker, etc. not working after updating to R 4.2. #563
Comments
UPDATE: The problem disappeared as I reverted R to version 4.1.2. I guess this was a problem of version incompatibility. Since I have to use some packages in R 4.2.1 environment, I wish this issue is handled swiftly. |
Are you using the same library path with different R versions? Some packages with compiled code might not work properly if it is the case. |
Well, could you elaborate on the library path part? Before reverting to R 4.1.2, I was using R 4.2.1 and I uninstalled all the previous versions of R, reinstalling the packages I use via The library paths I use are the default ones, C:/Program Files/R/R-***/library. |
Something is seriously wrong here, as I noticed that if I remove the 4.2.1 library directories at |
Sounds like it is caused by your usage of |
Thank you for the quick responses. You're my savior! I deleted the languageserversetup package and the private library it created. Re-installing the languageserver without the languageserversetup restored the tooltips in R .1.2 environment. However, I am not sure about the R 4.2.1. Is the current CRAN version of language server not compatible with R 4.2? |
Would you like to enable |
Thank you for the guides! It says as the following: |
I tried (from searching similar cases) running the languageserver manually:
|
Does it work if you run languageserver::run(debug=TRUE, port = 13579) What's your vscode settings of vscode-R extension ( |
Thank you very much!!!!!
So I changed the In the meantime, as a newbie coder in R and python, maybe I should get more used to this vscode development environments. Thank you for all your time! |
Glad to know it works for you now. The experience of using multiple versions of R might be improved via REditorSupport/vscode-R#1143. |
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):
The text was updated successfully, but these errors were encountered: