- Operating system: Windows 10
- SonarLint plugin version: 10.8.0.79133
- IntelliJ version: ULTIMATE 2024.2 (242.20224.300)
- Programming language you’re coding in: Java
After the IntelliJ update to 2024.2, my connection to SonarQube was lost.
I am doing the following steps to add it:
- Settings
- Tools
- SonarLint
- Connections > Add
- Choose SonarQube
- Enter a name
- Enter the URL to our SonarQube instance (https without trailing slash)
- Click on “Next”
- Use Authentication Type “Token”
- Click “Create Token”
- Browser opens
- Allow Connection
- Browser says “OK”
- Going back to the IDE
Expected:
Token is inserted into the token field.
Actual:
Token is inserted into the token field and an error message is displayed:
Failed to connect to the server. Please check the configuration. Cause: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
I can click on “OK” in the error message and then click on “Next”, but then the same error message appears again.