我刚刚在 vscode 中设置了 R 来与 Jupyter 笔记本一起使用,但它用红色标记了我的内核的第一个字符串。
我收到的消息是:
Failed to run diagnostics: ! error in callr subprocess
Caused by error:
! Full file exclusions must be character vectors of length 1. items: 1 are not! lintr
如果我卸载 languageserver 包,它就会消失,但 vscode 要求我重新安装它,然后它又回来了
我该如何摆脱这个?
尝试运行下面的 R 代码将语言服务器包更新到最新的开发版本:
install.packages("languageserver", repos = c(
reditorsupport = "https://reditorsupport.r-universe.dev",
getOption("repos")
))
see https://github.com/REditorSupport/vscode-R/issues/343 https://github.com/REditorSupport/vscode-R/issues/343以供参考。看来这个错误是通过修复的REditorSupport/语言服务器#610 https://github.com/REditorSupport/languageserver/pull/610.
我遇到了同样的错误,这对我有用。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)