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

Getting Error: Not an authority that can be resolved! on vscodium version 1.80.1 #102

Closed
xclark-harriscomputer opened this issue Jul 26, 2023 · 16 comments

Comments

@xclark-harriscomputer
Copy link

xclark-harriscomputer commented Jul 26, 2023

Unable to connect to remote hosts on VSCodium 1.80.1.23194 on m2 macbook air (MacOS 13.3.1 (22E261)). Reverting to 1.79.1.23164 fixes the issue. Unclear if this is the fault of VSCodium/VSCode or the extension.

Extension version v0.0.39, installed from openVSX.

Error message:

Failed to connect to the remote extension host server (Error: Not an authority that can be resolved!)

  ERR Not an authority that can be resolved!: CodeExpectedError: Not an authority that can be resolved!
    at e.NativeExtensionService._resolveAuthorityOnExtensionHosts (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2615:28121)
    at async e.NativeExtensionService._resolveAuthorityWithLogging (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2615:27251)
    at async e.NativeExtensionService._resolveExtensions (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2616:15891)
    at async e.NativeExtensionService._initialize (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2615:23936)

ERR CodeExpectedError: Not an authority that can be resolved!
    at e.NativeExtensionService._resolveAuthorityOnExtensionHosts (workbench.desktop.main.js:2615:28121)
    at async e.NativeExtensionService._resolveAuthorityWithLogging (workbench.desktop.main.js:2615:27251)
    at async e.NativeExtensionService._resolveExtensions (workbench.desktop.main.js:2616:15891)
    at async e.NativeExtensionService._initialize (workbench.desktop.main.js:2615:23936)

ERR ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Bxclark@[REDACTED]': CodeExpectedError: ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Bxclark@[REDACTED]'
    at e.FileService.withProvider (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:15408)
    at async e.FileService.doResolveFile (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:16487)
    at async e.FileService.resolve (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:16210)
    at async e.WorkspacesFinderContribution.findWorkspaces (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1937:7428)

UPDATE: All three of the following options don't do anything either
image

Error messages:

  ERR command 'openremotessh.openEmptyWindow' not found: Error: command 'openremotessh.openEmptyWindow' not found
    at e.CommandService._tryExecuteCommand (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1514:15997)
    at e.CommandService.executeCommand (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1514:15879)

ERR command 'openremotessh.openEmptyWindowInCurrentWindow' not found: Error: command 'openremotessh.openEmptyWindowInCurrentWindow' not found
    at e.CommandService._tryExecuteCommand (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1514:15997)
    at e.CommandService.executeCommand (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1514:15879)

ERR command 'openremotessh.openConfigFile' not found: Error: command 'openremotessh.openConfigFile' not found
    at e.CommandService._tryExecuteCommand (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1514:15997)
    at e.CommandService.executeCommand (vscode-file://vscode-app/Applications/VSCodium.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1514:15879)
@jeanp413
Copy link
Owner

@daiyam seems the whitelist in product.json got removed 🤔 Got this in the logs

2023-07-26 11:52:26.020 [error] Extension 'jeanp413.open-remote-ssh CANNOT USE these API proposals 'resolvers, contribViewsRemote'. You MUST start in extension development mode or use the --enable-proposed-api command line flag
2023-07-26 11:52:26.060 [warning] [jeanp413.open-remote-ssh]: View container 'remote' requires 'enabledApiProposals: ["contribViewsRemote"]' to be added to 'Remote'.

@xclark-harriscomputer you can workaround by enabling the extension in your argv.json, you can follow steps in readme

@daiyam
Copy link
Contributor

daiyam commented Jul 26, 2023

I've just tested it out and it's working fine.

Here the properties:

    "jeanp413.open-remote-ssh": [
      "resolvers",
      "tunnels",
      "terminalDataWriteEvent",
      "contribRemoteHelp",
      "contribViewsRemote"
    ]

from https://github.com/VSCodium/vscodium/blob/8dcc87596b11312a33400e319d5f8bc2cc8dc2d1/product.json?#L263

@jeanp413 Where do you those logs?

In @xclark-harriscomputer logs, I'm more perplexed by CodeExpectedError: ENOPRO: No file system provider found for resource

@daiyam
Copy link
Contributor

daiyam commented Jul 26, 2023

The errors on the commands should not happened! Also Open SSH Configuration File... is RemoteSSH: Open SSH Configuration File... on my machine and as is configured in your package.json (category + title)

@xclark-harriscomputer Have you tried to reinstall the extension because it doesn't seem to be correctly installed...

@jeanp413
Copy link
Owner

jeanp413 commented Jul 26, 2023

@daiyam I just installed vscodium on my mac using VSCodium-darwin-arm64-1.80.1.23194.zip and this is the product.json

{
  "nameShort": "VSCodium",
  "nameLong": "VSCodium",
  "applicationName": "codium",
  "dataFolderName": ".vscode-oss",
  "win32MutexName": "vscodium",
  "licenseName": "MIT",
  "licenseUrl": "https://github.com/VSCodium/vscodium/blob/master/LICENSE",
  "serverLicenseUrl": "https://github.com/microsoft/vscode/blob/main/LICENSE.txt",
  "serverGreeting": [],
  "serverLicense": [],
  "serverLicensePrompt": "",
  "serverApplicationName": "codium-server",
  "serverDataFolderName": ".vscodium-server",
  "tunnelApplicationName": "code-tunnel-oss",
  "win32DirName": "VSCodium",
  "win32NameVersion": "VSCodium",
  "win32RegValueName": "VSCodium",
  "win32AppId": "{{763CBF88-25C6-4B10-952F-326AE657F16B}",
  "win32x64AppId": "{{88DA3577-054F-4CA1-8122-7D820494CFFB}",
  "win32arm64AppId": "{{67DEE444-3D04-4258-B92A-BC1F0FF2CAE4}",
  "win32UserAppId": "{{0FD05EB4-651E-4E78-A062-515204B47A3A}",
  "win32x64UserAppId": "{{2E1F05D1-C245-4562-81EE-28188DB6FD17}",
  "win32arm64UserAppId": "{{57FD70A5-1B8D-4875-9F40-C5553F094828}",
  "win32AppUserModelId": "VSCodium.VSCodium",
  "win32ShellNameShort": "VSCodium",
  "win32TunnelServiceMutex": "vscodeoss-tunnelservice",
  "win32TunnelMutex": "vscodeoss-tunnel",
  "darwinBundleIdentifier": "com.vscodium",
  "linuxIconName": "vscodium",
  "licenseFileName": "LICENSE.txt",
  "reportIssueUrl": "https://github.com/VSCodium/vscodium/issues/new",
  "nodejsRepository": "https://nodejs.org",
  "urlProtocol": "vscodium",
  "webviewContentExternalBaseUrlTemplate": "https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",
  "builtInExtensions": [{
    "name": "ms-vscode.js-debug-companion",
    "version": "1.1.1",
    "sha256": "095dc6d5d45490966dfa74d24add92036b42bf02a37d88c4b0f510dc91deeee6",
    "repo": "https://github.com/microsoft/vscode-js-debug-companion",
    "metadata": {
      "id": "99cb0b7f-7354-4278-b8da-6cc79972169d",
      "publisherId": {
        "publisherId": "5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",
        "publisherName": "ms-vscode",
        "displayName": "Microsoft",
        "flags": "verified"
      },
      "publisherDisplayName": "Microsoft"
    }
  }, {
    "name": "ms-vscode.js-debug",
    "version": "1.80.0",
    "sha256": "ac75e4ecf79efafa2bb0e6c8c548a6c8359555623f677a386cbcea80630aee4f",
    "repo": "https://github.com/microsoft/vscode-js-debug",
    "metadata": {
      "id": "25629058-ddac-4e17-abba-74678e126c5d",
      "publisherId": {
        "publisherId": "5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",
        "publisherName": "ms-vscode",
        "displayName": "Microsoft",
        "flags": "verified"
      },
      "publisherDisplayName": "Microsoft"
    }
  }, {
    "name": "ms-vscode.vscode-js-profile-table",
    "version": "1.0.3",
    "sha256": "b9dab017506d9e6a469a0f82b392e4cb1d7a25a4843f1db8ba396cbee209cfc5",
    "repo": "https://github.com/microsoft/vscode-js-profile-visualizer",
    "metadata": {
      "id": "7e52b41b-71ad-457b-ab7e-0620f1fc4feb",
      "publisherId": {
        "publisherId": "5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",
        "publisherName": "ms-vscode",
        "displayName": "Microsoft",
        "flags": "verified"
      },
      "publisherDisplayName": "Microsoft"
    }
  }],
  "checksumFailMoreInfoUrl": "https://go.microsoft.com/fwlink/?LinkId=828886",
  "documentationUrl": "https://go.microsoft.com/fwlink/?LinkID=533484#vscode",
  "extensionsGallery": {
    "serviceUrl": "https://open-vsx.org/vscode/gallery",
    "itemUrl": "https://open-vsx.org/vscode/item"
  },
  "introductoryVideosUrl": "https://go.microsoft.com/fwlink/?linkid=832146",
  "keyboardShortcutsUrlLinux": "https://go.microsoft.com/fwlink/?linkid=832144",
  "keyboardShortcutsUrlMac": "https://go.microsoft.com/fwlink/?linkid=832143",
  "keyboardShortcutsUrlWin": "https://go.microsoft.com/fwlink/?linkid=832145",
  "linkProtectionTrustedDomains": ["https://open-vsx.org"],
  "releaseNotesUrl": "https://go.microsoft.com/fwlink/?LinkID=533483#vscode",
  "requestFeatureUrl": "https://go.microsoft.com/fwlink/?LinkID=533482",
  "tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118",
  "twitterUrl": "https://go.microsoft.com/fwlink/?LinkID=533687",
  "updateUrl": "https://vscodium.now.sh",
  "downloadUrl": "https://github.com/VSCodium/vscodium/releases",
  "quality": "stable",
  "commit": "77ff082dba0bc91978df4a7acd7f42007abde4cc",
  "date": "2023-07-24T18:11:36.740Z",
  "checksums": {
    "vs/base/parts/sandbox/electron-sandbox/preload.js": "P910ZSQpLvm9nLWv5PRSgw",
    "vs/workbench/workbench.desktop.main.js": "7Bue7VnHgXvj+95GdAChFA",
    "vs/workbench/workbench.desktop.main.css": "0niwPEwJqP84SG269zGeFg",
    "vs/workbench/api/node/extensionHostProcess.js": "nGX/nVwPtYmXrCpW0tfAqQ",
    "vs/code/electron-sandbox/workbench/workbench.html": "Nei/i2NoxE9Pdo7ZULeFgA",
    "vs/code/electron-sandbox/workbench/workbench.js": "wYk9ucvJPpnwsjv3ATPkZw"
  },
  "version": "1.80.1",
  "release": "23194"
}

@daiyam
Copy link
Contributor

daiyam commented Jul 27, 2023

Damn! Another issue after some optimisations of build scripts to pass SpellCheck.

Due to an another issue, that version was re-released which has the broken product.json (The original one is fine, which I run).

When fixed (in process), I will release another version.

@daiyam
Copy link
Contributor

daiyam commented Jul 27, 2023

Here the fix: VSCodium/vscodium#1581

The release should follow in the hour.

@jeanp413
Copy link
Owner

@xclark-harriscomputer please update vscodium, this is fixed now.

Thanks @daiyam 🚀

@xclark-harriscomputer
Copy link
Author

Sorry guys! I missed the emails for this. Updating vscodium through the app to 1.80.2.23209 [1] doesn't seem to have fixed this. Trying to install using VSCodium-darwin-arm64-1.80.2.23209.zip didn't seem to change it. Uninstalling, restarting, and resinstalling the extension didn't seem to fix it either. Adding the extra lines to my argv.json didn't seem to change it (including after restart).

The buttons on this menu do now work though:
image
So something changed for the better.

Unsure what may have caused this or if there are better logs I can show. My gut feeling is something not passing through correctly during the vscodium build process but that's more of a wild guess.

[1]: Version: 1.80.2
Release: 23209
Commit: ad2ce925243280c8cd1054a2b27734e2b2e839c5
Date: 2023-07-28T18:09:49.170Z
Electron: 22.3.14
ElectronBuildId: undefined
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.4.0

@xclark-harriscomputer
Copy link
Author

xclark-harriscomputer commented Jul 31, 2023

Heres my product.json:

Product JSON Spoiler
{
"nameShort": "VSCodium",
"nameLong": "VSCodium",
"applicationName": "codium",
"dataFolderName": ".vscode-oss",
"win32MutexName": "vscodium",
"licenseName": "MIT",
"licenseUrl": "https://github.com/VSCodium/vscodium/blob/master/LICENSE",
"serverLicenseUrl": "https://github.com/microsoft/vscode/blob/main/LICENSE.txt",
"serverGreeting": [],
"serverLicense": [],
"serverLicensePrompt": "",
"serverApplicationName": "codium-server",
"serverDataFolderName": ".vscodium-server",
"tunnelApplicationName": "code-tunnel-oss",
"win32DirName": "VSCodium",
"win32NameVersion": "VSCodium",
"win32RegValueName": "VSCodium",
"win32AppId": "{{763CBF88-25C6-4B10-952F-326AE657F16B}",
"win32x64AppId": "{{88DA3577-054F-4CA1-8122-7D820494CFFB}",
"win32arm64AppId": "{{67DEE444-3D04-4258-B92A-BC1F0FF2CAE4}",
"win32UserAppId": "{{0FD05EB4-651E-4E78-A062-515204B47A3A}",
"win32x64UserAppId": "{{2E1F05D1-C245-4562-81EE-28188DB6FD17}",
"win32arm64UserAppId": "{{57FD70A5-1B8D-4875-9F40-C5553F094828}",
"win32AppUserModelId": "VSCodium.VSCodium",
"win32ShellNameShort": "VSCodium",
"win32TunnelServiceMutex": "vscodeoss-tunnelservice",
"win32TunnelMutex": "vscodeoss-tunnel",
"darwinBundleIdentifier": "com.vscodium",
"linuxIconName": "vscodium",
"licenseFileName": "LICENSE.txt",
"reportIssueUrl": "https://github.com/VSCodium/vscodium/issues/new",
"nodejsRepository": "https://nodejs.org",
"urlProtocol": "vscodium",
"webviewContentExternalBaseUrlTemplate": "https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",
"builtInExtensions": [{
 "name": "ms-vscode.js-debug-companion",
 "version": "1.1.1",
 "sha256": "095dc6d5d45490966dfa74d24add92036b42bf02a37d88c4b0f510dc91deeee6",
 "repo": "https://github.com/microsoft/vscode-js-debug-companion",
 "metadata": {
   "id": "99cb0b7f-7354-4278-b8da-6cc79972169d",
   "publisherId": {
     "publisherId": "5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",
     "publisherName": "ms-vscode",
     "displayName": "Microsoft",
     "flags": "verified"
   },
   "publisherDisplayName": "Microsoft"
 }
}, {
 "name": "ms-vscode.js-debug",
 "version": "1.80.0",
 "sha256": "ac75e4ecf79efafa2bb0e6c8c548a6c8359555623f677a386cbcea80630aee4f",
 "repo": "https://github.com/microsoft/vscode-js-debug",
 "metadata": {
   "id": "25629058-ddac-4e17-abba-74678e126c5d",
   "publisherId": {
     "publisherId": "5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",
     "publisherName": "ms-vscode",
     "displayName": "Microsoft",
     "flags": "verified"
   },
   "publisherDisplayName": "Microsoft"
 }
}, {
 "name": "ms-vscode.vscode-js-profile-table",
 "version": "1.0.3",
 "sha256": "b9dab017506d9e6a469a0f82b392e4cb1d7a25a4843f1db8ba396cbee209cfc5",
 "repo": "https://github.com/microsoft/vscode-js-profile-visualizer",
 "metadata": {
   "id": "7e52b41b-71ad-457b-ab7e-0620f1fc4feb",
   "publisherId": {
     "publisherId": "5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",
     "publisherName": "ms-vscode",
     "displayName": "Microsoft",
     "flags": "verified"
   },
   "publisherDisplayName": "Microsoft"
 }
}],
"checksumFailMoreInfoUrl": "https://go.microsoft.com/fwlink/?LinkId=828886",
"documentationUrl": "https://go.microsoft.com/fwlink/?LinkID=533484#vscode",
"extensionsGallery": {
 "serviceUrl": "https://open-vsx.org/vscode/gallery",
 "itemUrl": "https://open-vsx.org/vscode/item"
},
"introductoryVideosUrl": "https://go.microsoft.com/fwlink/?linkid=832146",
"keyboardShortcutsUrlLinux": "https://go.microsoft.com/fwlink/?linkid=832144",
"keyboardShortcutsUrlMac": "https://go.microsoft.com/fwlink/?linkid=832143",
"keyboardShortcutsUrlWin": "https://go.microsoft.com/fwlink/?linkid=832145",
"linkProtectionTrustedDomains": ["https://open-vsx.org"],
"releaseNotesUrl": "https://go.microsoft.com/fwlink/?LinkID=533483#vscode",
"requestFeatureUrl": "https://go.microsoft.com/fwlink/?LinkID=533482",
"tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118",
"twitterUrl": "https://go.microsoft.com/fwlink/?LinkID=533687",
"updateUrl": "https://vscodium.now.sh",
"downloadUrl": "https://github.com/VSCodium/vscodium/releases",
"quality": "stable",
"extensionAllowedBadgeProviders": ["api.bintray.com", "api.travis-ci.com", "api.travis-ci.org", "app.fossa.io", "badge.buildkite.com", "badge.fury.io", "badge.waffle.io", "badgen.net", "badges.frapsoft.com", "badges.gitter.im", "badges.greenkeeper.io", "cdn.travis-ci.com", "cdn.travis-ci.org", "ci.appveyor.com", "circleci.com", "cla.opensource.microsoft.com", "codacy.com", "codeclimate.com", "codecov.io", "coveralls.io", "david-dm.org", "deepscan.io", "dev.azure.com", "docs.rs", "flat.badgen.net", "gemnasium.com", "githost.io", "gitlab.com", "godoc.org", "goreportcard.com", "img.shields.io", "isitmaintained.com", "marketplace.visualstudio.com", "nodesecurity.io", "opencollective.com", "snyk.io", "travis-ci.com", "travis-ci.org", "visualstudio.com", "vsmarketplacebadge.apphb.com", "www.bithound.io", "www.versioneye.com"],
"extensionAllowedBadgeProvidersRegex": ["^https:\\/\\/github\\.com\\/[^/]+\\/[^/]+\\/(actions\\/)?workflows\\/.*badge\\.svg"],
"extensionEnabledApiProposals": {
 "ms-vscode.vscode-selfhost-test-provider": ["testObserver"],
 "VisualStudioExptTeam.vscodeintellicode-completions": ["inlineCompletionsAdditions"],
 "ms-vsliveshare.vsliveshare": ["contribMenuBarHome", "contribShareMenu", "contribStatusBarItems", "diffCommand", "documentFiltersExclusive", "fileSearchProvider", "findTextInFiles", "notebookCellExecutionState", "notebookLiveShare", "terminalDimensions", "terminalDataWriteEvent", "textSearchProvider"],
 "ms-vscode.js-debug": ["portsAttributes", "findTextInFiles", "workspaceTrust", "tunnels"],
 "ms-toolsai.vscode-ai-remote": ["resolvers"],
 "ms-python.python": ["contribEditorContentMenu", "quickPickSortByLabel", "portsAttributes", "testObserver", "envShellEvent", "quickPickItemTooltip", "terminalDataWriteEvent", "envCollectionWorkspace", "saveEditor", "envCollectionOptions"],
 "ms-dotnettools.dotnet-interactive-vscode": ["notebookMessaging"],
 "GitHub.codespaces": ["contribEditSessions", "contribMenuBarHome", "contribRemoteHelp", "contribViewsRemote", "resolvers", "tunnels", "terminalDataWriteEvent", "treeViewReveal", "notebookKernelSource"],
 "ms-vscode.azure-repos": ["extensionRuntime", "fileSearchProvider", "textSearchProvider"],
 "ms-vscode.remote-repositories": ["canonicalUriProvider", "contribEditSessions", "contribRemoteHelp", "contribMenuBarHome", "contribViewsRemote", "contribViewsWelcome", "contribShareMenu", "documentFiltersExclusive", "editSessionIdentityProvider", "extensionRuntime", "fileSearchProvider", "quickPickSortByLabel", "workspaceTrust", "shareProvider", "scmActionButton", "scmSelectedProvider", "scmValidation", "textSearchProvider", "timeline"],
 "ms-vscode-remote.remote-wsl": ["resolvers", "contribRemoteHelp", "contribViewsRemote", "telemetry"],
 "ms-vscode-remote.remote-ssh": ["resolvers", "tunnels", "terminalDataWriteEvent", "contribRemoteHelp", "contribViewsRemote", "telemetry"],
 "ms-vscode.remote-server": ["resolvers"],
 "ms-vscode.remote-explorer": ["contribRemoteHelp", "contribViewsRemote", "extensionsAny"],
 "ms-vscode-remote.remote-containers": ["contribEditSessions", "resolvers", "tunnels", "workspaceTrust", "terminalDimensions", "contribRemoteHelp", "contribViewsRemote"],
 "ms-vscode.js-debug-nightly": ["portsAttributes", "findTextInFiles", "workspaceTrust", "tunnels"],
 "ms-vscode.lsif-browser": ["documentFiltersExclusive"],
 "GitHub.vscode-pull-request-github": ["contribCommentThreadAdditionalMenu", "tokenInformation", "contribShareMenu", "fileComments", "contribCommentPeekContext", "codiconDecoration", "diffCommand", "contribCommentEditorActionsMenu", "readonlyMessage", "shareProvider", "quickDiffProvider", "quickPickItemIcon"],
 "GitHub.copilot": ["inlineCompletionsAdditions"],
 "GitHub.copilot-nightly": ["inlineCompletionsAdditions"],
 "GitHub.copilot-chat": ["handleIssueUri", "interactive", "interactiveUserActions", "semanticSimilarity", "terminalDataWriteEvent"],
 "GitHub.remotehub": ["contribRemoteHelp", "contribMenuBarHome", "contribViewsRemote", "contribViewsWelcome", "documentFiltersExclusive", "extensionRuntime", "fileSearchProvider", "quickPickSortByLabel", "workspaceTrust", "scmSelectedProvider", "scmValidation", "textSearchProvider", "timeline"],
 "ms-python.gather": ["notebookCellExecutionState"],
 "ms-python.vscode-pylance": ["notebookCellExecutionState"],
 "ms-toolsai.jupyter-renderers": ["contribNotebookStaticPreloads"],
 "ms-toolsai.jupyter": ["notebookDeprecated", "notebookMessaging", "notebookMime", "notebookCellExecutionState", "portsAttributes", "quickPickSortByLabel", "notebookKernelSource", "interactiveWindow", "notebookControllerAffinityHidden", "contribNotebookStaticPreloads", "quickPickItemTooltip", "notebookExecution"],
 "dbaeumer.vscode-eslint": ["notebookCellExecutionState"],
 "ms-vscode.azure-sphere-tools-ui": ["tunnels"],
 "ms-azuretools.vscode-azureappservice": ["terminalDataWriteEvent"],
 "ms-azuretools.vscode-azureresourcegroups": ["authGetSessions"],
 "ms-vscode.anycode": ["extensionsAny"],
 "ms-vscode.cpptools": ["terminalDataWriteEvent"],
 "redhat.java": ["documentPaste"],
 "ms-dotnettools.csdevkit": ["inlineCompletionsAdditions"],
 "ms-dotnettools.vscodeintellicode-csharp": ["inlineCompletionsAdditions"],
 "jeanp413.open-remote-ssh": ["resolvers", "tunnels", "terminalDataWriteEvent", "contribRemoteHelp", "contribViewsRemote"]
},
"extensionKind": {
 "Shan.code-settings-sync": ["ui"],
 "shalldie.background": ["ui"],
 "techer.open-in-browser": ["ui"],
 "CoenraadS.bracket-pair-colorizer-2": ["ui"],
 "CoenraadS.bracket-pair-colorizer": ["ui", "workspace"],
 "hiro-sun.vscode-emacs": ["ui", "workspace"],
 "hnw.vscode-auto-open-markdown-preview": ["ui", "workspace"],
 "wayou.vscode-todo-highlight": ["ui", "workspace"],
 "aaron-bond.better-comments": ["ui", "workspace"],
 "vscodevim.vim": ["ui"],
 "ollyhayes.colmak-vim": ["ui"]
},
"extensionPointExtensionKind": {
 "typescriptServerPlugins": ["workspace"]
},
"extensionSyncedKeys": {
 "ritwickdey.liveserver": ["liveServer.setup.version"]
},
"extensionVirtualWorkspacesSupport": {
 "esbenp.prettier-vscode": {
   "default": false
 },
 "msjsdiag.debugger-for-chrome": {
   "default": false
 },
 "redhat.java": {
   "default": false
 },
 "HookyQR.beautify": {
   "default": false
 },
 "ritwickdey.LiveServer": {
   "default": false
 },
 "VisualStudioExptTeam.vscodeintellicode": {
   "default": false
 },
 "octref.vetur": {
   "default": false
 },
 "formulahendry.code-runner": {
   "default": false
 },
 "xdebug.php-debug": {
   "default": false
 },
 "ms-mssql.mssql": {
   "default": false
 },
 "christian-kohler.path-intellisense": {
   "default": false
 },
 "eg2.tslint": {
   "default": false
 },
 "eg2.vscode-npm-script": {
   "default": false
 },
 "donjayamanne.githistory": {
   "default": false
 },
 "Zignd.html-css-class-completion": {
   "default": false
 },
 "christian-kohler.npm-intellisense": {
   "default": false
 },
 "EditorConfig.EditorConfig": {
   "default": false
 },
 "austin.code-gnu-global": {
   "default": false
 },
 "johnpapa.Angular2": {
   "default": false
 },
 "ms-vscode.vscode-typescript-tslint-plugin": {
   "default": false
 },
 "DotJoshJohnson.xml": {
   "default": false
 },
 "techer.open-in-browser": {
   "default": false
 },
 "tht13.python": {
   "default": false
 },
 "bmewburn.vscode-intelephense-client": {
   "default": false
 },
 "Angular.ng-template": {
   "default": false
 },
 "xdebug.php-pack": {
   "default": false
 },
 "dbaeumer.jshint": {
   "default": false
 },
 "yzhang.markdown-all-in-one": {
   "default": false
 },
 "Dart-Code.flutter": {
   "default": false
 },
 "streetsidesoftware.code-spell-checker": {
   "default": false
 },
 "rebornix.Ruby": {
   "default": false
 },
 "ms-vscode.sublime-keybindings": {
   "default": false
 },
 "mitaki28.vscode-clang": {
   "default": false
 },
 "steoates.autoimport": {
   "default": false
 },
 "donjayamanne.python-extension-pack": {
   "default": false
 },
 "shd101wyy.markdown-preview-enhanced": {
   "default": false
 },
 "mikestead.dotenv": {
   "default": false
 },
 "pranaygp.vscode-css-peek": {
   "default": false
 },
 "ikappas.phpcs": {
   "default": false
 },
 "platformio.platformio-ide": {
   "default": false
 },
 "jchannon.csharpextensions": {
   "default": false
 },
 "gruntfuggly.todo-tree": {
   "default": false
 }
},
"commit": "ad2ce925243280c8cd1054a2b27734e2b2e839c5",
"date": "2023-07-28T18:09:49.170Z",
"checksums": {
 "vs/base/parts/sandbox/electron-sandbox/preload.js": "EDHYjDefvWeAQigvehU5GA",
 "vs/workbench/workbench.desktop.main.js": "EauCUJFqz0Jyo0RrVIQbzw",
 "vs/workbench/workbench.desktop.main.css": "0niwPEwJqP84SG269zGeFg",
 "vs/workbench/api/node/extensionHostProcess.js": "1IvygM4ss0vzIBuY7LKDOQ",
 "vs/code/electron-sandbox/workbench/workbench.html": "Nei/i2NoxE9Pdo7ZULeFgA",
 "vs/code/electron-sandbox/workbench/workbench.js": "K0YzomvgjdPqfTcZtPdrXg"
},
"version": "1.80.2",
"release": "23209"
}

and here's my package.json:

Package JSON Spoiler
{
  "name": "VSCodium",
  "version": "1.80.2",
  "distro": "bf3ffa1f97d095824c9611557eb1d09ba167b779",
  "author": {
    "name": "VSCodium"
  },
  "license": "MIT",
  "main": "./out/main",
  "private": true,
  "scripts": {
    "test": "echo Please run any of the test scripts from the scripts folder.",
    "test-browser": "npx playwright install && node test/unit/browser/index.js",
    "test-browser-no-install": "node test/unit/browser/index.js",
    "test-node": "mocha test/unit/node/index.js --delay --ui=tdd --timeout=5000 --exit",
    "preinstall": "node build/npm/preinstall.js",
    "postinstall": "node build/npm/postinstall.js",
    "compile": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js compile",
    "watch": "npm-run-all -lp watch-client watch-extensions",
    "watchd": "deemon yarn watch",
    "watch-webd": "deemon yarn watch-web",
    "kill-watchd": "deemon --kill yarn watch",
    "kill-watch-webd": "deemon --kill yarn watch-web",
    "restart-watchd": "deemon --restart yarn watch",
    "restart-watch-webd": "deemon --restart yarn watch-web",
    "watch-client": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js watch-client",
    "watch-clientd": "deemon yarn watch-client",
    "kill-watch-clientd": "deemon --kill yarn watch-client",
    "watch-extensions": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js watch-extensions watch-extension-media",
    "watch-extensionsd": "deemon yarn watch-extensions",
    "kill-watch-extensionsd": "deemon --kill yarn watch-extensions",
    "precommit": "node build/hygiene.js",
    "gulp": "node --max_old_space_size=8192 ./node_modules/gulp/bin/gulp.js",
    "electron": "node build/lib/electron",
    "7z": "7z",
    "update-grammars": "node build/npm/update-all-grammars.mjs",
    "update-localization-extension": "node build/npm/update-localization-extension.js",
    "smoketest": "node build/lib/preLaunch.js && cd test/smoke && yarn compile && node test/index.js",
    "smoketest-no-compile": "cd test/smoke && node test/index.js",
    "download-builtin-extensions": "node build/lib/builtInExtensions.js",
    "download-builtin-extensions-cg": "node build/lib/builtInExtensionsCG.js",
    "monaco-compile-check": "tsc -p src/tsconfig.monaco.json --noEmit",
    "tsec-compile-check": "node node_modules/tsec/bin/tsec -p src/tsconfig.tsec.json",
    "vscode-dts-compile-check": "tsc -p src/tsconfig.vscode-dts.json && tsc -p src/tsconfig.vscode-proposed-dts.json",
    "valid-layers-check": "node build/lib/layersChecker.js",
    "update-distro": "node build/npm/update-distro.mjs",
    "web": "echo 'yarn web' is replaced by './scripts/code-server' or './scripts/code-web'",
    "compile-cli": "gulp compile-cli",
    "compile-web": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js compile-web",
    "watch-web": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js watch-web",
    "watch-cli": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js watch-cli",
    "eslint": "node build/eslint",
    "stylelint": "node build/stylelint",
    "playwright-install": "node build/azure-pipelines/common/installPlaywright.js",
    "compile-build": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js compile-build",
    "compile-extensions-build": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js compile-extensions-build",
    "minify-vscode": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js minify-vscode",
    "minify-vscode-reh": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js minify-vscode-reh",
    "minify-vscode-reh-web": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js minify-vscode-reh-web",
    "hygiene": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js hygiene",
    "core-ci": "node --max_old_space_size=8095 ./node_modules/gulp/bin/gulp.js core-ci",
    "core-ci-pr": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js core-ci-pr",
    "extensions-ci": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js extensions-ci",
    "extensions-ci-pr": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js extensions-ci-pr",
    "perf": "node scripts/code-perf.js"
  },
  "dependencies": {
    "@microsoft/1ds-core-js": "^3.2.2",
    "@microsoft/1ds-post-js": "^3.2.2",
    "@parcel/watcher": "2.1.0",
    "@vscode/iconv-lite-umd": "0.7.0",
    "@vscode/policy-watcher": "^1.1.4",
    "@vscode/proxy-agent": "^0.14.1",
    "@vscode/ripgrep": "^1.15.5",
    "@vscode/spdlog": "^0.13.10",
    "@vscode/sqlite3": "5.1.6-vscode",
    "@vscode/sudo-prompt": "9.3.1",
    "@vscode/vscode-languagedetection": "1.0.21",
    "@vscode/windows-mutex": "^0.4.4",
    "@vscode/windows-process-tree": "^0.5.0",
    "@vscode/windows-registry": "^1.1.0",
    "graceful-fs": "4.2.8",
    "http-proxy-agent": "^2.1.0",
    "https-proxy-agent": "^2.2.3",
    "jschardet": "3.0.0",
    "keytar": "7.9.0",
    "minimist": "^1.2.6",
    "native-is-elevated": "0.6.0",
    "native-keymap": "^3.3.2",
    "native-watchdog": "^1.4.1",
    "node-pty": "1.1.0-beta1",
    "tas-client-umd": "0.1.8",
    "v8-inspect-profiler": "^0.1.0",
    "vscode-oniguruma": "1.7.0",
    "vscode-regexpp": "^3.1.0",
    "vscode-textmate": "9.0.0",
    "xterm": "5.3.0-beta.3",
    "xterm-addon-canvas": "0.5.0-beta.2",
    "xterm-addon-image": "0.4.1",
    "xterm-addon-search": "0.13.0-beta.2",
    "xterm-addon-serialize": "0.11.0-beta.2",
    "xterm-addon-unicode11": "0.5.0",
    "xterm-addon-webgl": "0.16.0-beta.2",
    "xterm-headless": "5.3.0-beta.3",
    "yauzl": "^2.9.2",
    "yazl": "^2.4.3"
  },
  "devDependencies": {
    "7zip": "0.0.6",
    "@playwright/test": "^1.34.3",
    "@swc/cli": "0.1.62",
    "@swc/core": "1.3.62",
    "@types/cookie": "^0.3.3",
    "@types/cssnano": "^4.0.0",
    "@types/debug": "4.1.5",
    "@types/graceful-fs": "4.1.2",
    "@types/gulp-postcss": "^8.0.0",
    "@types/gulp-svgmin": "^1.2.1",
    "@types/http-proxy-agent": "^2.0.1",
    "@types/keytar": "^4.4.0",
    "@types/minimist": "^1.2.1",
    "@types/mocha": "^9.1.1",
    "@types/node": "16.x",
    "@types/sinon": "^10.0.2",
    "@types/sinon-test": "^2.4.2",
    "@types/trusted-types": "^1.0.6",
    "@types/vscode-notebook-renderer": "^1.72.0",
    "@types/webpack": "^5.28.1",
    "@types/wicg-file-system-access": "^2020.9.6",
    "@types/windows-foreground-love": "^0.3.0",
    "@types/winreg": "^1.2.30",
    "@types/yauzl": "^2.9.1",
    "@types/yazl": "^2.4.2",
    "@typescript-eslint/eslint-plugin": "^5.57.0",
    "@typescript-eslint/experimental-utils": "^5.57.0",
    "@typescript-eslint/parser": "^5.57.0",
    "@vscode/gulp-electron": "^1.36.0",
    "@vscode/l10n-dev": "0.0.21",
    "@vscode/telemetry-extractor": "^1.9.9",
    "@vscode/test-web": "^0.0.41",
    "@vscode/vscode-perf": "^0.0.14",
    "ansi-colors": "^3.2.3",
    "asar": "^3.0.3",
    "chromium-pickle-js": "^0.2.0",
    "cookie": "^0.4.0",
    "copy-webpack-plugin": "^11.0.0",
    "cson-parser": "^1.3.3",
    "css-loader": "^6.7.3",
    "cssnano": "^4.1.11",
    "debounce": "^1.0.0",
    "deemon": "^1.8.0",
    "electron": "22.3.14",
    "eslint": "8.36.0",
    "eslint-plugin-header": "3.1.1",
    "eslint-plugin-jsdoc": "^39.3.2",
    "eslint-plugin-local": "^1.0.0",
    "event-stream": "3.3.4",
    "fancy-log": "^1.3.3",
    "fast-plist": "0.1.3",
    "file-loader": "^6.2.0",
    "glob": "^5.0.13",
    "gulp": "^4.0.0",
    "gulp-azure-storage": "^0.12.1",
    "gulp-bom": "^3.0.0",
    "gulp-buffer": "0.0.2",
    "gulp-concat": "^2.6.1",
    "gulp-eslint": "^5.0.0",
    "gulp-filter": "^5.1.0",
    "gulp-flatmap": "^1.0.2",
    "gulp-gunzip": "^1.0.0",
    "gulp-gzip": "^1.4.2",
    "gulp-json-editor": "^2.5.0",
    "gulp-plumber": "^1.2.0",
    "gulp-postcss": "^9.0.0",
    "gulp-rename": "^1.2.0",
    "gulp-replace": "^0.5.4",
    "gulp-sourcemaps": "^3.0.0",
    "gulp-svgmin": "^4.1.0",
    "gulp-untar": "^0.0.7",
    "husky": "^0.13.1",
    "innosetup": "6.0.5",
    "is": "^3.1.0",
    "istanbul-lib-coverage": "^3.2.0",
    "istanbul-lib-instrument": "^5.2.0",
    "istanbul-lib-report": "^3.0.0",
    "istanbul-lib-source-maps": "^4.0.1",
    "istanbul-reports": "^3.1.5",
    "lazy.js": "^0.4.2",
    "merge-options": "^1.0.1",
    "mime": "^1.4.1",
    "minimatch": "^3.0.4",
    "minimist": "^1.2.6",
    "mkdirp": "^1.0.4",
    "mocha": "^9.2.2",
    "mocha-junit-reporter": "^2.0.0",
    "mocha-multi-reporters": "^1.5.1",
    "npm-run-all": "^4.1.5",
    "opn": "^6.0.0",
    "optimist": "0.3.5",
    "p-all": "^1.0.0",
    "path-browserify": "^1.0.1",
    "pump": "^1.0.1",
    "queue": "3.0.6",
    "rcedit": "^1.1.0",
    "rimraf": "^2.2.8",
    "sinon": "^12.0.1",
    "sinon-test": "^3.1.3",
    "source-map": "0.6.1",
    "source-map-support": "^0.3.2",
    "style-loader": "^3.3.2",
    "ts-loader": "^9.4.2",
    "ts-node": "^10.9.1",
    "tsec": "0.2.7",
    "typescript": "^5.2.0-dev.20230621",
    "typescript-formatter": "7.1.0",
    "underscore": "^1.12.1",
    "util": "^0.12.4",
    "vscode-nls-dev": "^3.3.1",
    "webpack": "^5.77.0",
    "webpack-cli": "^5.0.1",
    "webpack-stream": "^7.0.0",
    "xml2js": "^0.5.0",
    "yaserver": "^0.2.0"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/microsoft/vscode.git"
  },
  "bugs": {
    "url": "https://github.com/microsoft/vscode/issues"
  },
  "optionalDependencies": {
    "windows-foreground-love": "0.5.0"
  },
  "release": "23209"
}

@daiyam
Copy link
Contributor

daiyam commented Jul 31, 2023

@xclark-harriscomputer Nothing wrong in those files. Can you give the logs in menu View/Output then tab Remote - SSH?

@xclark-harriscomputer
Copy link
Author

xclark-harriscomputer commented Aug 1, 2023

@daiyam I don't even get that option on 1.80.2, these are what is available for the output menu: Nevermind, I was able to get it to show up by uninstalling and reinstalling the extension. Interestingly it seems like it's not spitting anything into the terminal on 1.80.2

On the window that's supposed to be a remote session:
image

On the window that spawns the remote session:
image

I do get this interesting error in the "main" tab:

2023-08-01 07:37:23.904 [error] SyntaxError: Unexpected token ']', ..."ssh",
    ]

}" is not valid JSON
    at JSON.parse (<anonymous>)
    at e.CodeApplication.updateCrashReporterEnablement (/Applications/VSCodium.app/Contents/Resources/app/out/vs/code/electron-main/main.js:89:84368)

@daiyam
Copy link
Contributor

daiyam commented Aug 3, 2023

@xclark-harriscomputer You should have log like:

[Info  - 21:05:21.894] Resolving ssh remote authority 'ssh-remote+host1' (attemp #1)
[Trace  - 21:05:21.907] Identity keys:
/Users/user/.ssh/host1-username ssh-rsa SHA256:xxxx=
[Info  - 21:05:22.68] Trying no-auth authentication
[Info  - 21:05:22.110] Trying publickey authentication: /Users/user/.ssh/host1-username ssh-rsa SHA256:xxxx=
[Trace  - 21:05:22.411] Detected platform: windows, bash
[Trace  - 21:05:22.416] Server install command:

# Server installation script

$TMP_DIR="$env:TEMP\$([System.IO.Path]::GetRandomFileName())"

....

@jeanp413 Do you have an idea why he doesn't have any logs?

@xclark-harriscomputer
Copy link
Author

Here are the logs I get on 1.79.1. Sorry for leaving them out, I thought I added them to the bottom of my last post.

[Info  - 18:21:52.736] Resolving ssh remote authority 'ssh-remote+xclark@[REDACTED]' (attemp #1)
[Trace  - 18:21:52.743] Identity keys:
/Users/work/.ssh/id_ed25519 ssh-ed25519 SHA256:[REDACTED]
/Users/work/.ssh/id_rsa ssh-rsa SHA256:[REDACTED]
[Info  - 18:21:53.53] Trying no-auth authentication
[Info  - 18:21:53.82] Trying publickey authentication: /Users/work/.ssh/id_ed25519 ssh-ed25519 SHA256:[REDACTED]
[Info  - 18:21:53.112] Trying publickey authentication: /Users/work/.ssh/id_rsa ssh-rsa SHA256:[REDACTED]
[Trace  - 18:21:53.846] Server install command:

# Server installation script

TMP_DIR="${XDG_RUNTIME_DIR:-"/tmp"}"

[...]
Rest trimmed for readability, Spoiler:
DISTRO_VERSION="1.79.1"
DISTRO_COMMIT="5d4b595142dd2d0a0001531e9c48b36fc795cef2"
DISTRO_QUALITY="stable"
DISTRO_VSCODIUM_RELEASE="23164"

SERVER_APP_NAME="codium-server"
SERVER_INITIAL_EXTENSIONS=""
SERVER_LISTEN_FLAG="--port=0"
SERVER_DATA_DIR="$HOME/.vscodium-server"
SERVER_DIR="$SERVER_DATA_DIR/bin/$DISTRO_COMMIT"
SERVER_SCRIPT="$SERVER_DIR/bin/$SERVER_APP_NAME"
SERVER_LOGFILE="$SERVER_DATA_DIR/.$DISTRO_COMMIT.log"
SERVER_PIDFILE="$SERVER_DATA_DIR/.$DISTRO_COMMIT.pid"
SERVER_TOKENFILE="$SERVER_DATA_DIR/.$DISTRO_COMMIT.token"
SERVER_OS=
SERVER_ARCH=
SERVER_CONNECTION_TOKEN=
SERVER_DOWNLOAD_URL=

LISTENING_ON=
OS_RELEASE_ID=
ARCH=
PLATFORM=

# Mimic output from logs of remote-ssh extension
print_install_results_and_exit() {
    echo "aff4d675aa1ba150ae87be8c: start"
    echo "exitCode==$1=="
    echo "listeningOn==$LISTENING_ON=="
    echo "connectionToken==$SERVER_CONNECTION_TOKEN=="
    echo "logFile==$SERVER_LOGFILE=="
    echo "osReleaseId==$OS_RELEASE_ID=="
    echo "arch==$ARCH=="
    echo "platform==$PLATFORM=="
    echo "tmpDir==$TMP_DIR=="
    
    echo "aff4d675aa1ba150ae87be8c: end"
    exit 0
}

# Check if platform is supported
PLATFORM="$(uname -s)"
case $PLATFORM in
    Darwin)
        SERVER_OS="darwin"
        ;;
    Linux)
        SERVER_OS="linux"
        ;;
    FreeBSD)
        SERVER_OS="freebsd"
        ;;
    DragonFly)
        SERVER_OS="dragonfly"
        ;;
    *)
        echo "Error platform not supported: $PLATFORM"
        print_install_results_and_exit 1
        ;;
esac

# Check machine architecture
ARCH="$(uname -m)"
case $ARCH in
    x86_64 | amd64)
        SERVER_ARCH="x64"
        ;;
    armv7l | armv8l)
        SERVER_ARCH="armhf"
        ;;
    arm64 | aarch64)
        SERVER_ARCH="arm64"
        ;;
    ppc64le)
        SERVER_ARCH="ppc64le"
        ;;
    *)
        echo "Error architecture not supported: $ARCH"
        print_install_results_and_exit 1
        ;;
esac

# https://www.freedesktop.org/software/systemd/man/os-release.html
OS_RELEASE_ID="$(grep -i '^ID=' /etc/os-release 2>/dev/null | sed 's/^ID=//gi' | sed 's/"//g')"
if [[ -z $OS_RELEASE_ID ]]; then
    OS_RELEASE_ID="$(grep -i '^ID=' /usr/lib/os-release 2>/dev/null | sed 's/^ID=//gi' | sed 's/"//g')"
    if [[ -z $OS_RELEASE_ID ]]; then
        OS_RELEASE_ID="unknown"
    fi
fi

# Create installation folder
if [[ ! -d $SERVER_DIR ]]; then
    mkdir -p $SERVER_DIR
    if (( $? > 0 )); then
        echo "Error creating server install directory"
        print_install_results_and_exit 1
    fi
fi

SERVER_DOWNLOAD_URL="$(echo "https://github.com/VSCodium/vscodium/releases/download/\${version}.\${release}/vscodium-reh-\${os}-\${arch}-\${version}.\${release}.tar.gz" | sed "s/\${quality}/$DISTRO_QUALITY/g" | sed "s/\${version}/$DISTRO_VERSION/g" | sed "s/\${commit}/$DISTRO_COMMIT/g" | sed "s/\${os}/$SERVER_OS/g" | sed "s/\${arch}/$SERVER_ARCH/g" | sed "s/\${release}/$DISTRO_VSCODIUM_RELEASE/g")"

# Check if server script is already installed
if [[ ! -f $SERVER_SCRIPT ]]; then
    if [[ "$SERVER_OS" = "dragonfly" ]] || [[ "$SERVER_OS" = "freebsd" ]]; then
        echo "Error "$SERVER_OS" needs manual installation of remote extension host"
        print_install_results_and_exit 1
    fi

    pushd $SERVER_DIR > /dev/null

    if [[ ! -z $(which wget) ]]; then
        wget --tries=3 --timeout=10 --continue --no-verbose -O vscode-server.tar.gz $SERVER_DOWNLOAD_URL
    elif [[ ! -z $(which curl) ]]; then
        curl --retry 3 --connect-timeout 10 --location --show-error --silent --output vscode-server.tar.gz $SERVER_DOWNLOAD_URL
    else
        echo "Error no tool to download server binary"
        print_install_results_and_exit 1
    fi

    if (( $? > 0 )); then
        echo "Error downloading server from $SERVER_DOWNLOAD_URL"
        print_install_results_and_exit 1
    fi

    tar -xf vscode-server.tar.gz --strip-components 1
    if (( $? > 0 )); then
        echo "Error while extracting server contents"
        print_install_results_and_exit 1
    fi

    if [[ ! -f $SERVER_SCRIPT ]]; then
        echo "Error server contents are corrupted"
        print_install_results_and_exit 1
    fi

    rm -f vscode-server.tar.gz

    popd > /dev/null
else
    echo "Server script already installed in $SERVER_SCRIPT"
fi

# Try to find if server is already running
if [[ -f $SERVER_PIDFILE ]]; then
    SERVER_PID="$(cat $SERVER_PIDFILE)"
    SERVER_RUNNING_PROCESS="$(ps -o pid,args -p $SERVER_PID | grep $SERVER_SCRIPT)"
else
    SERVER_RUNNING_PROCESS="$(ps -o pid,args -A | grep $SERVER_SCRIPT | grep -v grep)"
fi

if [[ -z $SERVER_RUNNING_PROCESS ]]; then
    if [[ -f $SERVER_LOGFILE ]]; then
        rm $SERVER_LOGFILE
    fi
    if [[ -f $SERVER_TOKENFILE ]]; then
        rm $SERVER_TOKENFILE
    fi

    touch $SERVER_TOKENFILE
    chmod 600 $SERVER_TOKENFILE
    SERVER_CONNECTION_TOKEN="8808bec2-6b98-4da5-bff5-be5178e09dea"
    echo $SERVER_CONNECTION_TOKEN > $SERVER_TOKENFILE

    $SERVER_SCRIPT --start-server --host=127.0.0.1 $SERVER_LISTEN_FLAG $SERVER_INITIAL_EXTENSIONS --connection-token-file $SERVER_TOKENFILE --telemetry-level off --enable-remote-auto-shutdown --accept-server-license-terms &> $SERVER_LOGFILE &
    echo $! > $SERVER_PIDFILE
else
    echo "Server script is already running $SERVER_SCRIPT"
fi

if [[ -f $SERVER_TOKENFILE ]]; then
    SERVER_CONNECTION_TOKEN="$(cat $SERVER_TOKENFILE)"
else
    echo "Error server token file not found $SERVER_TOKENFILE"
    print_install_results_and_exit 1
fi

if [[ -f $SERVER_LOGFILE ]]; then
    for i in {1..5}; do
        LISTENING_ON="$(cat $SERVER_LOGFILE | grep -E 'Extension host agent listening on .+' | sed 's/Extension host agent listening on //')"
        if [[ -n $LISTENING_ON ]]; then
            break
        fi
        sleep 0.5
    done

    if [[ -z $LISTENING_ON ]]; then
        echo "Error server did not start sucessfully"
        print_install_results_and_exit 1
    fi
else
    echo "Error server log file not found $SERVER_LOGFILE"
    print_install_results_and_exit 1
fi

# Finish server setup
print_install_results_and_exit 0

[Trace  - 18:21:54.521] Server install command stdout:
Server script already installed in /home/xclark/.vscodium-server/bin/5d4b595142dd2d0a0001531e9c48b36fc795cef2/bin/codium-server
aff4d675aa1ba150ae87be8c: start
exitCode==0==
listeningOn==35703==
connectionToken==8808bec2-6b98-4da5-bff5-be5178e09dea==
logFile==/home/xclark/.vscodium-server/.5d4b595142dd2d0a0001531e9c48b36fc795cef2.log==
osReleaseId==ubuntu==
arch==x86_64==
platform==Linux==
tmpDir==/run/user/1003==
aff4d675aa1ba150ae87be8c: end

[Trace  - 18:21:54.522] Creating forwarding server 64554(local) => 64553(socks) => 35703(remote)

@xclark-harriscomputer
Copy link
Author

Back on 1.80.2: I get this from the "Extension Host" tab so it seems like the extension is loading.

2023-08-06 14:38:44.413 [info] Extension host with pid 74071 started
2023-08-06 14:38:44.413 [info] Skipping acquiring lock for /Users/work/Library/Application Support/VSCodium/User/workspaceStorage/eee0b7cdc60df04a9a451f53c57a4e57.
2023-08-06 14:38:44.416 [info] $getCanonicalURI invoked for authority (ssh-remote)
2023-08-06 14:38:44.418 [info] ExtensionService#_doActivateExtension jeanp413.open-remote-ssh, startup: false, activationEvent: 'onResolveRemoteAuthority:ssh-remote'
2023-08-06 14:38:44.434 [info] [resolveAuthority(ssh-remote,1)][1ms] activating remote resolvers [SERVER ADDR, REDACT] -> ssh-remote+xclark
2023-08-06 14:38:44.434 [info] [resolveAuthority(ssh-remote,1)][1ms] activating resolver...
2023-08-06 14:38:44.434 [info] [resolveAuthority(ssh-remote,1)][1ms] activating resolver...
2023-08-06 14:38:44.454 [info] Eager extensions activated
2023-08-06 14:39:27.662 [info] Extension host terminating: renderer closed the MessagePort
2023-08-06 14:39:27.664 [info] Extension host with pid 74071 exiting with code 0
2023-08-06 14:39:28.154 [info] Extension host with pid 74098 started
2023-08-06 14:39:28.154 [info] Skipping acquiring lock for /Users/work/Library/Application Support/VSCodium/User/workspaceStorage/eee0b7cdc60df04a9a451f53c57a4e57.
2023-08-06 14:39:28.154 [info] $getCanonicalURI invoked for authority (ssh-remote)
2023-08-06 14:39:28.160 [info] ExtensionService#_doActivateExtension jeanp413.open-remote-ssh, startup: false, activationEvent: 'onResolveRemoteAuthority:ssh-remote'
2023-08-06 14:39:28.172 [info] [resolveAuthority(ssh-remote,1)][0ms] activating remote resolvers [SERVER ADDR, REDACT] -> ssh-remote+xclark
2023-08-06 14:39:28.172 [info] [resolveAuthority(ssh-remote,1)][0ms] activating resolver...
2023-08-06 14:39:28.172 [info] [resolveAuthority(ssh-remote,1)][0ms] activating resolver...
2023-08-06 14:39:28.186 [info] Eager extensions activated

@xclark-harriscomputer
Copy link
Author

Updating to 1.81 fixed this! Unsure what it was but thank you guys for helping.

@jeanp413
Copy link
Owner

jeanp413 commented Aug 7, 2023

Glad to hear it's working now 🎉

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

No branches or pull requests

3 participants