[
https://issues.jboss.org/browse/JBIDE-25894?page=com.atlassian.jira.plugi...
]
Mickael Istria commented on JBIDE-25894:
----------------------------------------
I couldn't resist giving it a quick try:
About installation and size; I only used the usual UI and have an empty workspace, which
is included in measures:
Took full Eclipse IDE for Java EE Developers Photon.M6, 409MB
Added JBoss Tools support for CDI, Jax-RS and Hibernate (contributing to JDT and so to
JDT-LS): +165MB
Added JDT-LS from
http://download.eclipse.org/jdtls/snapshots/repository/latest : +6MB
For a total of 580MB disk footprint. Of course, it can be trimmed down as it includes the
whole UI layer not need for a LS, and it also includes Hibernate Tools which come with a
plethora of dependencies.
Then I tried to start the JDT-LS app with
{quote}
/usr/bin/java -Declipse.application=org.eclipse.jdt.ls.core.id1
-Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product
-Dlog.level=ALL -noverify -Xmx1G -jar
./plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar -configuration
./config_linux -data
/home/mistria/sandbox/eclipse-jee-photon-M6-linux-gtk-x86_64/eclipse/ls-data
{quote}
But startup failed with
{quote}
!ENTRY org.eclipse.osgi 4 0 2018-04-03 16:15:42.648
!MESSAGE An error occurred while automatically activating bundle org.eclipse.jdt.ls.core
(945).
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin.start() of bundle
org.eclipse.jdt.ls.core.
at
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:800)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1002)
at
org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:354)
{quote}
Version of org.eclipse.jdt.core.manipulation in my "JBoss Tools language server"
is 1.10.0.v20180302-1956
[~fbricon] Which version of Eclipse JDT is supposed to be used for JDT-LS?
Evaluate providing Java EE support as jdt.ls extensions
-------------------------------------------------------
Key: JBIDE-25894
URL:
https://issues.jboss.org/browse/JBIDE-25894
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Reporter: Mickael Istria
Jdt-LS relies on JDT for most features.
WTP and JBoss Tools do extend JDT to provide additional features, such as Jax-RS
completion.
It would be worth investigating whether just adding a few bundles from wtp and JBoss
Tools into JDT-LS can turn JDT-LS into a powerful tool for Java EE as well, and to
evaluate what must and can be improved to enable it.
As a good Java EE support requires a good Java support first, it's very likely that
extending JDT-LS (on demand) for Java EE is the most productive and efficient way to have
a Java EE language-server.
As Jakarta EE moves to
Eclipse.org, there are some discussions to improve JEE tools in
Eclipse IDE and in general. So building on top of WebTools/JBoss Tools and allowing
webtools/jbosstools to run in JDT-LS wo uld fit in the community mindset and may attract
3rd-party contributors to Eclipse Webtools.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)