Severe error when using connected mode for SonarQube and SonarLint in VSCode

Hi Pascal,

{
      "key": "javacustom",
      "name": "Java Custom Rules",
      "filename": "java-custom-rules-1.0-SNAPSHOT.jar",
      "sonarLintSupported": true,
      "hash": "d56e489d14caaa296ff6b7d950903410",
      "updatedAt": 1570002624834,
      "description": "Java Custom Rules Example for SonarQube",
      "version": "1.0-SNAPSHOT",
      "editionBundled": false
    }

The error is due to the custom plugin javacustom that is installed on your SonarQube server. In the latest SonarLint release, we have started excluding plugins that we know for sure are useless to be downloaded/loaded. That’s why we have stopped to load the SonarJava analyzer (since we don’t support analyzing the Java language in VSCode for now).

The problem is that the custom plugin requires SonarJava, but is missing the metadata to let SonarLint knows. This problem exists in our own sample. I have submitted a PR to fix this, you can look at it to do the same on your custom plugin.

1 Like