vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

Installing packages from source fails when enable LSP support

Open qianchd opened this issue 1 year ago • 0 comments

Describe the bug When enable LSP support, multiple R-backend processes will exist. Then when I try to install some package from source, it will fail and print that the previous package can not be removed.

And in windows 11, when I kill these processes in the system manager, the installation will be succeed.

Also when I disable the LSP support in the setting, the installation also passes.

To Reproduce I use the following task configuration in vscode.

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "R",
			"code": [
				"devtools::install(upgrade=FALSE, quick=TRUE)"
			],
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"problemMatcher": [],
			"label": "R: Quick Install",
			"presentation": {
				"reveal": "silent",
				"focus": true,
				"panel": "shared"
			}
		},
		{
			"type": "R",
			"code": [
				"devtools::install(upgrade=FALSE)"
			],
			"group": {
				"kind": "build"
			},
			"problemMatcher": [],
			"label": "R: Full Install",
			"presentation": {
				"reveal": "silent",
				"focus": true,
				"panel": "shared"
			}
		},
		{
			"type": "R",
			"code": [
				"devtools::build()"
			],
			"group": "build",
			"problemMatcher": [],
			"label": "R: Build"
		}
	]
}

qianchd avatar Jul 31 '24 10:07 qianchd