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

Activating extension 'Python Debugger' failed: r.workspace.registerPortAttributesProvider is not a function #13881

Open
zoof opened this issue Jul 3, 2024 · 1 comment

Comments

@zoof
Copy link

zoof commented Jul 3, 2024

Bug Description:

I have a variety of Python related extensions installed (Python, Python Debugger, Jupyter related extensions and Micromamba). When opening a Python script, I get the above error.

Steps to Reproduce:

  1. Start Theia
  2. Open a Python script
2024-07-03T22:18:37.479Z root INFO [hosted-plugin: 4600] calling activation function on NPM support for VS Code (built-in)
2024-07-03T22:18:37.516Z root INFO [hosted-plugin: 4600] Debug configuration provider has been registered: python, trigger: 1
2024-07-03T22:18:37.559Z root INFO [hosted-plugin: 4600] calling activation function on Python
2024-07-03T22:18:37.559Z root INFO [hosted-plugin: 4600] PLUGIN_HOST(4600): PluginManagerExtImpl/loadPlugin(/home/user/.theia-ide/deployedPlugins/ms-python.debugpy-2024.6.0/extension/dist/extension.js)
2024-07-03T22:18:37.672Z root INFO [hosted-plugin: 4600] Debug configuration provider has been registered: debugpy, trigger: 1
2024-07-03T22:18:37.672Z root INFO [hosted-plugin: 4600] Debug configuration provider has been registered: debugpy, trigger: 2
2024-07-03T22:18:37.680Z root ERROR [hosted-plugin: 4600] Activating extension 'Python Debugger' failed: TypeError: r.workspace.registerPortAttributesProvider is not a function
    at t.registerDebugger (/home/user/.theia-ide/deployedPlugins/ms-python.debugpy-2024.6.0/extension/dist/extension.js:2:880557)
    at e.activate (/home/user/.theia-ide/deployedPlugins/ms-python.debugpy-2024.6.0/extension/dist/extension.js:2:1128292)
    at C.startPlugin (/tmp/.mount_TheiaIl61IPG/resources/app/lib/backend/339.js:1:494875)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /tmp/.mount_TheiaIl61IPG/resources/app/lib/backend/339.js:1:492508

Additional Information

  • Operating System: Arch Linux
  • Theia Version: 1.51.0
@tjk144
Copy link

tjk144 commented Jul 6, 2024

Yup, I got the exact same issue too on same versions, however the extension that appears to be causing the issue on my end is just the Python one. There was a kinda similar experience over here theia-ide/theia-apps#441 but rolling back the extension versions has not changed this error.

2024-07-06T20:43:10.398Z [Info] Name: Python Debugger
2024-07-06T20:43:10.398Z [Info] Module: debugpy
2024-07-06T20:43:10.403Z [Error] sendDebugpySuccessActivationTelemetry() failed. TypeError: r.workspace.registerPortAttributesProvider is not a function
    at t.registerDebugger (/home/user/.theia-ide/deployedPlugins/ms-python.debugpy-2024.6.0/extension/dist/extension.js:2:880557)
    at e.activate (/home/user/.theia-ide/deployedPlugins/ms-python.debugpy-2024.6.0/extension/dist/extension.js:2:1128292)
    at C.startPlugin (/opt/TheiaIDE/resources/app/lib/backend/339.js:1:494875)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /opt/TheiaIDE/resources/app/lib/backend/339.js:1:492508

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

2 participants