Open VLucet opened 3 years ago
So what happens exactly? Any output in R Tools Startup
or R Tools
tabs?
Sorry i wasn't clear, what happens is that I get the prompt to install .Net and that is all, even after reboot. I also tried disabling the checks for .Net in the settings but I get notified that the extension failed 5 times and that I will not try to start again.
Try this
ls
. I believe it is ~/.vscode/extensions/mikhail-arkhipov.r-0.0.20/ls
dotnet Microsoft.R.LanguageServer.dll
does it start?
Thanks, here is what I got when I do this:
Cannot use file stream for [/home/vlucet/.vscode/extensions/mikhail-arkhipov.r-0.0.20/ls/Microsoft.R.LanguageServer.runtimeconfig.json]: Permission denied
Invalid runtimeconfig.json [/home/vlucet/.vscode/extensions/mikhail-arkhipov.r-0.0.20/ls/Microsoft.R.LanguageServer.runtimeconfig.json] [/home/vlucet/.vscode/extensions/mikhail-arkhipov.r-0.0.20/ls/Microsoft.R.LanguageServer.runtimeconfig.dev.json]
Using sudo
does not help.
It looks like you somehow don't have permissions to read Microsoft.R.LanguageServer.runtimeconfig.json
? Are you able to open it in a text editor? Perhaps reinstall extension (with deleting its folder after uninstall + restart vs code).
So I unisntalled the app, deleted the folder, rebooted, then I reinstalled and still have the issue. I can open the json file in vscode:
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "5.0.0"
}
}
}
Unsure if that helps, but here is the root env var for dotnet:
➜ ls echo $DOTNET_ROOT
/snap/dotnet-runtime-50/current
In addition, here are the permission set on the json file:
➜ ls ls Microsoft.R.LanguageServer.dll -la
-rw-rw-r-- 1 vlucet vlucet 107520 Mar 16 23:31 Microsoft.R.LanguageServer.dll
I am seeing the exact same issue, working on Ubuntu 20.04 on VS Code insiders. Did you find any solution @VLucet?
No, I haven't
Same issue on macOS 11.3.1 with Homebrew-installed dotnet 5.0.203 (with DOTNET_ROOT
set); however, here running the dotnet Microsoft.R.LanguageServer.dll
in extension's ls
subfolder seems to work fine (no output).
What happens if you set r.dependencyChecks
to false
? Does extension work?
Yes, seems like it does work w/ r.dependencyChecks
set to false
- nice, will try it out.
I have the exact same 'permissions' issue. I can read the json in a text editor though. Setting r.dependencyChecks to false doesn't appear to help for me.
Any other suggestions?
Hi, I'm on Linux (pop os 20.10), I have installed the extension and was prompted to install .NET. I have the folowing dotnet install:
I have also added
export DOTNET_ROOT=/snap/dotnet-runtime-50/current
to my.zshrc
It seems that the extension is not finding the .NET runtime, would appreciate any help!