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

[error] Error: Extension 'ms-vscode.remote-explorer' CANNOT use API proposal: extensionsAny.

Open soraclub opened this issue 2 years ago • 3 comments

  • VSCode Version: 1.71.1
  • Local OS Version: win10
  • Remote OS Version: centos7.4
  • Remote Extension/Connection Type: SSH
  • Logs:

[2022-09-15 17:02:28.140] [exthost] [error] Activating extension ms-vscode.remote-explorer failed due to an error: [2022-09-15 17:02:28.140] [exthost] [error] Error: Extension 'ms-vscode.remote-explorer' CANNOT use API proposal: extensionsAny. Its package.json#enabledApiProposals-property declares: contribViewsRemote but NOT extensionsAny. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode.remote-explorer at g (c:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:83:68142) at Object.get allAcrossExtensionHosts [as allAcrossExtensionHosts] (c:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:106:34914) at t (c:\Users\guanz\.vscode\extensions\ms-vscode.remote-explorer-0.1.2022091309\dist\node\extension.js:1:56743) at new t.RemoteTreeDataProvider (c:\Users\guanz\.vscode\extensions\ms-vscode.remote-explorer-0.1.2022091309\dist\node\extension.js:1:57085) at t.activate (c:\Users\guanz\.vscode\extensions\ms-vscode.remote-explorer-0.1.2022091309\dist\node\extension.js:1:61466) at Function._callActivateOptional (c:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:97:17649) at Function._callActivate (c:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:97:17307) at c:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:97:15118 at processTicksAndRejections (node:internal/process/task_queues:96:5) at E._activate (c:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:85:8224) at E._waitForDepsThenActivate (c:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:85:8166) at E._initialize (c:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:85:7530)

Steps to Reproduce:

  1. just launch VSCode

soraclub avatar Sep 15 '22 09:09 soraclub

  • VSCode Version: 1.71.2
  • Local OS Version: Macos 12.6 (21G115)
  • Remote OS Version: Debian 9.13
  • kernel version: 4.14.81.bm.29
  • Remote Extension/Connection Type: SSH
  • Log:
[2022-09-16 11:40:53.807] [exthost] [error] Activating extension ms-vscode.remote-explorer failed due to an error:
[2022-09-16 11:40:53.807] [exthost] [error] Error: Extension 'ms-vscode.remote-explorer' CANNOT use API proposal: extensionsAny.
Its package.json#enabledApiProposals-property declares: contribViewsRemote but NOT extensionsAny.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode.remote-explorer
	at g (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:68142)
	at get allAcrossExtensionHosts [as allAcrossExtensionHosts] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:34914)
	at t (/Users/azero/.vscode/extensions/ms-vscode.remote-explorer-0.1.2022091309/dist/node/extension.js:1:56743)
	at new t.RemoteTreeDataProvider (/Users/azero/.vscode/extensions/ms-vscode.remote-explorer-0.1.2022091309/dist/node/extension.js:1:57085)
	at t.activate (/Users/azero/.vscode/extensions/ms-vscode.remote-explorer-0.1.2022091309/dist/node/extension.js:1:61466)
	at Tn._callActivateOptional (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:17649)
	at Tn._callActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:17307)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:15118
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async E._activate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8224)
	at async E._waitForDepsThenActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8166)
	at async E._initialize (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:7530)

Azero-NG avatar Sep 16 '22 08:09 Azero-NG

I append "extensionsAny" to "extensionEnabledApiProposals"."ms-vscode.remote-explorer" in "C:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\product.json", then the explorer works well. Is this a problem of vscode itself ?

{
...
  "extensionEnabledApiProposals": {
 ...
  "ms-vscode.remote-explorer": [
	"contribViewsRemote",
	"extensionsAny" // added
    ],
}

soraclub avatar Sep 16 '22 09:09 soraclub

版本: 1.71.2 (Universal) 提交: 74b1f979648cc44d385a2286793c226e611f59e7 日期: 2022-09-14T21:05:37.721Z Electron: 19.0.12 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Darwin x64 21.3.0 沙盒化: No image

vuuihc avatar Sep 21 '22 04:09 vuuihc

Hello! Could you list the version of your remote-explorer extension? You can find this by going to the extensions tab then searching for remote explorer in the marketplace and the version should be listed to the right of the extension name after you click on the search result and would look something like: v0.1.2022091309 Screen Shot 2022-09-23 at 1 37 32 PM

eleanorjboyd avatar Sep 23 '22 20:09 eleanorjboyd

Hello! Could you list the version of your remote-explorer extension? You can find this by going to the extensions tab then searching for remote explorer in the marketplace and the version should be listed to the right of the extension name after you click on the search result and would look something like: v0.1.2022091309 Screen Shot 2022-09-23 at 1 37 32 PM

yes,the version is exactly "v0.1.2022091309" in my VSCode

soraclub avatar Sep 26 '22 10:09 soraclub

I append "extensionsAny" to "extensionEnabledApiProposals"."ms-vscode.remote-explorer" in "C:\Users\guanz\AppData\Local\Programs\Microsoft VS Code\resources\app\product.json", then the explorer works well. Is this a problem of vscode itself ?

{
...
  "extensionEnabledApiProposals": {
 ...
  "ms-vscode.remote-explorer": [
	"contribViewsRemote",
	"extensionsAny" // added
    ],
}

I had the same exact issue and this solution also worked for me.

Version v0.1.2022092609 Pre-release.

gtpalmer avatar Sep 26 '22 10:09 gtpalmer

Where can I find product.json on Linux because I got the same issue here. There is no product.json anywhere in my $HOME/.vscode directory.

NicolasGoeddel avatar Oct 11 '22 18:10 NicolasGoeddel

Hello- can someone verify if this is fixed? We pushed a fix two days ago on the most recent version of remote-explorer.

eleanorjboyd avatar Oct 12 '22 16:10 eleanorjboyd

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!

github-actions[bot] avatar Dec 01 '22 15:12 github-actions[bot]

This has started happening to me on the latest version of the extension, pre-release, and a version from 3 weeks ago.

Version: 1.72.2 Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075 Date: 2022-10-12T22:16:26.920Z Electron: 19.0.17 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Linux x64 5.18.16-1rodete4-amd64 <---- This means Rolling Debian Testing Sandboxed: No

braydonk avatar Dec 12 '22 20:12 braydonk

@braydonk could you send your remote-ssh logs and the logs from your dev tools?

eleanorjboyd avatar Dec 13 '22 18:12 eleanorjboyd

Here are the logs from my dev tools.

Error: Extension 'ms-vscode.remote-explorer' CANNOT use API proposal: localization.
Its package.json#enabledApiProposals-property declares: contribViewsRemote, extensionsAny but NOT localization.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode.remote-explorer
    at f (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:86:54344)
    at Object.t (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:54813)
    at t.explorerFolderSortOrder (vscode-file://vscode-app/home/braydonk/.vscode/extensions/ms-vscode.remote-explorer-0.0.3/dist/node/extension.js:2:420597)
    at t.RemoteTreeDataProvider.getChildren (vscode-file://vscode-app/home/braydonk/.vscode/extensions/ms-vscode.remote-explorer-0.0.3/dist/node/extension.js:2:413779)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at v.fetchChildrenNodes (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:21066)
    at v.getChildren (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:16693)
onDidChangeNotification @ notificationsAlerts.ts:40

This error always appears when I try to open the Remote Development pane from the Primary Side Bar.

I am not sure how to get remote-ssh logs; I didn't find any instructions for that in CONTRIBUTING.md, is there somewhere else I should look?

braydonk avatar Dec 13 '22 19:12 braydonk

@braydonk, thank you so much for sending this over! This actually should give us all the information we need to make this fix so no need to get the remote-ssh logs, apologies for not providing instructions there. We will get back to you with updates, thanks!

eleanorjboyd avatar Dec 13 '22 20:12 eleanorjboyd

@braydonk also if you do get stuck in the future with remote-ssh here is a new troubleshooting wiki we have created in case it could be helpful next time! https://github.com/microsoft/vscode-remote-release/wiki/Debugging-for-Remote-SSH

eleanorjboyd avatar Dec 13 '22 20:12 eleanorjboyd

@braydonk looks like you're on an old version of vscode, please update

Version: 1.72.2

you may not get the latest version of extensions unless you're on the latest vscode, this should be fixed in the latest

roblourens avatar Dec 13 '22 21:12 roblourens

Ah okay, that's tricky since my organization controls which version of VSCode we're on, so I only get updates once they decide. Is there an old version of the remote extension I could install manually that may still work on version 1.72.2?

braydonk avatar Dec 13 '22 21:12 braydonk

You can try an old version of remote-ssh (an older version won't depend on remote-explorer).

0.84 for example should work

roblourens avatar Dec 13 '22 21:12 roblourens

Here are the logs from my dev tools.

Error: Extension 'ms-vscode.remote-explorer' CANNOT use API proposal: localization.
Its package.json#enabledApiProposals-property declares: contribViewsRemote, extensionsAny but NOT localization.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode.remote-explorer
    at f (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:86:54344)
    at Object.t (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:54813)
    at t.explorerFolderSortOrder (vscode-file://vscode-app/home/braydonk/.vscode/extensions/ms-vscode.remote-explorer-0.0.3/dist/node/extension.js:2:420597)
    at t.RemoteTreeDataProvider.getChildren (vscode-file://vscode-app/home/braydonk/.vscode/extensions/ms-vscode.remote-explorer-0.0.3/dist/node/extension.js:2:413779)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at v.fetchChildrenNodes (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:21066)
    at v.getChildren (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:16693)
onDidChangeNotification @ notificationsAlerts.ts:40

This error always appears when I try to open the Remote Development pane from the Primary Side Bar.

I am not sure how to get remote-ssh logs; I didn't find any instructions for that in CONTRIBUTING.md, is there somewhere else I should look?

I encounter this issue, too. Upgrading version of vscode from 1.72 to 1.74 works for me.

JisongXie avatar Dec 14 '22 02:12 JisongXie

Version 0.84 of the extension seems to work. Thank you for your help!

braydonk avatar Dec 14 '22 13:12 braydonk