microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.34k stars 1.19k forks source link

Error activating the extension in tests of another extension #24348

Open DonJayamanne opened 4 weeks ago

DonJayamanne commented 4 weeks ago

Here's the output when running Jupyter tests via a CLI

Error: Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!
    at H3.add (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:1439)
    at I8.B (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:2007)
    at I8.getScopedEnvironmentVariableCollection (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:49475)
    at bO.getScoped (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:441)
    at R.getEnvironmentVariableCollection (/Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.17.2024102201-darwin-arm64/out/client/extension.js:2:907142)
    at R._applyCollectionImpl (/Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.17.2024102201-darwin-arm64/out/client/extension.js:2:902069)
    at R._applyCollection (/Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.17.2024102201-darwin-arm64/out/client/extension.js:2:901766)
    at R.activate (/Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.17.2024102201-darwin-arm64/out/client/extension.js:2:901505)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 3)
    at v.activateWorkspace (/Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.17.2024102201-darwin-arm64/out/client/extension.js:2:2405)
karthiknadig commented 4 weeks ago

@DonJayamanne this looks like a VS Code core issue: https://github.com/microsoft/vscode/blob/9ae3d699dc78dd273eb7bd815499615c73a8e35b/src/vs/workbench/api/common/extHostTerminalService.ts#L990