Sonarqube not connecting or receiving projects in Visual Studio 2017

I tried to install Sonarlint on visual studio pro version 15.6.7
I have installed SonarLint version 5.5.0.43817
I am trying to connect to sonarqube in https://sonarqube.mycompany.com

When I use a token, I get this:

Connecting to SonarQube server: https://sonarqube.mycompany.com/
Connecting to SonarQube server: Validating credentials
Connecting to SonarQube server: Detecting server plugins
Discovered a supported plugin: Plugin: ‘SonarC#’, Language(s): ‘C#’, Installed version: ‘8.51.0’, Minimum version: ‘5.0’
Discovered a supported plugin: Plugin: ‘SonarVB’, Language(s): ‘VB.NET’, Installed version: ‘8.51.0’, Minimum version: ‘3.0’
Discovered a supported plugin: Plugin: ‘SonarCFamily’, Language(s): ‘C++, C’, Installed version: ‘6.41.0’, Minimum version: ‘6.0’
Connecting to SonarQube server: Retrieving projects
Connecting to SonarQube server: Succeeded
Connecting to SonarQube server: Downloading server settings.

But nothing shows up in Sonarqube connections.
Even after those logs nothing shows up:
image

I am trying to connect and have sonarlint highlight issues that are the same as in my server.
I have tried to connect with http, https, using usr/psw and token.

This shows up a bit later in the logs also:
Execution cancelled.
DEBUG: Process 13932 was killed.
Aborted analysis of path-to-file, analysis has been re-triggered or has timed-out.
DEBUG: Executing file path-to-file\VISUALSTUDIO\15.0_AAD9A866\EXTENSIONS\UP3A52OI.4A4\lib\subprocess.exe
Args: -
Working directory: path-to-file\AppData\Local\Temp
Process id: 18488
Refreshing PCH file for path-to-file. PCH file location: path-to-file\AppData\Local\Temp\SonarLintForVisualStudio.PCH.preamble
DEBUG: Process returned exit code 0

UPDATE:
I updated to the latest version of VS 2017. Now I can connect and bind to the project but I get a timeout error:

Binding solution to SonarQube project: Started
Binding solution to SonarQube project: Discovering solution projects

Binding solution to SonarQube project: Download quality profile(s):

INFO: SonarLint connected mode no longer installs the analyzers NuGet packages. The analyzers embedded in the VSIX are used instead.
Binding solution to SonarQube project: Generating project rule sets
Ruleset binding: the following projects already reference the generated ruleset:

Binding solution to SonarQube project: Completed successfully
Suppressions have been updated. Open documents will be re-analysed.
Starting job: “re-analyzing 1 document(s)…”. Time: 7:22:36 PM
Finished job “re-analyzing 1 document(s)…” started at 7:22:36 PM. Elapsed time: 0ms
[Taint] Fetched 0 taint vulnerabilities.
Checking for suppressions…
Number of suppressions found: 0
Loaded settings from …
Using connected mode settings. User-specified settings in settings.json will be ignored.
Calculating effective rule settings…
Note: the following CFamily rules are not available in SonarLint: cpp:S5536, c:S5536, cpp:S4830, c:S4830, cpp:S5527, c:S5527, cpp:S5801, c:S5801, cpp:S5814, c:S5814, cpp:S5815, c:S5815, cpp:S5816, c:S5816, cpp:S5824, c:S5824, cpp:S2612, c:S2612, cpp:S5802, c:S5802, cpp:S5849, c:S5849, cpp:S5982, c:S5982, cpp:S5813, c:S5813, cpp:S5332, c:S5332, cpp:S2068, c:S2068, cpp:S2245, c:S2245, cpp:S5443, c:S5443, cpp:S5042, c:S5042, cpp:S4790, c:S4790, cpp:S1313, c:S1313, cpp:S6069, c:S6069
Analyzing path-to-file
DEBUG: Executing file path-to-file\VISUALSTUDIO\15.0_AAD9A866\EXTENSIONS\UP3A52OI.4A4\lib\subprocess.exe
Args: -
Working directory: path-tofile\AppData\Local\Temp\1
Process id: 14492
Execution cancelled.
DEBUG: Process 14492 was killed.
Aborted analysis of path-to-file analysis has been re-triggered or has timed-out.

Hey there.

It looks like you’re trying to use an old, unsupported version of SonarLint for Visual Studio with a new version of SonarQube. There’s no guarantee Connected Mode will work between old, unsupported versions of SonarLint and new, supported versions of SonarQube.

Your options are to either not use Connected Mode, or to upgrade your IDE to a version that supported versions of SonarLint… support (2019 or 2022)

Hello Colin,
Thank you for your answer. I updated the IDE to 15.9.56.
Then I can see the connection and I can bind but I get this:

Binding solution to SonarQube project: Started
Binding solution to SonarQube project: Discovering solution projects

Binding solution to SonarQube project: Download quality profile(s):

INFO: SonarLint connected mode no longer installs the analyzers NuGet packages. The analyzers embedded in the VSIX are used instead.
Binding solution to SonarQube project: Generating project rule sets
Ruleset binding: the following projects already reference the generated ruleset:

Binding solution to SonarQube project: Completed successfully
Suppressions have been updated. Open documents will be re-analysed.
Starting job: “re-analyzing 1 document(s)…”. Time: 7:22:36 PM
Finished job “re-analyzing 1 document(s)…” started at 7:22:36 PM. Elapsed time: 0ms
[Taint] Fetched 0 taint vulnerabilities.
Checking for suppressions…
Number of suppressions found: 0
Loaded settings from …
Using connected mode settings. User-specified settings in settings.json will be ignored.
Calculating effective rule settings…
Note: the following CFamily rules are not available in SonarLint: cpp:S5536, c:S5536, cpp:S4830, c:S4830, cpp:S5527, c:S5527, cpp:S5801, c:S5801, cpp:S5814, c:S5814, cpp:S5815, c:S5815, cpp:S5816, c:S5816, cpp:S5824, c:S5824, cpp:S2612, c:S2612, cpp:S5802, c:S5802, cpp:S5849, c:S5849, cpp:S5982, c:S5982, cpp:S5813, c:S5813, cpp:S5332, c:S5332, cpp:S2068, c:S2068, cpp:S2245, c:S2245, cpp:S5443, c:S5443, cpp:S5042, c:S5042, cpp:S4790, c:S4790, cpp:S1313, c:S1313, cpp:S6069, c:S6069
Analyzing path-to-file
DEBUG: Executing file path-to-file\VISUALSTUDIO\15.0_AAD9A866\EXTENSIONS\UP3A52OI.4A4\lib\subprocess.exe
Args: -
Working directory: path-tofile\AppData\Local\Temp\1
Process id: 14492
Execution cancelled.
DEBUG: Process 14492 was killed.
Aborted analysis of path-to-file analysis has been re-triggered or has timed-out.

Basically it times out. Maybe because the file is long. I read some other posts here and added these 2 variables
image

After that it succeeds, but it does not show the all the issues that I see in sonarqube server.
Maybe it’s because of this:
Note: the following CFamily rules are not available in SonarLint: cpp:S5536, c:S5536, cpp:S4830, c:S4830, cpp:S5527, c:S5527, cpp:S5801, c:S5801, cpp:S5814, c:S5814, cpp:S5815, c:S5815, cpp:S5816, c:S5816, cpp:S5824, c:S5824, cpp:S2612, c:S2612, cpp:S5802, c:S5802, cpp:S5849, c:S5849, cpp:S5982, c:S5982, cpp:S5813, c:S5813, cpp:S5332, c:S5332, cpp:S2068, c:S2068, cpp:S2245, c:S2245, cpp:S5443, c:S5443, cpp:S5042, c:S5042, cpp:S4790, c:S4790, cpp:S1313, c:S1313, cpp:S6069, c:S6069

However my question is: Is there a way to filter issues as bugs or codesmells and then by severity as in the server?

Any information on this?

This like an issue solved worked on in newer versions of SonarLint for Visual Studio! [Perf] VS becomes sluggish/locks up after opening very large C++ files · Issue #2798 · SonarSource/sonarlint-visualstudio · GitHub

Ultimately, while a distribution for SonarLint for Visual Studio 2017 still exists, it is not supported (and there will be no bugfixes) – we encourage users to use SonarLint for Visual Studio 2019 or 2022.