Using sonarlint version 2.0.2, I created a server connection on the sonar Server view. I used a SonarQube token, and tested the connection. The test was successful. When I clicked Finish to save the server configuration, I got the error shown below.
If you provide password so the credentials will save, then the test fails because SonarQube does not want a password when using tokens.
Unable to save secure credentials
java.lang.IllegalStateException: Unable to save secure credentials
at org.sonarlint.eclipse.core.internal.server.ServersManager.storeCredentials(ServersManager.java:209)
at org.sonarlint.eclipse.core.internal.server.ServersManager.updateServer(ServersManager.java:279)
at org.sonarlint.eclipse.core.internal.server.Server.updateConfig(Server.java:181)
at org.sonarlint.eclipse.ui.internal.server.wizard.EditServerLocationWizard.doFinish(EditServerLocationWizard.java:35)
at org.sonarlint.eclipse.ui.internal.server.wizard.AbstractServerLocationWizard$1.run(AbstractServerLocationWizard.java:65)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.eclipse.equinox.security.storage.StorageException: No password provided.
at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.java:237)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferencesWrapper.java:110)
at org.sonarlint.eclipse.core.internal.server.ServersManager.storeCredentials(ServersManager.java:205)
... 5 more