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
{{ message }}
Repository navigation
Quick fix missing from MicroProfile and Jakarta diagnostic #294
Intermittently quick fixes are missing. This often causes failures in Liberty automated UI testing.
Here is a test case used for the MicroProfile diagnostic.
package io.openliberty.mp.sample.health;
import org.eclipse.microprofile.health.HealthCheck;
import org.eclipse.microprofile.health.HealthCheckResponse;
import org.eclipse.microprofile.health.Liveness;
import javax.enterprise.context.ApplicationScoped;
//@Liveness
@ApplicationScoped
public class ServiceLiveHealthCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
return HealthCheckResponse.named(ServiceLiveHealthCheck.class.getSimpleName()).withData("live", true).up().build();
}
}
It is important to note that these results were achieved using the April 1 version of this repository. If there were changes to the creation of diagnostics or quick fixes since then we'll need to test them out.
The language server messages and the IntelliJ logs will be appended below.
2:56:08 p.m.: Executing 'runIde --stacktrace -Didea.ProcessCanceledException=disabled'...
Starting Gradle Daemon...
Connected to the target VM, address: '127.0.0.1:63104', transport: 'socket'
Gradle Daemon started in 552 ms
> Task :initializeIntelliJPlugin SKIPPED
> Task :copyDeps UP-TO-DATE
> Task :patchPluginXml UP-TO-DATE
> Task :verifyPluginConfiguration
[gradle-intellij-plugin :verifyPluginConfiguration] The following plugin configuration issues were found:
- The 'since-build' property is lower than the target IntelliJ Platform major version: 232 < 241.
- The dependency on the Kotlin Standard Library (stdlib) is automatically added when using the Gradle Kotlin plugin and may conflict with the version provided with the IntelliJ Platform, see: https://jb.gg/intellij-platform-kotlin-stdlib
See: https://jb.gg/intellij-platform-versions
> Task :compileKotlin NO-SOURCE
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :instrumentCode UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :inspectClassesForKotlinIC UP-TO-DATE
> Task :instrumentedJar UP-TO-DATE
Disconnected from the target VM, address: '127.0.0.1:63104', transport: 'socket'
> Task :prepareSandbox
Connected to the target VM, address: 'localhost:63110', transport: 'socket'
> Task :runIde
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
2024-05-16 14:56:14,183 [ 436] WARN - #c.i.o.a.Application - No URL bundle (CFBundleURLTypes) is defined in the main bundle.
To be able to open external links, specify protocols in the app layout section of the build file.
Example: args.urlSchemes = ["your-protocol"] will handle following links: your-protocol://open?file=file&line=line
2024-05-16 14:56:14,388 [ 641] WARN - #c.i.i.s.p.i.BundledSharedIndexProvider - Bundled shared index is not found at: /Users/paulg/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2024.1.1/610065d2e218939d0671358b7be2dd8509c64758/ideaIC-2024.1.1/jdk-shared-indexes
2024-05-16 14:56:14,431 [ 684] WARN - #c.i.i.u.l.LafManagerImpl - VersionControl.Log.Commit.rowHeight = null in LookAndFeelThemeAdapter; it may lead to performance degradation
2024-05-16 14:56:14,941 [ 1194] WARN - #c.i.s.ComponentManagerImpl - org.jetbrains.kotlin.idea.gradleJava.scripting.roots.GradleBuildRootDataSerializer <clinit> requests com.intellij.util.gist.storage.GistStorage instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
2024-05-16 14:56:15,524 [ 1777] WARN - #c.i.o.w.i.ToolWindowImpl - ToolWindow icons should be 13x13, but got: 16x16. Please fix ToolWindow (ID: Language Servers) or icon RasterizedImageDataLoader(classLoader=com.intellij.util.lang.PathClassLoader@6adca536, path=webreferences/server.svg)
May 16, 2024 2:56:17 P.M. org.eclipse.lsp4jakarta.ls.JakartaLanguageServer initialize
INFO: Initializing Jakarta EE server
May 16, 2024 2:56:17 P.M. org.eclipse.lsp4mp.ls.MicroProfileLanguageServer initialize
INFO: Initializing MicroProfile server 0.10.0-20231005-1228 with /Users/paulg/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr_jcef-17.0.10-osx-aarch64-b1207.14/extracted/jbr_jcef-17.0.10-osx-aarch64-b1207.14/Contents/Home
May 16, 2024 2:56:17 P.M. org.eclipse.lsp4mp.ls.java.JavaTextDocuments lambda$getProjectInfo$0
WARNING: Error while getting ProjectLabelInfoEntry (classpath) for 'file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/system/SystemResource2.java'
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: The request (id: 5, method: 'microprofile/java/projectLabels') has been cancelled
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
at org.eclipse.lsp4mp.ls.commons.ParentProcessWatcher.lambda$apply$0(ParentProcessWatcher.java:148)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
2024-05-16 14:56:18,260 [ 4513] WARN - #c.i.o.m.LanguageLevelUtil - File not found: api23.txt
May 16, 2024 2:56:18 P.M. org.eclipse.lsp4jakarta.snippets.JakartaEESnippetRegistryLoader load
INFO: Loading snippets into registry...
2024-05-16 14:56:19,298 [ 5551] WARN - #c.i.u.x.Binding - No accessors for org.jetbrains.security.package.Package. This means that state class cannot be serialized properly. Please see https://jb.gg/ij-psoc
2024-05-16 14:57:14,034 [ 60287] WARN - #c.i.u.x.Binding - No accessors for com.intellij.platform.feedback.impl.state.DontShowAgainFeedbackState. This means that state class cannot be serialized properly. Please see https://jb.gg/ij-psoc
2024-05-16 14:57:14,035 [ 60288] WARN - #c.i.u.x.Binding - No accessors for com.intellij.platform.feedback.impl.state.CommonFeedbackSurveysState. This means that state class cannot be serialized properly. Please see https://jb.gg/ij-psoc
2024-05-16 15:00:18,213 [ 244466] WARN - #c.i.u.x.Binding - No accessors for org.jetbrains.kotlin.cli.common.arguments.InternalArgument. This means that state class cannot be serialized properly. Please see https://jb.gg/ij-psoc
2024-05-16 17:03:27,550 [7633803] WARN - #c.i.o.w.i.ToolWindowImpl - ToolWindow icons should be 13x13, but got: 16x16. Please fix ToolWindow (ID: Language Servers) or icon RasterizedImageDataLoader(classLoader=com.intellij.util.lang.PathClassLoader@6adca536, path=webreferences/server.svg)
May 16, 2024 5:03:28 P.M. org.eclipse.lsp4jakarta.ls.JakartaLanguageServer initialize
INFO: Initializing Jakarta EE server
May 16, 2024 5:03:28 P.M. org.eclipse.lsp4mp.ls.MicroProfileLanguageServer initialize
INFO: Initializing MicroProfile server 0.10.0-20231005-1228 with /Users/paulg/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr_jcef-17.0.10-osx-aarch64-b1207.14/extracted/jbr_jcef-17.0.10-osx-aarch64-b1207.14/Contents/Home
May 16, 2024 5:03:28 P.M. org.eclipse.lsp4jakarta.snippets.JakartaEESnippetRegistryLoader load
INFO: Loading snippets into registry...
May 16, 2024 5:03:28 P.M. org.eclipse.lsp4mp.ls.java.JavaTextDocuments lambda$getProjectInfo$0
WARNING: Error while getting ProjectLabelInfoEntry (classpath) for 'file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/system/SystemResource2.java'
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: The request (id: 5, method: 'microprofile/java/projectLabels') has been cancelled
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
at org.eclipse.lsp4mp.ls.commons.ParentProcessWatcher.lambda$apply$0(ParentProcessWatcher.java:148)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
May 16, 2024 5:53:53 P.M. org.eclipse.lsp4mp.ls.java.JavaTextDocuments lambda$getProjectInfo$0
WARNING: Error while getting ProjectLabelInfoEntry (classpath) for 'file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java'
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: The request (id: 142, method: 'microprofile/java/projectLabels') has been cancelled
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
at org.eclipse.lsp4mp.ls.commons.ParentProcessWatcher.lambda$apply$0(ParentProcessWatcher.java:148)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
May 16, 2024 5:53:53 P.M. org.eclipse.lsp4mp.ls.java.JavaTextDocuments lambda$getProjectInfo$0
WARNING: Error while getting ProjectLabelInfoEntry (classpath) for 'file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java'
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: The request (id: 141, method: 'microprofile/java/projectLabels') has been cancelled
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
at org.eclipse.lsp4mp.ls.commons.ParentProcessWatcher.lambda$apply$0(ParentProcessWatcher.java:148)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)```
I'd like to try IJ Quarkus but when I use runIde on the source extracted from the main branch I can load a project but no language servers start, not even lsp4mp. Is there a recommended setup to run IJ Quarkus?
I disabled the Jakarta language server in the plugin.xml and tested with a project generated by microprofile.io. Only the lsp4mp language server was running. After typing a few blanks on the end of a line the quick fixes were not generated.
First the diagnostic:
We are currently stabilizing our release on the April 1 code and the latest version of LSP4IJ is in our forward development stream. What we are finding in our testing is that the more diagnostics that appear in a Java file the more likely the quick fixes do not appear.
In a testing scenario you might have a test program with a large number of errors so that you can tests all the diagnostics. In a real life scenario I expect two possibilities. 1) You are porting a large volume of code from one system to another. You'll likely have a lot of errors at once. 2) You are developing a new app and every time you type something wrong you get one diagnostic and you then fix it.
It would be best if we could support both scenarios. If a lot of diagnostics resulted in slower performance I think a lot of people would accept that. But if a lot of diagnostics causes some other feature not to work I think people will not appreciate that. So I'd like to see LSP4IJ handle a lot of diagnostics even if the language server is slow or passes large messages.
Once we will have this test, it will be easier to understand the problem and fix it.
If you have time to work on this test in LSP4IJ it will help me because I m very busy with quarkus stuff and #570 to create a release of lsp4ij and ij quarkus.
Once we will have this test, it will be easier to understand the problem and fix it.
If you have time to work on this test in LSP4IJ it will help me because I m very busy with quarkus stuff and #570 to create a release of lsp4ij and ij quarkus.
We are still intermittently encountering the reported quick-fix missing issue. In the failure logs, we can see that LSP4IJ is cancelling the codeAction requests. We would like to understand the expected behavior in such cases - specifically, what happens after these cancellations and whether LSP4IJ performs any retries.
We have captured the failure scenario, including a video recording and the corresponding LSP console logs, and we are sharing them here for additional insight. We are also attaching a success-case log for comparison. Additionally, guidance on how to simulate such cancellations to create a reproducible test scenario for LSP4IJ would be very helpful.
Hi @angelozerr , does the provided trace give you any insight into the potential problem? We do not have test automation for IJ Quarkus, so I do not know how we would be able to reproduce for IJ Quarkus. We may be able to capture trace for MicroProfile LS.
Hi @angelozerr , does the provided trace give you any insight into the potential problem?
To be honnest with you I have not read in detail the logs, just notice that issue is with jakarta ls.
We do not have test automation for IJ Quarkus, so I do not know how we would be able to reproduce for IJ Quarkus. We may be able to capture trace for MicroProfile LS.
Ok if I understand the problem occurs sometimes but not every time.
Hi @angelozerr , does the provided trace give you any insight into the potential problem?
To be honnest with you I have not read in detail the logs, just notice that issue is with jakarta ls.
We do not have test automation for IJ Quarkus, so I do not know how we would be able to reproduce for IJ Quarkus. We may be able to capture trace for MicroProfile LS.
Yes please.
Ok if I understand the problem occurs sometimes but not every time.
@turkeylurkey does this still happen with 0.30.1? Several fixes to the code action requests of quick fixes went into 0.30.0, which could explain a quick fix that is missing now and then: a cancelled quick-fix request is sent again (0bac536b), parallel highlighting passes share one request (7022ae7b), a request cancelled during startup isn't sent (4dbdf09d), and the UI thread no longer waits for the code actions of a lazy quick fix (#1871).
Activity
turkeylurkey commentedon May 20, 2024
turkeylurkey commentedon May 20, 2024
angelozerr commentedon May 21, 2024
Have you another ls like jakarta ls which compute code actions.
If yes could you disable your jakarta ls and see if it is working with mp ls?
angelozerr commentedon May 22, 2024
It is hard to know. We did a release yesterday please try it and give us feeddback
angelozerr commentedon May 22, 2024
It is working perfectly with our IJ Quarkus with good performance, see following demo:
Please:
turkeylurkey commentedon May 24, 2024
I'd like to try IJ Quarkus but when I use runIde on the source extracted from the main branch I can load a project but no language servers start, not even lsp4mp. Is there a recommended setup to run IJ Quarkus?
angelozerr commentedon May 24, 2024
It should work without some extra configuration.
But for your problem you should go step by step. Disable the Jakarta LS (by stopping it with LSP console) and check if you see quickfixes from MP LS.
turkeylurkey commentedon May 24, 2024
I disabled the Jakarta language server in the plugin.xml and tested with a project generated by microprofile.io. Only the lsp4mp language server was running. After typing a few blanks on the end of a line the quick fixes were not generated.

First the diagnostic:
Next the quick fixes:

turkeylurkey commentedon May 24, 2024
Just one language server is running:

turkeylurkey commentedon May 24, 2024
I'm still working with the April 1 code but an associate using the 0.0.1 code is seeing similar behaviour.
angelozerr commentedon May 27, 2024
I have no idea why you have this problem, perhaps I don't do the good usecase?
I'm trying your usecase with the following demo #294 (comment) and it works pretyy well is it your usecase?
Please try with last version of LSP4IJ.
angelozerr commentedon Jun 7, 2024
@turkeylurkey have you again the problem with last version of LSP4IJ?
turkeylurkey commentedon Jun 7, 2024
We are currently stabilizing our release on the April 1 code and the latest version of LSP4IJ is in our forward development stream. What we are finding in our testing is that the more diagnostics that appear in a Java file the more likely the quick fixes do not appear.
In a testing scenario you might have a test program with a large number of errors so that you can tests all the diagnostics. In a real life scenario I expect two possibilities. 1) You are porting a large volume of code from one system to another. You'll likely have a lot of errors at once. 2) You are developing a new app and every time you type something wrong you get one diagnostic and you then fix it.
It would be best if we could support both scenarios. If a lot of diagnostics resulted in slower performance I think a lot of people would accept that. But if a lot of diagnostics causes some other feature not to work I think people will not appreciate that. So I'd like to see LSP4IJ handle a lot of diagnostics even if the language server is slow or passes large messages.
21 remaining items
angelozerr commentedon Oct 31, 2024
I have spent a lot of time to try to reproduce your issue with IJ Quarkus without success.
I think the best thing is to write tests like I did for completion, hover etc https://github.com/redhat-developer/lsp4ij/tree/main/src/test/java/com/redhat/devtools/lsp4ij/features in LSP4IJ by emulating language server and cancel the quickfix if I understand your comment to reproduce your problem.
Once we will have this test, it will be easier to understand the problem and fix it.
If you have time to work on this test in LSP4IJ it will help me because I m very busy with quarkus stuff and #570 to create a release of lsp4ij and ij quarkus.
mrglavas commentedon Nov 1, 2024
@angelozerr Thanks for the suggestion. I've opened an issue for creating this test as our next action here: OpenLiberty/liberty-tools-intellij#1072.
dessina-devasia commentedon Jan 27, 2025
@mrglavas @angelozerr I've opened a PR corresponding to the ticket OpenLiberty/liberty-tools-intellij#1072 in LSP4IJ. Please have a look. Thank you!
dessina-devasia commentedon Dec 5, 2025
We are still intermittently encountering the reported quick-fix missing issue. In the failure logs, we can see that LSP4IJ is cancelling the codeAction requests. We would like to understand the expected behavior in such cases - specifically, what happens after these cancellations and whether LSP4IJ performs any retries.
We have captured the failure scenario, including a video recording and the corresponding LSP console logs, and we are sharing them here for additional insight. We are also attaching a success-case log for comparison. Additionally, guidance on how to simulate such cancellations to create a reproducible test scenario for LSP4IJ would be very helpful.
Thank you!
failed-lsp4ij-logs.log
failed-video.zip
success-lsp4ij-logs.log
angelozerr commentedon Dec 5, 2025
@dessina-devasia have you the same problem with IJ Quarkus? If you have the same problem, I will try again to investigate the issue.
angelozerr commentedon Dec 5, 2025
@dessina-devasia your logs are about Jakarta LS, but have you the same problem with MicroProfile LS? If yes have you the same problem with IJ Quarkus?
TrevCraw commentedon Dec 5, 2025
Hi @angelozerr , does the provided trace give you any insight into the potential problem? We do not have test automation for IJ Quarkus, so I do not know how we would be able to reproduce for IJ Quarkus. We may be able to capture trace for MicroProfile LS.
angelozerr commentedon Dec 5, 2025
To be honnest with you I have not read in detail the logs, just notice that issue is with jakarta ls.
Ok if I understand the problem occurs sometimes but not every time.
I need to find time to investigate this issue.
angelozerr commentedon Dec 5, 2025
To be honnest with you I have not read in detail the logs, just notice that issue is with jakarta ls.
Yes please.
Ok if I understand the problem occurs sometimes but not every time.
I need to find time to investigate this issue.
angelozerr commentedon May 25, 2026
@TrevCraw @turkeylurkey @dessina-devasia @mrglavas once https://github.com/redhat-developer/lsp4ij/actions/runs/26394480427 will be finished please install nighty build and tell me if it is working better
lagergren commentedon Nov 20, 2026
@turkeylurkey does this still happen with 0.30.1? Several fixes to the code action requests of quick fixes went into 0.30.0, which could explain a quick fix that is missing now and then: a cancelled quick-fix request is sent again (
0bac536b), parallel highlighting passes share one request (7022ae7b), a request cancelled during startup isn't sent (4dbdf09d), and the UI thread no longer waits for the code actions of a lazy quick fix (#1871).