-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
java vscode extension is not published to vsx registry properly #7448
Comments
@spoenemann @jankeromnes This issue is about consuming the "Java by Red Hat" extension, from open-vsx.org, in Theia applications. It happens that the latest version of that extension, built/deployed nightly in open-vsx,org, does not work well in Theia. In an ideal world, when I access the registry from the my Theia-based IDE app, I would be offered a version of an extension that's known to work in my application, but it sounds to be easier said than done. Any thoughts about how to handle this type of situation? |
I would say short-term, we can publish the older version to Open VSX, and remove the newer version for now. Longer term, I think there should be a way to upload multiple versions to Open VSX, and for clients to download a specific version depending on their needs. |
@spoenemann Please remove Also, do you have any thoughts or suggestions on the proposed longer term solution? |
@lmcbout @marcdumais-work Which project did you use to reproduce the issue? |
@akosyakov I use a small application to test JAVA with different version of REDHAT JAVA and maven. Rename the file...tar.txt to ...tar, Just untar the following in a workspace, install from the open registry MAVEN with JAVA 058.0, no RUN | Debug |
Though it would not cover all possible cases of incompatibility, could the registry use the client's reported version of supported In the specific case of
Anecdotally, this extension stops working well in Theia from v0.55.0, which is the first version where they stepped vs code engine from "^1.40.0" to "^1.41.0". |
@marcdumais-work I think it is a feature request for Theia, right now we only pull latest version, we don't verify whether its confirm to vscode api engine version. Could you file an issue please? We also don't support detecting outdated extensions and upgrading them. |
The first part is already possible. Downloading a specific version is also possible, but so far our UI only displays the latest version. We could change that. Can'we just fix the problems in Theia instead of deleting published extensions from the registry? |
I agree with Miro that we cannot keep outdated versions in the registry, but should work on bug fixing in the plugin system. |
@lmcbout It works for me, code lens are disabled by default, you should enabled them in settings with How did you manage to get:
I cannot reproduce it. If you can provide a GitHub repo it would help. |
moved to open-vsx/publish-extensions#18 |
I would like to avoid doing this in general, but in this case we're going to delete the already published version from open-vsx.org |
Ok, will do. So IIUC the client can deal with this, with no additional support from Open VSX? Do we know if VS Code and their registry have a similar mechanism? |
|
Yes, I agree. Even more so if, as looks probable, Open VSX eventually adds supports clients other than Theia, like VSCodium. |
@lmcbout A fixed Could you please try again with |
Hi @jankeromnes , I just tried using the Theia electron example app from the main repo, using latest master. I installed the Java extension from the extensions view, pulling it from Upon opening a Backend exception:
|
@marcdumais-work it is missing workspace APIs we should work on it: #7171 I don't think there is an issue in the registry or in the extension. |
I do not think this was implied in the original title of this issue that the problem was with the registry or the extension. Rather that for a user naively trying a Theia app and installing the java extension will not have a good outcome, hence the suggestion to publish a version that works with the current theia. |
@marcdumais RedHat is going to claim own namespace: EclipseFdn/open-vsx.org#6 I think it would be too much to ask them to change their release process to publish another version for Theia. It should not be hard to fix missing APIs, we have them in Theia already. |
ok, seems reasonable in this case. But I expect this will be a recurring type of problem whenever new APIs will appear in the wild that we do not support yet. Until we have something like #7464 |
Description
Propose to set the redhat JAVA version 0.54.2 in open-vsx registry
Testing Theia and JAVA available in vsx-registry (https://open-vsx.org/?)
The redhat JAVA version is 0.58.0 and is incompatible with version of Theia. When you install it, you get a popup dialog saying: " Activating extension Language Support for Java(TM) by Red Hat failed: Cannot read property 'join' of null.
bash: syntax error near unexpected token `(' "
refer to the issue #6791
Side effect:
1- You don't get the "RUN | Debug" button from gitlens
2- Install MAVEN and try to expand the plugions folder from the mavens view, it loops
3- Install the JAVA dependency view , you get a popup saying: "Cannot activate extension 'Java Dependency Viewer' because it depends on extension 'Language Support for Java(TM) by Red Hat', which failed to activate."
Reproduction Steps
Open THeia latest version
Expand the extension view, search for JAVA plugins
1- Install "Language <support for JAva" version 0.58.0
--> observe the dialog popup
2- Install MAven, open a maven project
Expand the Mavens view until the plugins tree folder and try to open it
--> it loops and does not get display
3- Install the Java dependency view
--> get a dialog saying: "Cannot activate extension 'Java Dependency Viewer' because it depends on extension 'Language Support for Java(TM) by Red Hat', which failed to activate."
OS and Theia version:
Ubuntu 18.04
Chrome
Theia : latest commit 743836e
Diagnostics:
The text was updated successfully, but these errors were encountered: