alefragnani / vscode-project-manager

Project Manager Extension for Visual Studio Code
GNU General Public License v3.0
1.87k stars 222 forks source link

[BUG] - Remote SSH "Not an Authority" #693

Closed TheTaylorLee closed 1 year ago

TheTaylorLee commented 1 year ago

Environment/version

Error Shown image

Steps to reproduce

  1. Use project manager to open a remote SSH workspace
alefragnani commented 1 year ago

Hi @TheTaylorLee ,

Could you detail how the workspace is stored in Project Manager extension? I mean, is it something like:

        {
        "name": "My SSH Workspace",
        "rootPath": "~/Documents/Projects/MySSHConnection.code-workspace",
        "paths": [],
        "tags": [],
        "enabled": true,
        "profile": ""
    },

The extension doesn't do any connection to the remote machine, but only asks VS Code to open to path/workspace/folder you did configure in rootPath property. So, if it says something about authority when you open that workspace, I suppose it would do the same if you open the workspace via VS Code itself, using the native File / Open... command.

Hope this helps

TheTaylorLee commented 1 year ago

Thanks for the help. I tested opening the workspace directly and had the same issue. Seems like a bug with the new release of vscode.

{
        "name": "TALDocker",
        "rootPath": "g:\\github\\scripts\\VSCode\\Workspaces\\TALDocker.code-workspace",
        "paths": [],
        "tags": [],
        "enabled": true
}
TheTaylorLee commented 1 year ago

For anyone running into this I found some error logs in the Terminal > Window output. It indicated that vscode doesn't trust the path and is causing remote ssh connections to fail.

It's related to these changes by Microsoft.

https://github.com/microsoft/vscode/issues/182055

alefragnani commented 1 year ago

Thanks for pointing out the original VS Code issue. It can help other users for sure 👍

TheTaylorLee commented 1 year ago

Previous provided issue was incorrect and based off other issues referencing similar logs.

https://github.com/microsoft/vscode/issues/187202

SSH was not considered during a change to remote authorities code base in VS Code. Fix supposedly has been pushed to insiders and hopefully will be in the next stable vs code release.