Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] LSP4J version

I would encourage you to share any code or doc you may have early, so people can give feedback.

/Thomas


On 01/16/2018 10:38 AM, Jonah Graham wrote:
Thanks Thomas, I will seek to address that, see
https://github.com/eclipse/che/issues/8304

The 0.4.0 version is indeed not released yet. I suspect that means the
Debug Protocol implementation may sit in a PR/branch until all deps
are fully ready.

Jonah
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On 15 January 2018 at 22:08, Thomas Mäder <tmader@xxxxxxxxxx> wrote:
Hi Jonah,

The maven plugin is needed to generate marshaling code for communicating
between the workspace and the IDE (no reflection in GWT :-(). Probably we're
hitting a case that has not been seen in previous versions. If you debug the
dto generator mojo, you should be able to pinpoint where it goes wrong.

If you could open a feature request for updating to 0.4.0 that would be
awesome. Perusing the lsp4j github page, I haven't seen a 0.4.0 release yet,
though. Not sure we want to depend on a snapshot version.

/Thomas



On 01/15/2018 10:22 PM, Jonah Graham wrote:
Hi folk,

At the moment Che is using org.eclipse.lsp4j 0.2.0. For supporting VS
Code Debug protocol, we need to use lsp4j 0.4.0 (see
https://github.com/eclipse/che/issues/5508).

Is there anyone who is already looking at upgrading to Che to more recent
lsp4j?

If I simply try to compile against the 0.4.0-SNAPSHOT (0.4.0 is not
released yet) then I get the error below, which AFAICT is an error
message from the Dto generator and probably due to some API/type
changes in lsp4j.

Thanks,
Jonah

[ERROR] Failed to execute goal

org.eclipse.che.core:che-core-api-languageserver-maven-plugin:6.0.0-M5-SNAPSHOT:generate
(default) on project che-plugin-languageserver-ide: A type
incompatibility occurred while executing

org.eclipse.che.core:che-core-api-languageserver-maven-plugin:6.0.0-M5-SNAPSHOT:generate:
java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
[ERROR] -----------------------------------------------------
[ERROR] realm =

plugin>org.eclipse.che.core:che-core-api-languageserver-maven-plugin:6.0.0-M5-SNAPSHOT
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =

file:/home/jonah/.m2/repository/org/eclipse/che/core/che-core-api-languageserver-maven-plugin/6.0.0-M5-SNAPSHOT/che-core-api-languageserver-maven-plugin-6.0.0-M5-SNAPSHOT.jar
[ERROR] urls[1] =

file:/home/jonah/.m2/repository/org/eclipse/che/core/che-core-api-languageserver-shared/6.0.0-M5-SNAPSHOT/che-core-api-languageserver-shared-6.0.0-M5-SNAPSHOT.jar
[ERROR] urls[2] =

file:/home/jonah/.m2/repository/org/eclipse/lsp4j/org.eclipse.lsp4j/0.4.0-SNAPSHOT/org.eclipse.lsp4j-0.4.0-SNAPSHOT.jar
[ERROR] urls[3] =

file:/home/jonah/.m2/repository/org/eclipse/lsp4j/org.eclipse.lsp4j.generator/0.4.0-SNAPSHOT/org.eclipse.lsp4j.generator-0.4.0-SNAPSHOT.jar
[ERROR] urls[4] =

file:/home/jonah/.m2/repository/org/eclipse/xtend/org.eclipse.xtend.lib/2.14.0-SNAPSHOT/org.eclipse.xtend.lib-2.14.0-SNAPSHOT.jar
[ERROR] urls[5] =

file:/home/jonah/.m2/repository/org/eclipse/xtext/org.eclipse.xtext.xbase.lib/2.10.0/org.eclipse.xtext.xbase.lib-2.10.0.jar
[ERROR] urls[6] =

file:/home/jonah/.m2/repository/org/eclipse/xtend/org.eclipse.xtend.lib.macro/2.14.0-SNAPSHOT/org.eclipse.xtend.lib.macro-2.14.0-SNAPSHOT.jar
[ERROR] urls[7] =
file:/home/jonah/.m2/repository/com/google/guava/guava/20.0/guava-20.0.jar
[ERROR] urls[8] =

file:/home/jonah/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
[ERROR] urls[9] =

file:/home/jonah/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[10] =

file:/home/jonah/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.0/org.eclipse.sisu.inject-0.3.0.jar
[ERROR] urls[11] =

file:/home/jonah/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[12] =

file:/home/jonah/.m2/repository/org/eclipse/lsp4j/org.eclipse.lsp4j.jsonrpc/0.4.0-SNAPSHOT/org.eclipse.lsp4j.jsonrpc-0.4.0-SNAPSHOT.jar
[ERROR] urls[13] =

file:/home/jonah/.m2/repository/com/google/code/gson/gson/2.8.2/gson-2.8.2.jar
[ERROR] urls[14] =

file:/home/jonah/.m2/repository/org/reflections/reflections/0.9.9/reflections-0.9.9.jar
[ERROR] urls[15] =

file:/home/jonah/.m2/repository/org/javassist/javassist/3.22.0-GA/javassist-3.22.0-GA.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm

ClassRealm[project>org.eclipse.che.plugin:che-plugin-languageserver-ide:6.0.0-M5-SNAPSHOT,
parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException




~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev




Back to the top