theia: java vscode extension is not published to vsx registry properly

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™ 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™ 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™ by Red Hat’, which failed to activate.”

OS and Theia version: Ubuntu 18.04 Chrome Theia : latest commit 743836ed2da69e16ea2583efa6ce9a505e204eb1

Diagnostics:

Java58AndMaven

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (22 by maintainers)

Commits related to this issue

Most upvoted comments

@marcdumais-work it is missing workspace APIs we should work on it: https://github.com/eclipse-theia/theia/issues/7171

I don’t think there is an issue in the registry or in the extension.

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 open-vsx.org: image

Upon opening a .java file I get error: image

Backend exception:

root ERROR [hosted-plugin: 9271] Error on activation of java TypeError: s.workspace.onDidCreateFiles is not a function
    at Object.t.registerFileEventHandlers (/home/lmcmcds/.theia/extensions/redhat.java-0.59.0/extension/dist/extension.js:7:96930)
    at Promise (/home/lmcmcds/.theia/extensions/redhat.java-0.59.0/extension/dist/extension.js:1:197103)
    at new Promise (<anonymous>)
    at /home/lmcmcds/.theia/extensions/redhat.java-0.59.0/extension/dist/extension.js:1:188413
    at Generator.next (<anonymous>)
    at o (/home/lmcmcds/.theia/extensions/redhat.java-0.59.0/extension/dist/extension.js:1:180965)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Ok, i was able to reproduce it. The issue is not with Theia or VS Code java extension, but apparently with the publishing script: Screenshot 2020-03-31 at 10 32 10

(1) - is from VS Code Marketplace, this extension works (2) - is from Open VSX Registry, this extension does not work and it is very tine compare to (1)

cc @spoenemann @jankeromnes