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

Fix support for Eclipse Theia #110

Open
datho7561 opened this issue Aug 29, 2022 · 4 comments
Open

Fix support for Eclipse Theia #110

datho7561 opened this issue Aug 29, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@datho7561
Copy link
Contributor

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.

@datho7561 datho7561 added the bug Something isn't working label Aug 29, 2022
@datho7561 datho7561 self-assigned this Sep 21, 2022
@rgrunber
Copy link
Member

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

@datho7561
Copy link
Contributor Author

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.

@datho7561
Copy link
Contributor Author

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

@datho7561
Copy link
Contributor Author

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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants