I have installed the new in house Remote SSH extension. I usually connect to the same remote host with two or more windows to open different folders. When I first connected to the host, everything worked fine. But when I tried to connect to the same host from a different window, I got this error. When I click on Reinstall server, it works fine. Then the same issue appears over and over again after I try to open other folders.
It seems like the issue occurs when I try to connect to the same host from different windows at the same time, because when I close the other windows, it successfully connects. There’s also no option to “open remote folder” directly from command palette, so I use “connect to host”.
I’ve always been using vscode’s own remote ssh extension like this, so is this there some configuration I need to change in order to regain this functionality or it will be added in the future?
Hi @yagiz, thanks for sharing this issue. Multiple windows should be supported – from the logs, it looks like the (first?) window never releases the lock, which prevents the subsequent windows from loading.
Could you elaborate on how you are connecting for the first window, and for the 2nd+ windows (are you using the “Connect to Host” for all of them?) And, what is the platform for the remote machine? (Could you share cat /etc/os-release and uname -a)? Trying to see if we can reproduce this. Thanks!
Hello again. I just realized that this issue happens when I try to connect to a new remote window when a docker container is open in another window I use devcontainer.json setup to open the docker containers in Cursor. When I try to open two regular folders remotely, it works fine. But when I open a remote container, it starts blocking the other windows as well.
I use “Connect to Host” for all of them. I use “Reopen in Container” to open containers and recent projects section after I open them once. It seems like container windows are blocking the other windows.
Hi @yagiz, could you try upgrading to the latest version of the Anysphere Remote SSH and Remote Containers extensions? We identified and fixed a few bugs in the Remote SSH extension that could have caused issues with stale lockfiles.
If that doesn’t work, would it be possible to share a screenshot / screencast of what is happening? That would be super helpful to figure out what is going on here. Thanks!