-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
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:
- Open the Theia IDE
- Install the extension https://open-vsx.org/extension/mrcrowl/hg
- Restart Theia IDE
- See the error popup on the bottom right

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.
Metadata
Metadata
Assignees
Labels
No labels