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

Error: Extension 'ms-python.python' CANNOT use API proposal: terminalDataWriteEvent. #24013

Open
milad2golnia opened this issue Aug 28, 2024 · 8 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@milad2golnia
Copy link

milad2golnia commented Aug 28, 2024

Type: Bug

When starting vscode in a python project, the Python extension raises following error and stays in loading state. Previously it was working fine but today I just noticed this problem.

[error] Unable to check if shell integration is active [Error: Extension 'ms-python.python' CANNOT use API proposal: terminalDataWriteEvent.
Its package.json#enabledApiProposals-property declares: quickPickSortByLabel, testObserver but NOT terminalDataWriteEvent.
 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-python.python
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:141:57957)
	at a.onDidWriteTerminalData (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:163:32414)
	at new m (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:816931)
	at t.resolveInstance (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1668732)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1670640
	at Array.map (<anonymous>)
	at t.resolveInstance (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1668506)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1670640
	at t.resolve (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1670903)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1654466
	at e._get (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1654232)
	at e.get (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1652944)
	at e.dynamicValue (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1676008)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1670129
	at c (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1669175)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1670069
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1669588
	at Array.map (<anonymous>)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1669560
	at Array.map (<anonymous>)
	at t.resolveInstance (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1668506)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1670640
	at t.resolve (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1670903)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1654466
	at e._get (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1654232)
	at e.get (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1652944)
	at a.get (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:477070)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:397424
	at async t.activateComponents (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:395711)
	at async /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:2588580
	at async e (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:2588112)
	at async a.n (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:143:6361)
	at async a.m (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:143:6324)
	at async a.l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:143:5781)]
2024-08-28 05:53:09.398 [error] extension activation failed [Error: Extension 'ms-python.python' CANNOT use API proposal: terminalShellIntegration.
Its package.json#enabledApiProposals-property declares: quickPickSortByLabel, testObserver but NOT terminalShellIntegration.
 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-python.python
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:141:57957)
	at Object.onDidStartTerminalShellExecution (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:163:32827)
	at t.onDidStartTerminalShellExecution (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:338602)
	at t.registerTriggerForPipInTerminal (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:662828)
	at t.registerAllCreateEnvironmentFeatures (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:697793)
	at t.activateFeatures (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:397935)
	at /home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:2588639
	at async e (/home/milad/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:2588112)
	at async a.n (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:143:6361)
	at async a.m (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:143:6324)
	at async a.l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:143:5781)]
2024-08-28 05:53:09.398 [info] VS Code was launched from an activated environment: 'vira', selecting it as the interpreter for workspace.
2024-08-28 05:53:09.918 [info] > pyenv which python
2024-08-28 05:53:09.918 [info] cwd: .
2024-08-28 05:53:09.947 [info] > ~/virtualEnvironments/vira/bin/python -I ~/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/python_files/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2024.12.3-linux-x64/python_files/interpreterInfo.py
2024-08-28 05:53:12.631 [info] Starting Jedi language server for finder.
2024-08-28 05:53:20.778 [info] Python interpreter path: ~/virtualEnvironments/vira/bin/python

Extension version: 2024.12.3
VS Code version: Code - OSS 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-07T07:53:34.265Z)
OS version: Linux x64 6.1.94-1-MANJARO
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 x 2500)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 2, 2
Memory (System) 15.54GB (8.10GB free)
Process Argv .
Screen Reader no
VM 0%
DESKTOP_SESSION plasmawayland
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE wayland
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Aug 28, 2024
@anthonykim1
Copy link

Hi @milad2golnia Thanks for filing the issue.
Can you try updating your VS Code version to the latest and see if you can repro the same problem? - Thanks

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Aug 29, 2024
@milad2golnia
Copy link
Author

milad2golnia commented Sep 2, 2024

Hi @anthonykim1 Thank you for your response.
I updated my VS Code but the issue is still present.

$ code --version
1.92.1
eaa41d57266683296de7d118f574d0c2652e1fc4
x64

Also I tried to start VS Code with --enable-proposed-api ms-python.python switch as suggested in error message, but it doesn't work too and I see same error again.

$  code --enable-proposed-api ms-python.python

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Sep 2, 2024
@anthonykim1
Copy link

@milad2golnia I see, could you give this a try on the latest insider version of VS Code?
Make sure to clear console and reload as these logs can stay.

I've looked through if we forgot to register this terminalDataWriteEvent in our side of things, and looked fine.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Sep 3, 2024
@milad2golnia
Copy link
Author

@anthonykim1
I installed insider version of VS Code and there wasn't any error.
Here is full content of Output:

2024-09-04 14:29:57.699 [info] Experiment 'pythonaa' is active
2024-09-04 14:29:57.699 [info] Experiment 'pythonCreateEnvOnPipInstall' is active
2024-09-04 14:29:57.699 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-09-04 14:29:57.699 [info] Experiment 'pythonSurveyNotification' is active
2024-09-04 14:29:57.699 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-09-04 14:29:57.699 [info] Experiment 'pythonTestAdapter' is active
2024-09-04 14:29:57.724 [info] Native locator: Refresh started
2024-09-04 14:29:58.293 [info] Default formatter is set to charliermarsh.ruff for workspace /home/milad/Projects/vira/finder
2024-09-04 14:29:58.344 [info] Native locator: Refresh started
2024-09-04 14:29:58.501 [info] VS Code was launched from an activated environment: 'vira', selecting it as the interpreter for workspace.
2024-09-04 14:29:58.944 [info] Pyenv environment manager found at: /usr/bin/pyenv
2024-09-04 14:29:59.465 [info] > pyenv which python
2024-09-04 14:29:59.465 [info] cwd: .
2024-09-04 14:29:59.556 [info] Python interpreter path: ~/virtualEnvironments/vira/bin/python
2024-09-04 14:30:04.914 [info] Native locator: Refresh finished in 7148 ms
2024-09-04 14:30:06.213 [warning] Shell integration may not be active, environment activated may be overridden by the shell.
2024-09-04 14:30:06.512 [info] > pixi --version
2024-09-04 14:30:06.532 [warning] could not find a pixi interpreter for the interpreter at /usr/sbin/python
2024-09-04 14:30:06.674 [warning] could not find a pixi interpreter for the interpreter at /usr/sbin/python
2024-09-04 14:30:07.948 [info] Starting Pylance language server.
2024-09-04 14:30:26.945 [info] Python interpreter path: /usr/sbin/python
2024-09-04 14:31:14.805 [info] Experiment 'pythonaa' is active
2024-09-04 14:31:14.805 [info] Experiment 'pythonCreateEnvOnPipInstall' is active
2024-09-04 14:31:14.805 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-09-04 14:31:14.805 [info] Experiment 'pythonSurveyNotification' is active
2024-09-04 14:31:14.805 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-09-04 14:31:14.805 [info] Experiment 'pythonTestAdapter' is active
2024-09-04 14:31:14.805 [info] Native locator: Refresh started
2024-09-04 14:31:15.065 [info] Default formatter is set to charliermarsh.ruff for workspace /home/milad/Projects/vira/finder
2024-09-04 14:31:15.082 [info] Native locator: Refresh started
2024-09-04 14:31:15.097 [info] VS Code was launched from an activated environment: 'vira', selecting it as the interpreter for workspace.
2024-09-04 14:31:15.109 [info] Pyenv environment manager found at: /usr/bin/pyenv
2024-09-04 14:31:15.612 [info] Python interpreter path: ~/virtualEnvironments/vira/bin/python
2024-09-04 14:31:18.152 [info] > /usr/bin/pyenv which python
2024-09-04 14:31:18.152 [info] cwd: .
2024-09-04 14:31:20.259 [warning] Shell integration may not be active, environment activated may be overridden by the shell.
2024-09-04 14:31:20.276 [info] Native locator: Refresh finished in 5694 ms
2024-09-04 14:31:20.335 [info] > pixi --version
2024-09-04 14:31:20.343 [warning] could not find a pixi interpreter for the interpreter at /home/milad/virtualEnvironments/vira/bin/python
2024-09-04 14:31:20.460 [info] > . ~/virtualEnvironments/vira/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2024.13.2024082701-linux-x64/python_files/printEnvVariables.py
2024-09-04 14:31:20.461 [info] shell: zsh
2024-09-04 14:31:20.671 [info] > ~/.pyenv/versions/2.7.13/bin/python ~/.vscode-insiders/extensions/ms-python.python-2024.13.2024082701-linux-x64/python_files/printEnvVariables.py
2024-09-04 14:31:20.671 [info] shell: zsh
2024-09-04 14:31:21.974 [info] Setting environment variable SECRET_KEY in collection to e398v6nhklqi213qdas@!#&*-=ghrmd_7vhu6a4&6wg*&#$io.h25ksad8m9d4m-kui&@!%5 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.974 [info] Setting environment variable DEBUG in collection to False {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.975 [info] Setting environment variable API_BACKEND in collection to https://drfinder.darkube.app {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.975 [info] Setting environment variable API_FRONT in collection to https://finder.darkube.app {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.975 [info] Setting environment variable HOST in collection to drfinder.darkube.app {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.975 [info] Setting environment variable CORS_ALLOWED_ORIGINS in collection to http://drfinder.darkube.app {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.976 [info] Setting environment variable CORS_ORIGIN_WHITELIST in collection to http://drfinder.darkube.app {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.976 [info] Setting environment variable ENGINE_DATABASE in collection to django.contrib.gis.db.backends.postgis {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.976 [info] Setting environment variable NAME_DATABASE in collection to drug_finder {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.976 [info] Setting environment variable USER_DATABASE in collection to finder {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.977 [info] Setting environment variable PASSWORD_DATABASE in collection to Tnp2ONrEsgyckupB!78asdkjlIQrq14lqdm!$!0askdj {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.977 [info] Setting environment variable HOST_DATABASE in collection to dbfinder.vira-co-finder.svc {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.977 [info] Setting environment variable PORT_DATABASE in collection to 5432 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.977 [info] Setting environment variable EMAIL_BACKEND in collection to django.core.mail.backends.smtp.EmailBackend {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.977 [info] Setting environment variable EMAIL_HOST in collection to smtp.gmail.com {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.978 [info] Setting environment variable EMAIL_USE_TLS in collection to True {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.978 [info] Setting environment variable SMTP_PORT in collection to 587 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.978 [info] Setting environment variable EMAIL_HOST_USER in collection to [email protected] {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.978 [info] Setting environment variable EMAIL_HOST_PASSWORD in collection to kzvgunvhgvafopwh {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.978 [info] Setting environment variable EMAILS_FROM_EMAIL in collection to [email protected] {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.978 [info] Setting environment variable EMAILS_FROM_NAME in collection to Vira Company {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.978 [info] Setting environment variable TOKEN_DOCTOR_LOGIN in collection to 86400 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.979 [info] Setting environment variable TOKEN_DOCTOR_RESET_PASS in collection to 600 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.979 [info] Setting environment variable TOKEN_DRUGSTORE_LOGIN in collection to 86400 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.979 [info] Setting environment variable TOKEN_DRUGSTORE_RESET_PASS in collection to 600 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.979 [info] Setting environment variable TOKEN_OPERATOR_LOGIN in collection to 86400 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.979 [info] Setting environment variable TOKEN_OPERATOR_RESET_PASS in collection to 600 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.979 [info] Setting environment variable API_KEY in collection to 2F-FaWfw400h85731QyrBNyTQmvPDyoS-x_VL69c454= {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.979 [info] Setting environment variable ORIGINATOR_RESET_PASSWORD in collection to +9890000145 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.980 [info] Setting environment variable PATTERN_RESET_PASSWORD in collection to o9pgsqp90dl5rex {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.980 [info] Setting environment variable ORIGINATOR_INVOICE in collection to +9890000145 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.980 [info] Setting environment variable PATTERN_INVOICE in collection to y5wxoo0fsz6g2tj {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.980 [info] Setting environment variable ORIGINATOR_PRESCRIPTION in collection to +9890000145 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.980 [info] Setting environment variable PATTERN_PRESCRIPTION in collection to fjw05wecgj062cp {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.980 [info] Setting environment variable DURATION_INVOICE_DOCTOR in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.980 [info] Setting environment variable DURATION_INVOICE_DRUGSTORE in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.980 [info] Prepending environment variable PATH in collection with /home/milad/.vscode-insiders/extensions/ms-python.python-2024.13.2024082701-linux-x64/python_files/deactivate/zsh:/home/milad/virtualEnvironments/vira/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:21.981 [info] Prepending environment variable PS1 in collection with (vira)  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-09-04 14:31:22.994 [info] Send text to terminal: /bin/python /home/milad/.vscode-insiders/extensions/ms-python.python-2024.13.2024082701-linux-x64/python_files/printEnvVariablesToFile.py /home/milad/.vscode-insiders/extensions/ms-python.python-2024.13.2024082701-linux-x64/python_files/deactivate/zsh/envVars.txt
2024-09-04 14:31:23.478 [info] Starting Pylance language server.

So why I get that error in stable version of VSCode? Can you guide me how can I fix it?

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Sep 4, 2024
@milad2golnia
Copy link
Author

I tried to debug more.

Its package.json#enabledApiProposals-property declares: quickPickSortByLabel, testObserver but NOT terminalDataWriteEvent.
 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-python.python

According to error message, I looked at package.json of this extension, here is list of enabledApiProposals:


	"enabledApiProposals": [
		"contribEditorContentMenu",
		"quickPickSortByLabel",
		"testObserver",
		"quickPickItemTooltip",
		"terminalDataWriteEvent",
		"terminalExecuteCommandEvent",
		"contribIssueReporter",
		"terminalShellIntegration"
	],

Except quickPickSortByLabel and testObserver, I'm getting following error for other items:

This proposal cannot be used because for this extension the product defines a fixed set of API proposals. You can test your extension but before publishing you MUST reach out to the VS Code team.

image

And here is apiProposals in product.json file of my VS Code:

"extensionEnabledApiProposals": { "ms-vscode.vscode-selfhost-test-provider": ["testObserver"], "VisualStudioExptTeam.vscodeintellicode-completions": ["inlineCompletionsNew", "inlineCompletionsAdditions"], "ms-vsliveshare.vsliveshare": ["contribMenuBarHome", "diffCommand", "documentFiltersExclusive", "fileSearchProvider", "findTextInFiles", "notebookCellExecutionState", "notebookContentProvider", "notebookEditor", "notebookEditorEdit", "notebookLiveShare", "notebookWorkspaceEdit", "terminalDimensions", "terminalDataWriteEvent", "textSearchProvider"], "ms-vscode.js-debug": ["portsAttributes", "findTextInFiles", "workspaceTrust", "resolvers"], "ms-toolsai.vscode-ai-remote": ["resolvers", "notebookEditor"], "ms-python.python": ["quickPickSortByLabel", "testObserver"], "ms-dotnettools.dotnet-interactive-vscode": ["notebookMessaging", "notebookWorkspaceEdit"], "GitHub.codespaces": ["contribEditSessions", "contribMenuBarHome", "contribRemoteHelp", "contribViewsRemote", "resolvers", "terminalDataWriteEvent", "treeViewReveal"], "ms-vscode.azure-repos": ["extensionRuntime", "fileSearchProvider", "textSearchProvider"], "ms-vscode.remote-repositories": ["contribEditSessions", "contribRemoteHelp", "contribMenuBarHome", "contribViewsRemote", "contribViewsWelcome", "documentFiltersExclusive", "extensionRuntime", "fileSearchProvider", "quickPickSortByLabel", "workspaceTrust", "scmSelectedProvider", "scmValidation", "textSearchProvider", "timeline"], "ms-vscode-remote.remote-wsl": ["resolvers", "contribViewsRemote", "telemetry"], "ms-vscode-remote.remote-ssh": ["resolvers", "terminalDataWriteEvent", "contribViewsRemote", "telemetry"], "ms-vscode.remote-server": ["resolvers", "contribViewsRemote"], "ms-vscode-remote.remote-containers": ["resolvers", "workspaceTrust", "terminalDimensions", "contribViewsRemote"], "ms-vscode.js-debug-nightly": ["portsAttributes", "findTextInFiles", "workspaceTrust", "resolvers"], "ms-vscode.lsif-browser": ["documentFiltersExclusive"], "GitHub.vscode-pull-request-github": ["tokenInformation", "commentsResolvedState", "badges", "contribViewSize"], "GitHub.copilot": ["inlineCompletionsNew", "inlineCompletionsAdditions"], "GitHub.copilot-nightly": ["inlineCompletionsNew", "inlineCompletionsAdditions"], "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": ["notebookControllerKind", "notebookDebugOptions", "notebookDeprecated", "notebookWorkspaceEdit", "notebookMessaging", "notebookMime", "notebookCellExecutionState", "portsAttributes", "quickPickSortByLabel", "notebookKernelSource", "interactiveWindow"], "ms-toolsai.vscode-jupyter-powertoys": ["notebookWorkspaceEdit"], "dbaeumer.vscode-eslint": ["notebookCellExecutionState"], "ms-vscode.azure-sphere-tools-ui": ["resolvers"], "ms-azuretools.vscode-azureappservice": ["terminalDataWriteEvent"], "ms-vscode.anycode": ["extensionsAny"], "ms-vscode.cpptools": ["terminalDataWriteEvent"] },
	

As you can see, the list of apiProposals that are listed for ms-pythone.python extension, are just those which are not marked as error in package.json of extension:

"ms-python.python": ["quickPickSortByLabel", "testObserver"]

@anthonykim1 Can I provide more information?

@milad2golnia
Copy link
Author

milad2golnia commented Sep 5, 2024

OK, I finally resolved the problem. Here’s what I did:

  1. First, I looked at the package.json file of the extension (in my case, it was ~/.vscode-oss/extensions/ms-python.python-2024.12.3-universal/package.json) to identify which apiProposals were marked as errors.
  2. I then manually added the failed enabledApiProposals to the extensionEnabledApiProposals field in the product.json file of VS Code.
  3. Finally, I reinstalled the extension.

I don't think this is the correct solution, and modifying the product.json manually may not be a good practice. The extension should handle any necessary file modifications during installation without requiring manual user intervention.

@Kkeller83
Copy link

Kkeller83 commented Sep 6, 2024

Ran into the same issue today. I had to fix it by manually adding "terminalShellIntegration" to the enabledApiProposals in the exntensions package.json. Downgrading to the previous version of the extension and there are the SAME issues

@rgrunber
Copy link

rgrunber commented Sep 9, 2024

Doing a comparison between the VS Code 1.92.0 and 1.93.0 product.json, I see :

under extensionEnabledApiProposals

-       "ms-python.python": ["contribEditorContentMenu", "quickPickSortByLabel", "portsAttributes", "testObserver", "quickPickItemTooltip", "terminalDataWriteEvent", "terminalExecuteCommandEvent", "contribIssueReporter", "terminalShellIntegration"],
+       "ms-python.python": ["contribEditorContentMenu", "quickPickSortByLabel", "portsAttributes", "testObserver", "quickPickItemTooltip", "terminalDataWriteEvent", "terminalExecuteCommandEvent", "contribIssueReporter", "notebookReplDocument"],

Seems like this would have started happening after updating to 1.93.0.

Based on https://code.visualstudio.com/api/advanced-topics/using-proposed-api , proposed API are not available outside of insiders release (declaring the feature in package.json is only for insiders) without the above metadata set (platform level) for the specific extension id that intends to use them.

Update: Whoops, looks like terminalShellIntegration became finalized in 1.93.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

4 participants