SonarLint cannot share binding configuration without manually creating directory

  • Operating system: Windows 11
  • SonarLint plugin version: 10.8.1
  • IntelliJ version: Rider 2024.2.2

When sharing the connection parameters to the SonarQube server in a fresh solution, …

… the process fails with the following message:
“Could not find the directory where to store the configuration file”
image

I have to create the directory .sonarlint manually in the solution root. Then the file can be created successfully.

Please, ensure creating the directory.

Hi @lg2de, are you using git in your project or any other VCS? If not, could you please try with a VCS?

The directory is automatically created; the error here mentions that we cannot find where to create the folder. I believe it can happen in Rider when no .sonarlint folder exists, and you are not on a VCS project.

I’m using git.
The project is already under source control for long time.

Could you please provide the structure of your solution?

Puh, difficult to provide such details without offering company internals…
The solution is placed in the root of the repository. So, I guess this is quite normal setup.
Here some details of the root folder:

.git (folder)
.idea (folder)
.vs (folder)
(several other folders)
.editorconfig
.gitignore
(several other files)
foo.sln
(several other files)

Thank you for your information, @lg2de. We have just released SonarLint 10.9, which should fix your issue. Could you please update and see if you can reproduce the problem?

With version 10.9 the file was created including the folder.
Thanks!

1 Like

Super, thank you for notifying us about this issue! :sonarlint:
If you enjoy SonarLint, feel free to give a review on our marketplace.