Closed fyudanov closed 1 year ago
@fyudanov duplicate of https://github.com/eclipse-theia/theia/issues/10447?
@vince-fugnitto I don't think so, the culprit seems to be this:
root ERROR [hosted-plugin: 3724] Activating extension 'tabnine-vscode' failed: TypeError: Class extends value undefined is not a constructor or null
at Object.4234 (/home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:78028)
at n (/home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:165032)
at Object.1465 (/home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:86680)
at n (/home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:165032)
at Object.4624 (/home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:69658)
at n (/home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:165032)
at /home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:165511
at /home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:167668
at Object.<anonymous> (/home/gitpod/.theia/extensions/TabNine.tabnine-vscode-3.5.32.vsix/extension/out/extension.js:17:167689)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
The extension creashes completely during its startup, since it can't resolve the extends InlineCompletionItem
. Older versions of Tabnine (tested with 3.5.21
) work correctly.
@vince-fugnitto Digging deeper, it seems like InlineCompletionItem
is currently proposed API, which doesn't make a lot of sense, given that their pinned version of VSCode is still 1.50
...
@msujew it seems to be a proposed api that was recently introduced, I'd suggest that an older version of tabnine
should be used instead.
Edit: you beat me to it ;)
So it would be a simple workaround to install on older version of Tabnine )
Probably a newbie question from my side, but does Theia allows this from UI (like e.g. VScode does https://code.visualstudio.com/updates/v1_30#_install-previous-versions)?
@fyudanov it is currently in-progress https://github.com/eclipse-theia/theia/pull/9330.
@fyudanov it is currently in-progress #9330.
Ok. Thanks for a quick help!
I believe the extension should now work, and the ability to install different versions of a plugin exists.
Attempt to install Tabnine plugin fails on Theia (browser version) with error: Class extends value undefined is not a constructor or null
Reproducible on Theia versions 1.19-1.23
Also checked the configuration from https://github.com/eclipse-theia/theia/issues/10447. Fails the same way on my side.
package.json