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

Error: spawn dotnet ENOENT

Open hs3434 opened this issue 1 year ago • 9 comments

Linux version 3.10.0-957.el7.x86_64 R Tools v0.0.31 dotnet 6.0.412 code-server --version : 1.81.1 6c3e3dba23e8fadc360aed75ce363ba185c49794 x64 error: [Error - 3:27:27 AM] R Tools client: couldn't create connection to server. Launching server using command dotnet failed. Error: spawn dotnet ENOENT

hs3434 avatar Oct 12 '23 09:10 hs3434

On Linux the issue might be with permissions. When installing extension with binary native module VS Code, unfortunately, does not set executable permissions. The extensions attempts to fix this at first launch, but maybe something failed. Try Ctrl+Shift+P (Open Extensions Folder), then check if Microsoft.R.Host exists in extensions/mikhail-arkhipov.r-0.0.31/ls/Host/Linux and if you can launch Microsoft.R.Host --help

MikhailArkhipov avatar Oct 13 '23 18:10 MikhailArkhipov

Also, what distro is it?

MikhailArkhipov avatar Oct 14 '23 07:10 MikhailArkhipov

Here is Macos 14.0 (23A344) I met the same problem. Microsoft.R.Host exists in ~/.vscode-insiders/extensions/mikhail-arkhipov.r-0.0.32/ls/Host/Linux. I'm not sure how to launch Microsoft.R.Host --help? Could you give me some help?

Shi-YuZhang avatar Nov 12 '23 16:11 Shi-YuZhang

Open terminal and change your working directory to ~/.vscode-insiders/extensions/mikhail-arkhipov.r-0.0.32/ls/Host/Linux. Then ./Microsoft.R.Host --help

MikhailArkhipov avatar Nov 17 '23 07:11 MikhailArkhipov

I'm on macOS 12.5.1, M2 chip

./Microsoft.R.Host --help works fine in ls/Host/Mac/arm64

Still facing this error though:

R Tools client: couldn't create connection to server.
Launching server using command dotnet failed. Error: spawn dotnet ENOENT

hubert-thieriot avatar Dec 14 '23 11:12 hubert-thieriot

Same result as @hubert-thieriot but on MacOS 14.2.1, M1 chip.

sjmgarnier avatar Jan 10 '24 13:01 sjmgarnier

First, thank you for developing this extension. Full disclosure, I'm a VSCode newbie so this could be user error on my part...but I'm having the same issue as @hubert-thieriot and @sjmgarnier. MacOS 14.2.1, M2 chip. Please let me know if this has been addressed/solved in another issue or SO. Couldn't find anything specific to this issue, but I could have easily missed it. Thanks again.

kpivert avatar Feb 22 '24 23:02 kpivert

@hubert-thieriot, @kpivert and @sjmgarnier do you have .NET installed. What happens if you run dotnet

MikhailArkhipov avatar Feb 26 '24 01:02 MikhailArkhipov

Thanks, @MikhailArkhipov! Installing .NET resolved this for me. Didn't realize this was a requirement. Thanks again.

kpivert avatar Mar 06 '24 16:03 kpivert