Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: spawn dotnet ENOENT #100

Open
hs3434 opened this issue Oct 12, 2023 · 9 comments
Open

Error: spawn dotnet ENOENT #100

hs3434 opened this issue Oct 12, 2023 · 9 comments

Comments

@hs3434
Copy link

hs3434 commented Oct 12, 2023

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

@MikhailArkhipov
Copy link
Owner

MikhailArkhipov commented Oct 13, 2023

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
Copy link
Owner

Also, what distro is it?

@Shi-YuZhang
Copy link

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?

@MikhailArkhipov
Copy link
Owner

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

@hubert-thieriot
Copy link

hubert-thieriot commented Dec 14, 2023

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

@sjmgarnier
Copy link

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

@kpivert
Copy link

kpivert commented Feb 22, 2024

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.

@MikhailArkhipov
Copy link
Owner

MikhailArkhipov commented Feb 26, 2024

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

@kpivert
Copy link

kpivert commented Mar 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants