vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

[Remote-SSH Bug]: Error connecting to any remote: withRevealTerminalEvent can only be called once at a time globally within the app

Open akosyakov opened this issue 1 year ago • 2 comments

Is there an existing issue for this bug?

  • [X] I have searched the existing issues

Required Troubleshooting Steps

  • [X] I have followed these troubleshooting steps
  • [X] I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It doesn’t connect successfully (same error message)

->

I have several extensions which depend on remote SSH extension and some users are failing to connect because of it. This issue was reported before https://github.com/microsoft/vscode/issues/197512 We could apply similar workaround on our side, but it looks like a bug.

Expected Behavior

The remote SSH extension shoudl not activate twice, regardless of dependencies.

Steps To Reproduce

No response

Remote-SSH Log

Remote-SSH Log

[PASTE LOG HERE]

Anything else?

No response

akosyakov avatar Jun 27 '24 19:06 akosyakov

I'm confused about how you end up triggering this error. Can you explain some more what the extensions do?

roblourens avatar Jun 27 '24 21:06 roblourens

I tried adding remote-ssh as an extensionDependency to an extension, and I don't see the issue, what do you mean by 'depend on remote SSH'?

roblourens avatar Jun 27 '24 21:06 roblourens

@roblourens it seems to trigger only on Windows and if there are several extensions depending on remote-ssh are activated in the remote window. Yes via extensionDependencies. Maybe timing of extension activation is matter too, for ours it was with onResolveRemoteAuthority:ssh-remote activation event.

akosyakov avatar Jul 01 '24 09:07 akosyakov

I'll try it, but using onResolveRemoteAuthority:ssh-remote may not work, it's sort of a special activation event for resolvers. And these extensions are on the remote side? Remote-SSH is a local extension, maybe that's part of the problem too.

roblourens avatar Jul 01 '24 16:07 roblourens

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

vscodenpa avatar Jul 09 '24 12:07 vscodenpa