Community
Participate
Working Groups
Today when code mining manager when new codemining provider are set (ex: when user changed some codemining preferences in JDT CodeMining), the old code mining manager is not uninstalled and sometimes old code mining provider are processes although there were disposed. It causes To clean this behviour, we need to uninstall the old code mining manager before creating a new code mining manager. And we can have some trouble like: ------------------------------------------------------ java.util.concurrent.CompletionException: org.eclipse.core.runtime.AssertionFailedException: null argument: at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:283) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument: at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:88) at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:76) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.getEditorInputJavaElement(EditorUtility.java:450) at org.eclipse.jdt.internal.ui.javaeditor.codemining.JavaElementCodeMiningProvider.lambda$0(JavaElementCodeMiningProvider.java:78) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ... 4 more ------------------------------------------------------ See https://git.eclipse.org/r/#/c/126847/
New Gerrit change created: https://git.eclipse.org/r/132166
Gerrit change https://git.eclipse.org/r/132166 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=f5e429604d63d8b053effc10503065c3eb00923c
This patch should fix it. Thanks Angelo!
Thanks a lot @Mickael!