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

No response after clicking R: (not attached) #1510

Open
Aurorabili opened this issue Apr 10, 2024 · 5 comments
Open

No response after clicking R: (not attached) #1510

Aurorabili opened this issue Apr 10, 2024 · 5 comments
Labels

Comments

@Aurorabili
Copy link

Describe the bug
R session not attached after run command R: create R terminal or click R: (not attached)

This is similar to the problem in #393 but the solution doesn't apply.

To Reproduce
Steps to reproduce the behavior:

  1. Use vscode to open a local folder
  2. Install according to wiki
  3. Click R: (not attached)
  4. The R terminal is opened, prompting .vsc.attach()
  5. The status bar is still R: (not attached)

Can you fix this issue by yourself? (We appreciate the help)

No

(If yes,) can we assist you with anything?

(If applicable) Please attach setting.json

"r.rterm.linux": "/home/4-BB/aurora/miniforge3/envs/dsenv/bin/R",
"r.rpath.linux": "/home/4-BB/aurora/miniforge3/envs/dsenv/bin/R",
"r.rterm.option": [
    "--no-save",
    "--no-restore",
],
"r.plot.useHttpgd": true,
"r.lsp.debug": true

I tried radian, but it also.

"r.rterm.linux": "/home/4-BB/aurora/miniforge3/envs/dsenv/bin/radian",
"r.rpath.linux": "/home/4-BB/aurora/miniforge3/envs/dsenv/bin/R",
"r.rterm.option": [
    "--no-save",
    "--no-restore",
    "--r-binary=/home/4-BB/aurora/miniforge3/envs/dsenv/bin/R"
],
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
"r.lsp.debug": true

Expected behavior
The status bar changes from R: (not attached) to the current R version number.

Screenshots
image

Environment (please complete the following information):

  • OS: Linux CentOS7
  • VSCode Version: 1.85.2
  • R Version: 4.3.3
  • vscode-R version: 2.8.2

Additional context

I saw that in other issues, when pressing R: (not attached), the developer tools console will prompt [updateRequest] and other information, but in fact nothing happened here.

image

I also noticed there was an error, maybe this is related?

Activating extension 'REditorSupport.r' failed: EMFILE: too many open files, watch '/home/aurrora/.vscode-R/request.lock'.
$onExtensionActivationError @ mainThreadExtensionService.ts:113
@Aurorabili Aurorabili added the bug label Apr 10, 2024
@sjmgarnier
Copy link

I can confirm the problem on MacOS 14.4.1, VSCode 1.88.1.

@GB-IHE
Copy link

GB-IHE commented May 15, 2024

I also have this problem since the update 2024-05-07.

@albertosantini
Copy link

EMFILE: too many open files error is relevant and is not related with this extension.

A few suggestions:

  • try to start vscode with only vscode-R extension: just to understand if it is a problem generated from another extension or it is a regression in vscode in your context.
  • try to change the limit of your operating system with ulimit (check your man for the correct command): for instance, https://serverfault.com/questions/637212/increasing-ulimit-on-centos

Hope that helps.

@Aurorabili
Copy link
Author

I think this may be an upstream issue, as a similar error is reported when I use pylance.

Unfortunately I don't have root access to change ulimit on this machine with the problem, and I can't reproduce the problem on a clean install of CentOS7.

@nolanjj
Copy link

nolanjj commented May 24, 2024

me too!!! help~~~

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

No branches or pull requests

5 participants