Replies: 1 comment 8 replies
-
Thanks for the question! The last time I tried to use Eclipse Theia it was working mostly alright. What seems weird here is that the error is not in actual code we provide but in the library one. My guess is that we use newer version of vscode-languageclient that is not yet supported by theia? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am trying to get the scalameta.metals vscode extension to work with Theia (the browser-based vscode like IDE). I started by downloading:
scalameta.metals-1.20.0.vsix
and simply dropping it in the plugins folder. It was recognized by Theia, and when I tried to open a .sc file it attempted to activate the extension. However, I got this error:
root ERROR [hosted-plugin: 4807] Activating extension 'Scala (Metals)' failed: TypeError: Class extends value undefined is not a constructor or null
at Object. (/tmp/vscode-unpacked/scalameta.metals-1.20.0.vsix/extension/node_modules/vscode-languageclient/lib/common/protocolTypeHierarchyItem.js:8:46)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Function.module._load (/home/komchang/cse/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init.js:68:33)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/tmp/vscode-unpacked/scalameta.metals-1.20.0.vsix/extension/node_modules/vscode-languageclient/lib/common/codeConverter.js:18:37)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
I was able to install this extension for use with vscode on my Mac just fine by following the instructions in the Readme.md file. However, it's not working with Theia. Does the "installer" do something special? Every other vscode language extension has worked in Theia for me simply by dropping it into the plugins folder. Does this extension have special setup requirements?
I am using node version 16.18.1. I am using the extension provided by the "releases" section of this github, not one I built myself.
Beta Was this translation helpful? Give feedback.
All reactions