theia icon indicating copy to clipboard operation
theia copied to clipboard

Title: Missing Dependencies in TheiaIDE Distribution on Windows

Open AlexanderSLoburev opened this issue 7 months ago • 3 comments

Steps to Reproduce:

  1. Download the Windows installer release from the official TheiaIDE web page.
  2. Run the installer: I Agree > Anyone who uses this computer (all users) > I Agree > Install and wait for the installation process to complete.
  3. Run cmd as administrator and execute "C:\Program Files\Eclipse Theia\TheiaIDE\TheiaIDE.exe" --hostname 127.0.0.1 --log-level debug --log-dir "%USERPROFILE%.theia-ide\logs"
  4. Observe startup logs in the console.

Additional Information

When launching the prebuilt Eclipse Theia IDE on Windows, the application fails to locate a large number of bundled packages. Instead of loading, TheiaIDE emits “Cannot resolve package … relative to …/resources/app/package.json” errors for core extensions and libraries.

  • Operating System: Windows 11 Pro 10.0.26100
  • Theia Version: 1.61.0
  • Node Version: v24.1.0
  • Npm Version: 11.3.0

theia_execution.log

AlexanderSLoburev avatar Jun 03 '25 13:06 AlexanderSLoburev

It looks like the TheiaIDE package is using the @theia/metrics package which is using an outdated method of retrieving the installed extensions. After packaging these extensions no longer exists, which explains the source of the error:

https://github.com/eclipse-theia/theia/blob/2060a9b89aa9e1fa83d909767c24c6c47dd41b9b/packages/metrics/src/node/extensions-metrics-contribution.ts#L36

It's supposed to use the globalThis.extensionInfo property instead.

msujew avatar Jun 03 '25 13:06 msujew

@AlexanderSLoburev does this have any consequences other than the log output?

tsmaeder avatar Jun 04 '25 09:06 tsmaeder

@tsmaeder Well, I just checked again, and at first glance, everything is fine now. But yesterday it was not possible to access the Open-VSX Registry with the error "theia ide Error fetching extensions. timeout"

AlexanderSLoburev avatar Jun 04 '25 09:06 AlexanderSLoburev