Hi! I’m trying to connect the SonarQube for IDE extension in Visual Studio to a SonarQube EE server.
At some point in the past (when it was still called SonarLint), this worked without any issues. Unfortunately this was on an old machine so I don’t have a version number.
My organisation uses an NTLM proxy, which a lot of different tools have trouble authenticating with. With the latest version of SonarQube for IDE, in the verbose log output, I’m getting 407 Proxy Authentication Errors whenever SonarQube for IDE tries to connect to the server:
[DEBUG] [ThreadId 5] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 407 https://SERVER/api/system/status | response time=113ms
This means I cannot bind to a project to begin using Connected Mode. I get an error in the project selector UI that
Loading the projects from the server failed
To solve the authentication problems, I have an instance of Px running, which hosts an unauthenticated proxy on localhost:3128
. HTTP_PROXY
and HTTPS_PROXY
are set to this proxy, and this works fine for many tools.
However, I can’t figure out how to tell SonarQube for IDE to use this Px proxy. I can’t find anything in the options. I have it set in my devenv.exe.config, but this doesn’t seem to be obeyed either:
<?xml version ="1.0"?>
<configuration>
<!-- snip -->
<system.net>
<settings>
<ipv6 enabled="true"/>
</settings>
<defaultProxy>
<proxy autoDetect="false" bypassonlocal="true" usesystemdefault="false" proxyaddress="http://localhost:3128" />
</defaultProxy>
</system.net>
</configuration>
How can I tell SonarQube for IDE to use my Px proxy, instead of the system-default NTLM authenticated proxy? Thanks!
- Operating system: Windows 11 23H2 (22631.5472)
- Visual Studio version: Visual Studio 2022 LTS (17.6.22)
- SonarQube for Visual Studio plugin version: 8.23.0.13726