yesamer opened a new issue, #685:
URL: https://github.com/apache/incubator-kie-issues/issues/685
Since the 0.32.0 version of our extension, the "Import Java Classes" button
doesn't work anymore. Downgrading to 0.31.0 solves the issue.
It seems there's some API change introduced in the last JDT.LS version,
according to the logs:
```
org.eclipse.core.runtime.CoreException: Plug-in
vscode-java-code-completion-extension-plugin-core was unable to load class
org.kogito.core.internal.DelegateHandler.
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at
org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$DelegateCommandHandlerDescriptor.getDelegateCommandHandler(WorkspaceExecuteCommandHandler.java:114)
at
org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:223)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at
org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:220)
at
org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:616)
at
org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:87)
at
java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown
Source)
at
java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at
java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown
Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown
Source)
Caused by: java.lang.ClassNotFoundException:
org.kogito.core.internal.DelegateHandler cannot be found by
vscode-java-code-completion-extension-plugin-core_0.32.0
at
org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:541)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:536)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416)
at
org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:622)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
... 16 more
```
In addition, the error message is stale (the annotation is no longer
required)
<img width="489" alt="Screenshot 2023-11-08 at 17 41 17"
src="https://github.com/apache/incubator-kie-issues/assets/16005046/4da7bff6-a24f-4521-862d-ddc4c8889982">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]