ManuelHentschel / vscDebugger

(Partial) Implementation of the Debug Adapter Protocol for R
https://manuelhentschel.github.io/vscDebugger/
MIT License
90 stars 14 forks source link

package 'vscDebugger' not installed because it is not built for UCRT #182

Open jiaohxiong opened 2 years ago

jiaohxiong commented 2 years ago

Error in unpackPkgZip(pkgs[i], pkgnames[i], lib, libs_only, lock, quiet) : package 'vscDebugger' not installed because it is not built for UCRT Calls: install.packages -> .install.winbinary -> unpackPkgZip

aragornii commented 2 years ago

Any solution for this error? It's happening to me too in VS Code but I'm not sure to what is due.

mvwestendorp commented 2 years ago

A workaround is to build it from source using R 4.2 on Windows. The error relates to the UCRT runtime that is used starting from version 4.2 to support native UTF-8 encoding for Windows. This is my binary build from simply cloning the repo and building the binary packages via RStudio: vscDebugger_0.4.7.zip I have not seen the error since. Or directly: install.packages('https://github.com/ManuelHentschel/vscDebugger/files/9231784/vscDebugger_0.4.7.zip', repos = NULL, type = "win.binary")

aragornii commented 2 years ago

Thanks @mvwestendorp, it worked perfectly.

Ljtyxhc commented 2 years ago

thanks you are the real hero

zhcxww commented 2 years ago

@mvwestendorp you are so cool!!!😎

filods commented 1 year ago

does anyone know what command to run in github codespaces

eitsupi commented 1 year ago

does anyone know what command to run in github codespaces

I don't think this issue is related to Linux on Codespaces as it only concerns Windows.

You should be able to use the debugger-configured container using the template below. https://github.com/rocker-org/devcontainer-templates/tree/main/src/r-ver