Skip to content

Quick fix missing from MicroProfile and Jakarta diagnostic #294

Open

Description

@turkeylurkey

Intermittently quick fixes are missing. This often causes failures in Liberty automated UI testing.
image
image
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.

Activity

  1. turkeylurkey commented on May 20, 2024

    @turkeylurkey
    ContributorAuthor
    [Trace - 17:53:38] Received response 'textDocument/inlayHint - (135)' in 1ms.
    No result returned.
    
    
    [Trace - 17:53:38] Received request 'microprofile/java/diagnostics - (137)'
    Params: {
      "uris": [
        "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java"
      ],
      "documentFormat": 2,
      "settings": {}
    }
    
    
    [Trace - 17:53:38] Received request 'microprofile/java/diagnostics - (138)'
    Params: {
      "uris": [
        "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/system/SystemResource2.java"
      ],
      "documentFormat": 2,
      "settings": {}
    }
    
    
    [Trace - 17:53:38] Sending response 'microprofile/java/diagnostics - (138)'. Processing request took 1ms
    Result: [
      {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/system/SystemResource2.java",
        "diagnostics": []
      }
    ]
    
    
    [Trace - 17:53:38] Sending response 'microprofile/java/diagnostics - (137)'. Processing request took 1ms
    Result: [
      {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ]
      }
    ]
    
    
    [Trace - 17:53:38] Received notification 'textDocument/publishDiagnostics'
    Params: {
      "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/system/SystemResource2.java",
      "diagnostics": []
    }
    
    
    [Trace - 17:53:38] Received notification 'textDocument/publishDiagnostics'
    Params: {
      "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
      "diagnostics": [
        {
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "severity": 2,
          "code": "HealthAnnotationMissing",
          "source": "microprofile-health",
          "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
        }
      ]
    }
    
    
    [Trace - 17:53:38] Sending request 'textDocument/codeAction - (136)'.
    Params: {
      "textDocument": {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java"
      },
      "range": {
        "start": {
          "line": 10,
          "character": 13
        },
        "end": {
          "line": 10,
          "character": 35
        }
      },
      "context": {
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "triggerKind": 2
      }
    }
    
    
    [Trace - 17:53:38] Received request 'microprofile/java/codeAction - (139)'
    Params: {
      "resourceOperationSupported": false,
      "commandConfigurationUpdateSupported": false,
      "resolveSupported": true,
      "textDocument": {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java"
      },
      "range": {
        "start": {
          "line": 10,
          "character": 13
        },
        "end": {
          "line": 10,
          "character": 35
        }
      },
      "context": {
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "triggerKind": 2
      }
    }
    
    
    [Trace - 17:53:38] Sending response 'microprofile/java/codeAction - (139)'. Processing request took 11ms
    Result: [
      {
        "title": "Insert @Health",
        "kind": "quickfix",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "data": {
          "participantId": "io.openliberty.tools.intellij.lsp4mp4ij.psi.internal.health.java.HealthAnnotationMissingQuickFix",
          "documentUri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "extendedData": {
            "annotation": [
              "org.eclipse.microprofile.health.Health"
            ]
          },
          "resourceOperationSupported": false,
          "commandConfigurationUpdateSupported": false,
          "id": "InsertMissingHealthAnnotation"
        }
      },
      {
        "title": "Insert @Liveness",
        "kind": "quickfix",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "data": {
          "participantId": "io.openliberty.tools.intellij.lsp4mp4ij.psi.internal.health.java.HealthAnnotationMissingQuickFix",
          "documentUri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "extendedData": {
            "annotation": [
              "org.eclipse.microprofile.health.Liveness"
            ]
          },
          "resourceOperationSupported": false,
          "commandConfigurationUpdateSupported": false,
          "id": "InsertMissingHealthAnnotation"
        }
      },
      {
        "title": "Insert @Readiness",
        "kind": "quickfix",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "data": {
          "participantId": "io.openliberty.tools.intellij.lsp4mp4ij.psi.internal.health.java.HealthAnnotationMissingQuickFix",
          "documentUri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "extendedData": {
            "annotation": [
              "org.eclipse.microprofile.health.Readiness"
            ]
          },
          "resourceOperationSupported": false,
          "commandConfigurationUpdateSupported": false,
          "id": "InsertMissingHealthAnnotation"
        }
      },
      {
        "title": "Generate OpenAPI Annotations for \u0027ServiceLiveHealthCheck\u0027",
        "kind": "source",
        "data": {
          "participantId": "io.openliberty.tools.intellij.lsp4mp4ij.psi.internal.openapi.java.MicroProfileGenerateOpenAPIOperation",
          "documentUri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "extendedData": {
            "type": "io.openliberty.mp.sample.health.ServiceLiveHealthCheck"
          },
          "resourceOperationSupported": false,
          "commandConfigurationUpdateSupported": false,
          "id": "GenerateOpenApiAnnotations"
        }
      }
    ]
    
    
    [Trace - 17:53:38] Received response 'textDocument/codeAction - (136)' in 23ms.
    Result: [
      {
        "title": "Insert @Health",
        "kind": "quickfix",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "data": {
          "participantId": "io.openliberty.tools.intellij.lsp4mp4ij.psi.internal.health.java.HealthAnnotationMissingQuickFix",
          "documentUri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "extendedData": {
            "annotation": [
              "org.eclipse.microprofile.health.Health"
            ]
          },
          "resourceOperationSupported": false,
          "commandConfigurationUpdateSupported": false,
          "id": "InsertMissingHealthAnnotation"
        }
      },
      {
        "title": "Insert @Liveness",
        "kind": "quickfix",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "data": {
          "participantId": "io.openliberty.tools.intellij.lsp4mp4ij.psi.internal.health.java.HealthAnnotationMissingQuickFix",
          "documentUri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "extendedData": {
            "annotation": [
              "org.eclipse.microprofile.health.Liveness"
            ]
          },
          "resourceOperationSupported": false,
          "commandConfigurationUpdateSupported": false,
          "id": "InsertMissingHealthAnnotation"
        }
      },
      {
        "title": "Insert @Readiness",
        "kind": "quickfix",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "data": {
          "participantId": "io.openliberty.tools.intellij.lsp4mp4ij.psi.internal.health.java.HealthAnnotationMissingQuickFix",
          "documentUri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "extendedData": {
            "annotation": [
              "org.eclipse.microprofile.health.Readiness"
            ]
          },
          "resourceOperationSupported": false,
          "commandConfigurationUpdateSupported": false,
          "id": "InsertMissingHealthAnnotation"
        }
      },
      {
        "title": "Generate OpenAPI Annotations for \u0027ServiceLiveHealthCheck\u0027",
        "kind": "source",
        "data": {
          "participantId": "io.openliberty.tools.intellij.lsp4mp4ij.psi.internal.openapi.java.MicroProfileGenerateOpenAPIOperation",
          "documentUri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "extendedData": {
            "type": "io.openliberty.mp.sample.health.ServiceLiveHealthCheck"
          },
          "resourceOperationSupported": false,
          "commandConfigurationUpdateSupported": false,
          "id": "GenerateOpenApiAnnotations"
        }
      }
    ]
    
    
    [Trace - 17:53:38] Sending notification 'microprofile/propertiesChanged'
    Params: {
      "type": [
        1,
        1
      ],
      "projectURIs": [
        "sampleGradleMPLSApp.main"
      ]
    }
    
    
    [Trace - 17:53:38] Received request 'microprofile/java/diagnostics - (140)'
    Params: {
      "uris": [
        "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/system/SystemResource2.java",
        "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java"
      ],
      "documentFormat": 2,
      "settings": {}
    }
    
    
    [Trace - 17:53:38] Sending response 'microprofile/java/diagnostics - (140)'. Processing request took 1ms
    Result: [
      {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/system/SystemResource2.java",
        "diagnostics": []
      },
      {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ]
      }
    ]
    
    
    [Trace - 17:53:38] Received notification 'textDocument/publishDiagnostics'
    Params: {
      "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/system/SystemResource2.java",
      "diagnostics": []
    }
    
    
    [Trace - 17:53:38] Received notification 'textDocument/publishDiagnostics'
    Params: {
      "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
      "diagnostics": [
        {
          "range": {
            "start": {
              "line": 10,
              "character": 13
            },
            "end": {
              "line": 10,
              "character": 35
            }
          },
          "severity": 2,
          "code": "HealthAnnotationMissing",
          "source": "microprofile-health",
          "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
        }
      ]
    }
    
    
    [Trace - 17:53:53] Sending request 'textDocument/codeAction - (139)'.
    Params: {
      "textDocument": {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java"
      },
      "range": {
        "start": {
          "line": 10,
          "character": 13
        },
        "end": {
          "line": 10,
          "character": 35
        }
      },
      "context": {
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "triggerKind": 2
      }
    }
    
    
    [Trace - 17:53:53] Sending request 'textDocument/codeAction - (138)'.
    Params: {
      "textDocument": {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java"
      },
      "range": {
        "start": {
          "line": 10,
          "character": 13
        },
        "end": {
          "line": 10,
          "character": 35
        }
      },
      "context": {
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "triggerKind": 2
      }
    }
    
    
    [Trace - 17:53:53] Sending request 'textDocument/codeAction - (137)'.
    Params: {
      "textDocument": {
        "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java"
      },
      "range": {
        "start": {
          "line": 10,
          "character": 13
        },
        "end": {
          "line": 10,
          "character": 35
        }
      },
      "context": {
        "diagnostics": [
          {
            "range": {
              "start": {
                "line": 10,
                "character": 13
              },
              "end": {
                "line": 10,
                "character": 35
              }
            },
            "severity": 2,
            "code": "HealthAnnotationMissing",
            "source": "microprofile-health",
            "message": "The class `io.openliberty.mp.sample.health.ServiceLiveHealthCheck` implementing the HealthCheck interface should use the @Liveness, @Readiness, or @Health annotation."
          }
        ],
        "triggerKind": 2
      }
    }
    
    
    [Trace - 17:53:53] Received request 'microprofile/java/projectLabels - (142)'
    Params: {
      "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
      "types": [
        "jakarta.ws.rs.GET",
        "org.eclipse.microprofile.rest.client.inject.RegisterRestClient",
        "org.eclipse.microprofile.metrics.annotation.Metric",
        "org.eclipse.microprofile.metrics.annotation.Counted",
        "org.eclipse.microprofile.metrics.annotation.Gauge",
        "org.eclipse.microprofile.metrics.annotation.ConcurrentGauge",
        "org.eclipse.microprofile.metrics.annotation.Metered",
        "org.eclipse.microprofile.metrics.annotation.Timed",
        "org.eclipse.microprofile.metrics.annotation.SimplyTimed",
        "org.eclipse.microprofile.metrics.annotation.RegistryType",
        "org.eclipse.microprofile.openapi.annotations.Operation",
        "org.eclipse.microprofile.openapi.annotations.media.Content",
        "org.eclipse.microprofile.openapi.annotations.media.Schema",
        "org.eclipse.microprofile.openapi.annotations.parameters.Parameters",
        "org.eclipse.microprofile.openapi.annotations.parameters.Parameter",
        "org.eclipse.microprofile.openapi.annotations.responses.APIResponses",
        "org.eclipse.microprofile.openapi.annotations.responses.APIResponse",
        "org.eclipse.microprofile.faulttolerance.Timeout",
        "org.eclipse.microprofile.faulttolerance.Retry",
        "org.eclipse.microprofile.faulttolerance.Fallback",
        "org.eclipse.microprofile.faulttolerance.CircuitBreaker",
        "org.eclipse.microprofile.faulttolerance.Bulkhead",
        "org.eclipse.microprofile.health.Readiness",
        "org.eclipse.microprofile.health.Liveness",
        "javax.ws.rs.GET"
      ]
    }
    
    
    [Trace - 17:53:53] Received request 'microprofile/java/projectLabels - (143)'
    Params: {
      "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
      "types": [
        "jakarta.ws.rs.GET",
        "org.eclipse.microprofile.rest.client.inject.RegisterRestClient",
        "org.eclipse.microprofile.metrics.annotation.Metric",
        "org.eclipse.microprofile.metrics.annotation.Counted",
        "org.eclipse.microprofile.metrics.annotation.Gauge",
        "org.eclipse.microprofile.metrics.annotation.ConcurrentGauge",
        "org.eclipse.microprofile.metrics.annotation.Metered",
        "org.eclipse.microprofile.metrics.annotation.Timed",
        "org.eclipse.microprofile.metrics.annotation.SimplyTimed",
        "org.eclipse.microprofile.metrics.annotation.RegistryType",
        "org.eclipse.microprofile.openapi.annotations.Operation",
        "org.eclipse.microprofile.openapi.annotations.media.Content",
        "org.eclipse.microprofile.openapi.annotations.media.Schema",
        "org.eclipse.microprofile.openapi.annotations.parameters.Parameters",
        "org.eclipse.microprofile.openapi.annotations.parameters.Parameter",
        "org.eclipse.microprofile.openapi.annotations.responses.APIResponses",
        "org.eclipse.microprofile.openapi.annotations.responses.APIResponse",
        "org.eclipse.microprofile.faulttolerance.Timeout",
        "org.eclipse.microprofile.faulttolerance.Retry",
        "org.eclipse.microprofile.faulttolerance.Fallback",
        "org.eclipse.microprofile.faulttolerance.CircuitBreaker",
        "org.eclipse.microprofile.faulttolerance.Bulkhead",
        "org.eclipse.microprofile.health.Readiness",
        "org.eclipse.microprofile.health.Liveness",
        "javax.ws.rs.GET"
      ]
    }
    
    
    [Trace - 17:53:53] Received request 'microprofile/java/projectLabels - (141)'
    Params: {
      "uri": "file:///Users/paulg/WASDevEx/liberty-tools-intellij/src/test/resources/projects/gradle/sampleGradleMPLSApp/src/main/java/io/openliberty/mp/sample/health/ServiceLiveHealthCheck.java",
      "types": [
        "jakarta.ws.rs.GET",
        "org.eclipse.microprofile.rest.client.inject.RegisterRestClient",
        "org.eclipse.microprofile.metrics.annotation.Metric",
        "org.eclipse.microprofile.metrics.annotation.Counted",
        "org.eclipse.microprofile.metrics.annotation.Gauge",
        "org.eclipse.microprofile.metrics.annotation.ConcurrentGauge",
        "org.eclipse.microprofile.metrics.annotation.Metered",
        "org.eclipse.microprofile.metrics.annotation.Timed",
        "org.eclipse.microprofile.metrics.annotation.SimplyTimed",
        "org.eclipse.microprofile.metrics.annotation.RegistryType",
        "org.eclipse.microprofile.openapi.annotations.Operation",
        "org.eclipse.microprofile.openapi.annotations.media.Content",
        "org.eclipse.microprofile.openapi.annotations.media.Schema",
        "org.eclipse.microprofile.openapi.annotations.parameters.Parameters",
        "org.eclipse.microprofile.openapi.annotations.parameters.Parameter",
        "org.eclipse.microprofile.openapi.annotations.responses.APIResponses",
        "org.eclipse.microprofile.openapi.annotations.responses.APIResponse",
        "org.eclipse.microprofile.faulttolerance.Timeout",
        "org.eclipse.microprofile.faulttolerance.Retry",
        "org.eclipse.microprofile.faulttolerance.Fallback",
        "org.eclipse.microprofile.faulttolerance.CircuitBreaker",
        "org.eclipse.microprofile.faulttolerance.Bulkhead",
        "org.eclipse.microprofile.health.Readiness",
        "org.eclipse.microprofile.health.Liveness",
        "javax.ws.rs.GET"
      ]
    }
    
    
    [Trace - 17:53:53] Received response 'textDocument/codeAction - (139)' in 1ms.
    Result: []
    
    
    [Trace - 17:53:53] Received response 'textDocument/codeAction - (137)' in 1ms.
    Result: []
    
    
    [Trace - 17:53:53] Received response 'textDocument/codeAction - (138)' in 1ms.
    Result: []
    
    
    [Trace - 17:53:53] Sending response 'microprofile/java/projectLabels - (142)'. Processing request took 0ms
    No result returned.
    
    
    [Trace - 17:53:53] Sending response 'microprofile/java/projectLabels - (141)'. Processing request took 1ms
    No result returned.
    
    
    [Trace - 17:53:53] Sending response 'microprofile/java/projectLabels - (143)'. Processing request took 4ms
    Result: {
      "uri": "sampleGradleMPLSApp.main",
      "name": "sampleGradleMPLSApp.main",
      "labels": [
        "jakarta",
        "microprofile",
        "gradle",
        "jakarta.ws.rs.GET",
        "org.eclipse.microprofile.rest.client.inject.RegisterRestClient",
        "org.eclipse.microprofile.metrics.annotation.Metric",
        "org.eclipse.microprofile.metrics.annotation.Counted",
        "org.eclipse.microprofile.metrics.annotation.Gauge",
        "org.eclipse.microprofile.metrics.annotation.ConcurrentGauge",
        "org.eclipse.microprofile.metrics.annotation.Metered",
        "org.eclipse.microprofile.metrics.annotation.Timed",
        "org.eclipse.microprofile.metrics.annotation.SimplyTimed",
        "org.eclipse.microprofile.metrics.annotation.RegistryType",
        "org.eclipse.microprofile.openapi.annotations.Operation",
        "org.eclipse.microprofile.openapi.annotations.media.Content",
        "org.eclipse.microprofile.openapi.annotations.media.Schema",
        "org.eclipse.microprofile.openapi.annotations.parameters.Parameters",
        "org.eclipse.microprofile.openapi.annotations.parameters.Parameter",
        "org.eclipse.microprofile.openapi.annotations.responses.APIResponses",
        "org.eclipse.microprofile.openapi.annotations.responses.APIResponse",
        "org.eclipse.microprofile.faulttolerance.Timeout",
        "org.eclipse.microprofile.faulttolerance.Retry",
        "org.eclipse.microprofile.faulttolerance.Fallback",
        "org.eclipse.microprofile.faulttolerance.CircuitBreaker",
        "org.eclipse.microprofile.faulttolerance.Bulkhead",
        "org.eclipse.microprofile.health.Readiness",
        "org.eclipse.microprofile.health.Liveness",
        "javax.ws.rs.GET"
      ]
    }```
    
  2. turkeylurkey commented on May 20, 2024

    @turkeylurkey
    ContributorAuthor
    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)```
    
  3. angelozerr commented on May 21, 2024

    @angelozerr
    Contributor

    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?

  4. angelozerr commented on May 22, 2024

    @angelozerr
    Contributor

    It is important to note that these results were achieved using the April 1 version

    It is hard to know. We did a release yesterday please try it and give us feeddback

  5. angelozerr commented on May 22, 2024

    @angelozerr
    Contributor

    It is working perfectly with our IJ Quarkus with good performance, see following demo:

    CodeActionMPLS

    Please:

    • try with our last version of LSP4IJ
    • disable your Jakarta LS which could takes some times if it doesn't support resolve code action
  6. added
    bug
    on May 22, 2024
  7. turkeylurkey commented on May 24, 2024

    @turkeylurkey
    ContributorAuthor

    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?

  8. angelozerr commented on May 24, 2024

    @angelozerr
    Contributor

    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.

  9. turkeylurkey commented on May 24, 2024

    @turkeylurkey
    ContributorAuthor

    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:
    image

    Next the quick fixes:
    image

  10. turkeylurkey commented on May 24, 2024

    @turkeylurkey
    ContributorAuthor

    Just one language server is running:
    image

  11. turkeylurkey commented on May 24, 2024

    @turkeylurkey
    ContributorAuthor

    I'm still working with the April 1 code but an associate using the 0.0.1 code is seeing similar behaviour.

  12. angelozerr commented on May 27, 2024

    @angelozerr
    Contributor

    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.

  13. angelozerr commented on Jun 7, 2024

    @angelozerr
    Contributor

    @turkeylurkey have you again the problem with last version of LSP4IJ?

  14. turkeylurkey commented on Jun 7, 2024

    @turkeylurkey
    ContributorAuthor

    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.

  15. 21 remaining items

  16. angelozerr commented on Oct 31, 2024

    @angelozerr
    Contributor

    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.

  17. mrglavas commented on Nov 1, 2024

    @mrglavas
    Contributor

    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.

    @angelozerr Thanks for the suggestion. I've opened an issue for creating this test as our next action here: OpenLiberty/liberty-tools-intellij#1072.

  18. dessina-devasia commented on Jan 27, 2025

    @dessina-devasia

    @mrglavas @angelozerr I've opened a PR corresponding to the ticket OpenLiberty/liberty-tools-intellij#1072 in LSP4IJ. Please have a look. Thank you!

  19. self-assigned this
    on Apr 16, 2025
  20. moved this to Todo in Java Toolingon Jul 7, 2025
  21. dessina-devasia commented on Dec 5, 2025

    @dessina-devasia

    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

  22. angelozerr commented on Dec 5, 2025

    @angelozerr
    Contributor

    @dessina-devasia have you the same problem with IJ Quarkus? If you have the same problem, I will try again to investigate the issue.

  23. angelozerr commented on Dec 5, 2025

    @angelozerr
    Contributor

    @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?

  24. TrevCraw commented on Dec 5, 2025

    @TrevCraw

    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.

  25. angelozerr commented on Dec 5, 2025

    @angelozerr
    Contributor

    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.

    I need to find time to investigate this issue.

  26. angelozerr commented on Dec 5, 2025

    @angelozerr
    Contributor

    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.

    I need to find time to investigate this issue.

  27. angelozerr commented on May 25, 2026

    @angelozerr
    Contributor
  28. lagergren commented on Nov 20, 2026

    @lagergren
    Collaborator

    @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).

  29. added this to the 0.30.3 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcodeAction

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions