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

Significantly delay of auto port forwarding under remote development #112297

Closed
renkun-ken opened this issue Dec 11, 2020 · 2 comments
Closed

Significantly delay of auto port forwarding under remote development #112297

renkun-ken opened this issue Dec 11, 2020 · 2 comments
Assignees

Comments

@renkun-ken
Copy link

  • VSCode Version: 1.52.0
  • OS Version: macOS 11.0.1

Steps to Reproduce:

Kapture 2020-12-11 at 23 19 11

In my case, I'm using shiny in R on a remote server via SSH.

  1. Install R and shiny package
  2. Install vscode-R extension and enable r.sessionWatcher
  3. In VSCode, run R: Create R terminal
  4. run shiny::runExample("01_hello")
  5. A blank WebView is shown but it relies on port forwarding to work.

The WebVie port mapping is broken (#102449) for quite a while, but auto port forwarding used to be a good walk-around since it seems to detect the ports that appear in the terminal output.

However, in the recent release, I start to experience significant delay of the auto port forwarding, which makes such WebViews no longer work.

Does this issue occur when all extensions are disabled?: Yes (except remote ssh)

@alexr00 alexr00 added bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release labels Dec 14, 2020
@alexr00 alexr00 added this to the November 2020 Recovery milestone Dec 14, 2020
@alexr00
Copy link
Member

alexr00 commented Dec 14, 2020

@renkun-ken the delay was added to work around some other issues.

If your application uses the same port every time, you can use that ports view you have open to forward the port, then it will stay forwarded and restore when you reload the window to if you use the setting remote.restoreForwardedPorts.

@renkun-ken
Copy link
Author

Thanks for the tips.

I switched to vscode.env.asExternalUri in REditorSupport/vscode-R#494 and this problem is no longer relevant. I guess I could close this for now.

@alexr00 alexr00 removed this from the November 2020 Recovery milestone Dec 14, 2020
@alexr00 alexr00 removed bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release labels Dec 14, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants