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

Failed to start Java language server: Message could not be parsed #7092

Closed
tsiyona opened this issue Feb 6, 2020 · 8 comments
Closed

Failed to start Java language server: Message could not be parsed #7092

tsiyona opened this issue Feb 6, 2020 · 8 comments
Labels
java issues related to the java language question user / developer questions

Comments

@tsiyona
Copy link

tsiyona commented Feb 6, 2020

Description

Hi, I am trying to add java language server extension to Theia version 0.11.0
Yet, it seems that the language server is not started/connected-to properly.
It looks like Theia is not recognizing the used language.

Can anyone help please?

Reproduction Steps

I added in theia/examples/browser/package.json an entry for the Java lang server:
"dependencies": {
...
"@theia/java": "^0.11.0"
}, ...

and re-built.

When I restart Theia, I get the following error:
Failed to start Java language server: Message could not be parsed.
See also attached image.

OS and Theia version:
Linux

Diagnostics:

jls

@akosyakov
Copy link
Member

Please use vscode java extension, Theia extension is deprecated and will be removed next months.

@akosyakov akosyakov added java issues related to the java language question user / developer questions labels Feb 6, 2020
@tsiyona
Copy link
Author

tsiyona commented Feb 6, 2020

redhat.java ?

@akosyakov
Copy link
Member

@tsiyona yes, look at root package how plugins can be installed

@akosyakov
Copy link
Member

@tsiyona
Copy link
Author

tsiyona commented Feb 6, 2020

Do you mean I should add to theia/examples/browser/package.json, after "dependencies" section, the following?

"theiaPluginsDir": "plugins",
"theiaPlugins": {
"vscode-java-redhat": "https://github.com/redhat-developer/vscode-java/releases/download/v0.54.2/redhat.java-0.54.2.vsix"
},

and Theia, upon restart, will download the plugin to the 'theiaPluginsDir' ?

I did that, and it does not work.

@vince-fugnitto
Copy link
Member

@tsiyona have you called the script download:plugins?

For example:

"prepare": "yarn prepare:travis && yarn prepare:build && yarn prepare:hoisting && yarn download:plugins",

@tsiyona
Copy link
Author

tsiyona commented Feb 10, 2020

For now, I downloaded an older version of redhat.java and put it manually undet the 'plugins' folder, and it works.

@vince-fugnitto
Copy link
Member

The issue is no longer valid as @theia/java has been deprecated for some time now: #6933.

Screen Shot 2020-10-27 at 6 23 12 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java issues related to the java language question user / developer questions
Projects
None yet
Development

No branches or pull requests

3 participants