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

Theia does not accept .../latest/file/download as plugin URL #13016

Open
goekce opened this issue Oct 20, 2023 · 0 comments
Open

Theia does not accept .../latest/file/download as plugin URL #13016

goekce opened this issue Oct 20, 2023 · 0 comments
Labels
open-vsx issues related to the open-vsx registry theia-cli issues related to the theia-cli

Comments

@goekce
Copy link

goekce commented Oct 20, 2023

Bug Description:

If I use the URL for the latest version of a plugin like:

"theiaPlugins": {                                                                                                                                                                                                                    
       "vscode-builtin-extensions-pack": "https://open-vsx.org/api/eclipse-theia/builtin-extension-pack/latest/file/download"                                                                                                           },

Then I get the following error:

... has an unsupported file type: ...

Related lines:

if (pluginUrl.endsWith('tar.gz')) {
fileExt = '.tar.gz';
} else if (pluginUrl.endsWith('vsix')) {
fileExt = '.vsix';
} else if (pluginUrl.endsWith('theia')) {
fileExt = '.theia'; // theia plugins.
} else {
failures.push(chalk.red(`error: '${plugin}' has an unsupported file type: '${pluginUrl}'`));
return;
}

Related: eclipse/openvsx#507

Steps to Reproduce:

  1. Add above plugin link to package.json
  2. yarn theia download:plugins

Additional Information

  • Operating System: Arch Linux
  • Theia Version: 1.42 (latest)
@msujew msujew added theia-cli issues related to the theia-cli open-vsx issues related to the open-vsx registry labels Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-vsx issues related to the open-vsx registry theia-cli issues related to the theia-cli
Projects
None yet
Development

No branches or pull requests

2 participants