Repository navigation
Duplicated formatters #4492
Description
Activity
I can't replicate this on Linux.
I was able to reproduce the duplicated formatter entries on Windows 11 with VS Code 1.135.0 and
Language Support for Java1.55.0, while the Java project was still being opened.With the same Java extension version on VS Code 1.136.1, I could no longer reproduce the issue. Could you please update VS Code to the latest version and confirm whether the duplicated entries still appear?
something like that was happening to me, duplicated error / warning reports, duplicated suggestions and two duplicate processes called "Open JDK Plantaform Binary" on task manager. Try going back to version 1.55 of the extension, it worked for me
Could you please update VS Code to the latest version and confirm whether the duplicated entries still appear?
I usually have latest versions. My current env is:
- VSCode version: 1.136.1 (user setup)
- Java extension version: 1.56.0 (updated last week)
I no longer see the error (it only happened to me the day I reported it). However, I'm not sure if its a VSCode (regression) issue, or something intermittent (race condition/timeout issue). In my case, I usually work with multi-root workspaces (the one with java have 14 projects).
PS: I was also migrating from java 21 to java 25. At that time, I had projects running both (not sure if this is relevant). I currently have everything migrated to Java 25
Given that I no longer see the issue (not able to replicate), if you want I can close the issue.
Reacted by Cledson Vilanculoyeah sure, you can close
Interestingly enough, I got the same behaviour today.
A few things I noticed:
-
There seems to be a new VSCode update (I got the update button on the top (title bar)
-
I'm seeing an OOM notification
-
This happened when trying to format a .java code before taking any action on the OOM notification
Maybe it tried to load/recover again without realizing that there were already some things configured?
-
That OOM notification was showing up for me too, check if there are no duplicated error / warning reports
No duplicate (that I remember). However, after pressing "increase Memory" and update vscode (pressing the update button), the duplicate formatters are still present.
I currently see the following in the logs:
Language support for Java
2026-09-08 14:42:31.648 [error] set. 08, 2026 2:42:31 P. M. org.apache.aries.spifly.BaseActivator log [] 2026-09-08 14:42:31.648 [error] INFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic [] 2026-09-08 14:42:49.127 [error] set. 08, 2026 2:42:49 P. M. org.apache.aries.spifly.BaseActivator log [] 2026-09-08 14:42:49.127 [error] INFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic [] 2026-09-08 14:43:19.673 [error] 8 set. 2026 14:43:19 org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Unhandled method workspace/executeClientCommand java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Unhandled method workspace/executeClientCommand at java.base/java.util.concurrent.CompletableFuture.reportJoin(Unknown Source) at java.base/java.util.concurrent.CompletableFuture.join(Unknown Source) at org.eclipse.jdt.ls.core.internal.JavaClientConnection.executeClientCommand(JavaClientConnection.java:89) at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.synchronizeBundles(JDTLanguageServer.java:464) at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer$2.run(JDTLanguageServer.java:324) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Unhandled method workspace/executeClientCommand at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:214) at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:198) at org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:86) at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:189) at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:97) at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:97) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) [] 2026-09-08 14:43:46.691 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.inlayhint.JavaASTInlayHintRegistry loadExtensionJavaASTInlayHints [] 2026-09-08 14:43:46.691 [error] INFO: ->- Loading .javaASTInlayHints extension point ->- [] 2026-09-08 14:43:46.691 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.inlayhint.JavaASTInlayHintRegistry addExtensionJavaASTInlayHints [] 2026-09-08 14:43:46.691 [error] INFO: Loaded javaASTInlayHints: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.691 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.inlayhint.JavaASTInlayHintRegistry loadExtensionJavaASTInlayHints [] 2026-09-08 14:43:46.695 [error] INFO: -<- Done loading .javaASTInlayHints extension point -<- [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry loadExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: ->- Loading .javaASTValidators extension point ->- [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: com.redhat.microprofile.jdt.quarkus [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: com.redhat.microprofile.jdt.quarkus [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: com.redhat.microprofile.jdt.quarkus [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: Loaded javaASTValidators: com.redhat.microprofile.jdt.quarkus [] 2026-09-08 14:43:46.756 [error] set. 08, 2026 2:43:46 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry loadExtensionJavaASTValidators [] 2026-09-08 14:43:46.756 [error] INFO: -<- Done loading .javaASTValidators extension point -<- [] 2026-09-08 16:24:51.088 [error] set. 08, 2026 4:24:51 P. M. org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation [] 2026-09-08 16:24:51.088 [error] WARNING: Unmatched cancel notification for request id 152 [] 2026-09-08 16:24:53.912 [error] set. 08, 2026 4:24:53 P. M. org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation [] 2026-09-08 16:24:53.912 [error] WARNING: Unmatched cancel notification for request id 155 [] 2026-09-08 16:24:54.260 [error] set. 08, 2026 4:24:54 P. M. org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation [] 2026-09-08 16:24:54.260 [error] WARNING: Unmatched cancel notification for request id 157 [] 2026-09-08 16:24:55.407 [error] set. 08, 2026 4:24:55 P. M. org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation [] 2026-09-08 16:24:55.407 [error] WARNING: Unmatched cancel notification for request id 161 []
Language support for Java (syntax)
2026-09-08 14:43:29.182 [error] Stopping server timed out [] 2026-09-08 14:43:31.582 [info] Server process exited successfully []
yeah i suggest you to not click that button to increase memory, if you want to, you can configure the memory limit in .vscode/setting.json
i suggest you to not click that button to increase memory
I haven have any issue with it in the last years.
Current workspace settings (fragment):
"settings": { "java.configuration.updateBuildConfiguration": "automatic", "java.jdt.ls.vmargs": "-XX:+UseG1GC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx8G -Xms512m -XX:+UseStringDeduplication", "maven.view": "hierarchical", "java.compile.nullAnalysis.mode": "disabled" }
I just restarted Windows, updated + restarted VSCode and Clean Java Language Sserver workspace (just in case), and I'm having the same issue (duplicate formatters registred. The logs ar similar as yesterday.
- Is it OK to see 2 registrations during VSCode startup?
- Is it expected to see
ResponseErrorException: Unhandled method workspace/executeClientCommand?
Log:
2026-09-09 12:18:16.170 [error] set. 09, 2026 12:18:15 P. M. org.apache.aries.spifly.BaseActivator log [] 2026-09-09 12:18:16.171 [error] INFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic [] 2026-09-09 12:18:45.519 [error] set. 09, 2026 12:18:45 P. M. org.apache.aries.spifly.BaseActivator log [] 2026-09-09 12:18:45.520 [error] INFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic [] 2026-09-09 12:19:08.701 [error] 9 set. 2026 12:19:08 org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Unhandled method workspace/executeClientCommand java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Unhandled method workspace/executeClientCommand at java.base/java.util.concurrent.CompletableFuture.reportJoin(Unknown Source) at java.base/java.util.concurrent.CompletableFuture.join(Unknown Source) at org.eclipse.jdt.ls.core.internal.JavaClientConnection.executeClientCommand(JavaClientConnection.java:89) at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.synchronizeBundles(JDTLanguageServer.java:464) at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer$2.run(JDTLanguageServer.java:324) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Unhandled method workspace/executeClientCommand at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:214) at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:198) at org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:86) at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:189) at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:97) at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:97) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) [] 2026-09-09 12:20:54.141 [error] set. 09, 2026 12:20:53 P. M. com.microsoft.java.debug.plugin.internal.JavaDebuggerServerPlugin start [] 2026-09-09 12:20:54.142 [error] INFO: Starting com.microsoft.java.debug.plugin [] 2026-09-09 12:21:36.728 [error] set. 09, 2026 12:21:36 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.inlayhint.JavaASTInlayHintRegistry loadExtensionJavaASTInlayHints [] 2026-09-09 12:21:36.728 [error] INFO: ->- Loading .javaASTInlayHints extension point ->- [] 2026-09-09 12:21:36.729 [error] set. 09, 2026 12:21:36 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.inlayhint.JavaASTInlayHintRegistry addExtensionJavaASTInlayHints [] 2026-09-09 12:21:36.731 [error] INFO: Loaded javaASTInlayHints: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:36.731 [error] set. 09, 2026 12:21:36 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.inlayhint.JavaASTInlayHintRegistry loadExtensionJavaASTInlayHints [] 2026-09-09 12:21:36.732 [error] INFO: -<- Done loading .javaASTInlayHints extension point -<- [] 2026-09-09 12:21:37.148 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.AbstractMicroProfileProviderRegistry loadExtensionProviders [] 2026-09-09 12:21:37.148 [error] INFO: ->- Loading .configSourceProviders extension point ->- [] 2026-09-09 12:21:37.212 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.AbstractMicroProfileProviderRegistry addExtensionProviders [] 2026-09-09 12:21:37.217 [error] INFO: Loaded configSourceProviders: org.eclipse.lsp4mp.jdt.internal.core.providers.MicroProfileConfigSourceProvider [] 2026-09-09 12:21:37.225 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.AbstractMicroProfileProviderRegistry addExtensionProviders [] 2026-09-09 12:21:37.226 [error] INFO: Loaded configSourceProviders: com.redhat.microprofile.jdt.internal.quarkus.providers.QuarkusConfigSourceProvider [] 2026-09-09 12:21:37.227 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.AbstractMicroProfileProviderRegistry loadExtensionProviders [] 2026-09-09 12:21:37.230 [error] INFO: -<- Done loading .configSourceProviders extension point -<- [] 2026-09-09 12:21:37.914 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry loadExtensionJavaASTValidators [] 2026-09-09 12:21:37.915 [error] INFO: ->- Loading .javaASTValidators extension point ->- [] 2026-09-09 12:21:37.919 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.920 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:37.920 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.920 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:37.928 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.930 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:37.931 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.931 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:37.931 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.931 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:37.931 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.932 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:37.932 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.932 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:37.932 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.932 [error] INFO: Loaded javaASTValidators: org.eclipse.lsp4mp.jdt.core [] 2026-09-09 12:21:37.932 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.932 [error] INFO: Loaded javaASTValidators: com.redhat.microprofile.jdt.quarkus [] 2026-09-09 12:21:37.933 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.933 [error] INFO: Loaded javaASTValidators: com.redhat.microprofile.jdt.quarkus [] 2026-09-09 12:21:37.933 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.935 [error] INFO: Loaded javaASTValidators: com.redhat.microprofile.jdt.quarkus [] 2026-09-09 12:21:37.936 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry addExtensionJavaASTValidators [] 2026-09-09 12:21:37.936 [error] INFO: Loaded javaASTValidators: com.redhat.microprofile.jdt.quarkus [] 2026-09-09 12:21:37.936 [error] set. 09, 2026 12:21:37 P. M. org.eclipse.lsp4mp.jdt.internal.core.java.validators.JavaASTValidatorRegistry loadExtensionJavaASTValidators [] 2026-09-09 12:21:37.937 [error] INFO: -<- Done loading .javaASTValidators extension point -<- []
Describe the bug
It shows 2 formatters (duplicated)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Only 1 formatter (or 2 with different name)
Screenshots
Environment
java --version: openjdk 25.0.4 2026-07-21 LTSAdditional Information