Uploaded image for project: 'SonarLint for Visual Studio Code'
  1. SonarLint for Visual Studio Code
  2. SLVSCODE-123

Some Java issues are not reported because wrong JDK classpath is used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.14
    • Fix Version/s: 1.19
    • Component/s: Java analyzer
    • Labels:
      None

      Description

      vscode-java allows to use a different JDK per project, and not necessarily the one used to run the SonarLint language server.

      We are probably affected by the same issue as SLI-384

      There is an API we can use to query the effective JDK used to compile each project:
      https://github.com/redhat-developer/vscode-java/blob/b1f0bddc06fdc8d35489f0686b044fa1d20eea99/src/extension.api.ts#L16

      This API will only return the JDK path, then we will have to list the JARs, depending if its a modular JDK or not.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              julien.henry Julien Henry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: