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

VSX extension: Disposable.dispose() is not a function #13906

Open
Tracked by #13192
arnaudvergnet opened this issue Jul 10, 2024 · 1 comment
Open
Tracked by #13192

VSX extension: Disposable.dispose() is not a function #13906

arnaudvergnet opened this issue Jul 10, 2024 · 1 comment
Assignees

Comments

@arnaudvergnet
Copy link

Bug Description:

When using the Mercurial extension in the Theia IDE from the Open Vsx registry, the extension fails to start with the message Activating extension 'Hg' failed: TypeError: _a.dispose is not a function (see below for detailed stack trace).

The same extension from the same registry works on VSCodium.

Steps to Reproduce:

  1. Open the Theia IDE
  2. Install the extension https://open-vsx.org/extension/mrcrowl/hg
  3. Restart Theia IDE
  4. See the error popup on the bottom right
    image

Stack trace

Opening the IDE with the console provides the following stack trace:

2024-07-10T09:11:32.835Z root ERROR [hosted-plugin: 22540] Activating extension 'Hg' failed: TypeError: _a.dispose is not a function
    at CurrentLineAnnotationProvider.stop (/home/avergnet/.theia-ide/deployedPlugins/mrcrowl.hg-1.8.1/extension/out/annotations.js:100:72)
    at CurrentLineAnnotationProvider.applyConfiguration (/home/avergnet/.theia-ide/deployedPlugins/mrcrowl.hg-1.8.1/extension/out/annotations.js:111:18)
    at new BaseAnnotationProvider (/home/avergnet/.theia-ide/deployedPlugins/mrcrowl.hg-1.8.1/extension/out/annotations.js:71:14)
    at new CurrentLineAnnotationProvider (/home/avergnet/.theia-ide/deployedPlugins/mrcrowl.hg-1.8.1/extension/out/annotations.js:105:1)
    at /home/avergnet/.theia-ide/deployedPlugins/mrcrowl.hg-1.8.1/extension/out/main.js:55:136
    at Generator.next (<anonymous>)
    at fulfilled (/home/avergnet/.theia-ide/deployedPlugins/mrcrowl.hg-1.8.1/extension/out/main.js:10:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Looking at the extensions's code, it seems this line is throwing the error, which means Theia does not properly implement the Disposable class.

But looking at the extension API support report, it seems the Disposable class should be fully supported.

Additional Information

  • Operating System: Manjaro Linux
  • Theia Version: 1.51.0
  • VS Code API Version: 1.90.2
  • Mercurial extension Version: 1.8.1

I can provide more information if necessary, thank you for this project.

@JonasHelming JonasHelming mentioned this issue Jul 11, 2024
63 tasks
@sgraband
Copy link
Contributor

I can take a look

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