Uploaded image for project: 'SonarLint Core Library'
  1. SonarLint Core Library
  2. SLCORE-293

Do not copy/extract plugins JARs used for the analysis

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0
    • Component/s: None
    • Labels:
      None

      Description

      • In standalone mode, plugins are packaged into each IDE plugin. During SonarLint engine startup, the plugins are copied into the cache if they are not already present (after computing the hash): in ~/.sonarlint/plugins/<hash>/<plugin filename>.jar
      • In connected mode, plugins are directly downloaded into the cache, based on the hash of the server.

      Then plugin JARs are unzipped to support loading libs from META-INF/lib.

      This approach leads to a lot of file creation, and issues like SLI-454. Also cache folders are never purged, and can grow indefinitely.

      In standalone mode, we should be able to load plugins "in place". In connected mode, they have to be downloaded from the server, but we could change the location to be inside the engine global storage, to avoid "polluting" another location.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: