Skip to content

Fix support for Eclipse Theia #110

Open

Description

@datho7561

When try to use the extension in Theia, I get

Launching server using command /home/davthomp/Documents/Projects/theia/examples/browser/undefined/bin/java failed.

It would be nice to figure out why this is happening and address it.

Activity

  1. added
    bug
    on Aug 29, 2022
  2. self-assigned this
    on Sep 21, 2022
  3. rgrunber commented on Sep 21, 2022

    @rgrunber
    Member

    An inspection of /home/davthomp/Documents/Projects/theia/examples/browser/undefined/bin/java may explain things.

  4. datho7561 commented on Sep 21, 2022

    @datho7561
    ContributorAuthor

    If I add:

    // ...
      executable.command = path.resolve(requirements.tooling_jre ?? requirements.java_home + '/bin/java');
    // ...

    to prepareExecutable in javaServerStarter, then I can get the error to go away. (I think I'm just running a version of vscode-java without the JDK bundled). Even with this change, though, I still don't get lsp4mp features in properties files.

  5. datho7561 commented on Sep 22, 2022

    @datho7561
    ContributorAuthor

    Here are the steps to fix this issue:

    • Make sure that you are running the most recent vscode-java (1.10.0 or 1.11.0); I think Theia installs 1.1.0 from openvsx by default
    • Add the following setting to the JDT-LS vmargs: -Xlog:disable
    • Add the following setting to the lsp4mp vmargs: -Xlog:disable
  6. datho7561 commented on Sep 30, 2022

    @datho7561
    ContributorAuthor

    By default, Theia installs vscode-java 1.1.0 from the marketplace. This is because it is the newest release of vscode-java that has a vscode engine version compatible with Theia. Unless the user manually installs the .vsix for vscode-java and vscode-microprofile, it won't work in Theia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions