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:
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.