Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

[Java, full] Language Server not working/starting #285

Closed
Allwin-Backya opened this issue Jan 17, 2020 · 12 comments · Fixed by #307
Closed

[Java, full] Language Server not working/starting #285

Allwin-Backya opened this issue Jan 17, 2020 · 12 comments · Fixed by #307

Comments

@Allwin-Backya
Copy link

Description
I created a container from theia image and created a java file. But, auto suggestion is not working.

Error
Failed to start java language server.

Screenshot_2020-01-17 project — Theia Multi-Language Example

@marcdumais-work
Copy link
Member

@Allwin-Backya,

Thanks for reporting this issue. I have reproduced outside of Docker, using Theia's main repo example application. So it looks like this is a generic issue, not one specific to this docker image.

I opened a corresponding issue in the main repo: eclipse-theia/theia#6906
We can keep this issue here until a fix trickles-down and the docker image is fixed as well.

In the meantime, you could try an older pre-build image from dockerhub

@Allwin-Backya
Copy link
Author

@marcdumais-work
Thanks for your suggestion. But i have done some customization in my docker file. Is there any other solution.

@marcdumais-work
Copy link
Member

Hi @Allwin-Backya ,

I assume you modified the Dockerfile in-place? An alternate way would be to extend one version of the image that works. i.e. assuming this ~1 month old version of the image works correctly theiaide/theia-java:0.14.0-next.f54e970d:

FROM theiaide/theia-java:0.14.0-next.f54e970d
<add your customizations>
<add your customizations>
<...>
WORKDIR /home/theia
ENTRYPOINT [ "yarn", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]

Also a heads-up: we are in the process of replacing spme Theia-specific language extensions by the equivalent or better VS Code extensions, including for Java. So it may not be worth it at this point to fix issues such as this one, with the legacy Theia-specific Java support. So the fix in the end may end-up being the switch to VS Code extensions. If that's the case, you'll need to uplift your version of this image.

ETA: hopefully this week.

@Allwin-Backya
Copy link
Author

@marcdumais-work
Thank you so much. If the fix for this issue goes by this week, then no problem. But if the fix takes too long, I need to go by the way you suggested. You have suggested old version of Theia-Java. Will it also work for theia-full. If so, can you suggest some old version for theia-full.

@marcdumais-work
Copy link
Member

@marcdumais-work
You have suggested old version of Theia-Java. Will it also work for theia-full. If so, can you suggest some old version for theia-full.

Yes, the same strategy should work for theia-full. I have not tested that the older image actually works, but it seems likely it would. For theia-full, this one would be a good candidate to test: theiaide/theia-full:0.14.0-next.f54e970d.

Generally, you can look here and try older images until you find one that works.

@Allwin-Backya
Copy link
Author

@marcdumais-work
Thank you. Will the fix go by this week, cauz i am doing a application based on this. If so, where can i get the information regarding the fix.

@marcdumais-work marcdumais-work changed the title Auto Complete - Not Working [Java, full] Language Server not working/starting Jan 20, 2020
@marcdumais-work
Copy link
Member

@marcdumais-work
Thank you. Will the fix go by this week, cauz i am doing a application based on this.

I hope so but can't promise.

If so, where can i get the information regarding the fix.

Just watch this issue here - it will be referred-to from the PR that will fix the issue, so you'll see this issue be closed when a fix is in place.

@Allwin-Backya
Copy link
Author

@marcdumais-work
I have tried it with a previous build image,still i am not getting suggestion.

@marcdumais-work
Copy link
Member

@Allwin-Backya Can you share which one you tried? I am not sure when this breakage happened, but it should not have been so long ago.

@Allwin-Backya
Copy link
Author

@marcdumais-work
I have tried this image theiaide/theia:0.13.0-next.b92a5673.

@marcdumais-work
Copy link
Member

Hi @Allwin-Backya ,

theiaide/theia is the base image that supports only JavaScript/TypeScript development. If you want Java, you have to use either theiaide/theia-java or theiaide/theia-full.

@marcdumais-work
Copy link
Member

The theia-java image should be good now, since we merged #287. The full image is being updated in a similar way.

vince-fugnitto added a commit that referenced this issue Feb 19, 2020
Fixes #285
Fixes #65

- updates the `theia:full` image (`latest` and `next`) to use
vscode builtin and external extensions
- updates the `theia:full` image to remove any deprecated extensions

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
vince-fugnitto added a commit that referenced this issue Feb 21, 2020
Fixes #285
Fixes #65

- updates the `theia:full` image (`latest` and `next`) to use
vscode builtin and external extensions
- updates the `theia:full` image to remove any deprecated extensions

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
vince-fugnitto added a commit that referenced this issue Feb 24, 2020
Fixes #285
Fixes #65

- updates the `theia:full` image (`latest` and `next`) to use
vscode builtin and external extensions
- updates the `theia:full` image to remove any deprecated extensions

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
vince-fugnitto added a commit that referenced this issue Feb 25, 2020
Fixes #285
Fixes #65

- updates the `theia:full` image (`latest` and `next`) to use
vscode builtin and external extensions
- updates the `theia:full` image to remove any deprecated extensions

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants