You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently run into a problem when trying to launch JDT.LS with vscode-pde, where the server immediately crashes upon launching via right click + Debug PDE application on jdt.ls.remote.server.launch.
These are the exceptions being logged
!SESSION 2021-05-02 20:12:22.874 -----------------------------------------------
eclipse.buildId=unknown
java.version=11.0.10
java.vendor=AdoptOpenJDK
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application org.eclipse.jdt.ls.core.id1
Command-line arguments: -application org.eclipse.jdt.ls.core.id1 -data /home/foo/.config/Code/User/workspaceStorage/07498fded07eaba1858e6c218f83f56c/redhat.java/jdt_ws/../runtime-JDT-LS -dev file:/home/foo/.config/Code/User/workspaceStorage/07498fded07eaba1858e6c218f83f56c/redhat.java/jdt_ws/.metadata/.plugins/org.eclipse.pde.core/jdt.ls.remote.server/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog
!ENTRY org.eclipse.buildship.core 4 0 2021-05-02 20:12:23.449
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.buildship.core [17]
Unresolved requirement: Require-Bundle: com.google.gson; bundle-version="[2.7.0,3.0.0)"
at org.eclipse.osgi.container.Module.start(Module.java:463)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1845)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1838)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1779)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1743)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1665)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
!ENTRY org.eclipse.jdt.ls.core 4 0 2021-05-02 20:12:23.607
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.jdt.ls.core [51]
Unresolved requirement: Require-Bundle: com.google.gson; bundle-version="2.7.0"
Unresolved requirement: Require-Bundle: org.eclipse.buildship.core; bundle-version="1.0.18"; resolution:="optional"
-> Bundle-SymbolicName: org.eclipse.buildship.core; bundle-version="3.1.5.v20210112-1646-s"; singleton:="true"
org.eclipse.buildship.core [17]
Unresolved requirement: Require-Bundle: com.google.gson; bundle-version="[2.7.0,3.0.0)"
at org.eclipse.osgi.container.Module.start(Module.java:463)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1845)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1838)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1779)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1743)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1665)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)
!ENTRY org.eclipse.jface.text 2 0 2021-05-02 20:12:23.629
!MESSAGE Could not resolve module: org.eclipse.jface.text [53]
Unresolved requirement: Import-Package: com.ibm.icu.text
!ENTRY org.eclipse.lsp4j.jsonrpc 2 0 2021-05-02 20:12:23.630
!MESSAGE Could not resolve module: org.eclipse.lsp4j.jsonrpc [55]
Unresolved requirement: Import-Package: com.google.gson; version="[2.8.0,3.0.0)"
!ENTRY org.eclipse.jdt.ls.core 2 0 2021-05-02 20:12:23.630
!MESSAGE Could not resolve module: org.eclipse.jdt.ls.core [51]
Unresolved requirement: Require-Bundle: com.google.gson; bundle-version="2.7.0"
Unresolved requirement: Require-Bundle: org.eclipse.buildship.core; bundle-version="1.0.18"; resolution:="optional"
-> Bundle-SymbolicName: org.eclipse.buildship.core; bundle-version="3.1.5.v20210112-1646-s"; singleton:="true"
org.eclipse.buildship.core [17]
Unresolved requirement: Require-Bundle: com.google.gson; bundle-version="[2.7.0,3.0.0)"
!ENTRY org.eclipse.buildship.core 2 0 2021-05-02 20:12:23.631
!MESSAGE Could not resolve module: org.eclipse.buildship.core [17]
Unresolved requirement: Require-Bundle: com.google.gson; bundle-version="[2.7.0,3.0.0)"
!ENTRY org.eclipse.lsp4j 2 0 2021-05-02 20:12:23.631
!MESSAGE Could not resolve module: org.eclipse.lsp4j [54]
Unresolved requirement: Import-Package: com.google.gson; version="[2.8.0,3.0.0)"
!ENTRY org.eclipse.osgi 4 0 2021-05-02 20:12:23.631
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.jdt.ls.core.id1" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaIndexer.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:252)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:33)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
at org.eclipse.equinox.launcher.Main.main(Main.java:1434)
After some investigation, the problem seems to have been introduced in 3756738, because of some library updates. But the root cause seems to be the version constraint specified for com.google.gson in jdt.ls.remote.server.launch. Removing that version constraint fixes the problem and allows me to launch JDT.LS again. I'll submit a PR to fix this issue shortly.
The text was updated successfully, but these errors were encountered:
I've recently run into a problem when trying to launch JDT.LS with vscode-pde, where the server immediately crashes upon launching via right click + Debug PDE application on
jdt.ls.remote.server.launch
.These are the exceptions being logged
After some investigation, the problem seems to have been introduced in 3756738, because of some library updates. But the root cause seems to be the version constraint specified for
com.google.gson
injdt.ls.remote.server.launch
. Removing that version constraint fixes the problem and allows me to launch JDT.LS again. I'll submit a PR to fix this issue shortly.The text was updated successfully, but these errors were encountered: