Getting "Fetch Failed" Error at SonarQube startup

Fedora 42 Linux

  • SonarQube for VS Code plugin version:sonarsource.sonarlint-vscode 4.21.0
  • Programming language you’re coding in: C++
  • Is connected mode used: No

vsCode version info:
Version: 1.99.3
Commit: 17baf841131aa23349f217ca7c570c76ee87b957
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 6.14.4-300.fc42.x86_64

openjdk version “21.0.7” 2025-04-15

When I start up vsCode, I briefly see a message saying:

“downloading sonar-cfamily-plugin analyzer version 6.66.0.83483”

Immediately followed by “Fetch failed”

“Show Verbose Logs”/“Show Analyzer Logs” did not reveal any error messages.

No C++ analysis happens. Please help

Hi,

Welcome to the community and thanks for this report!

Even though there are no errors, could we have those logs?

 
Thx,
Ann

I’m happy to do that, find a zip file attached.

sonar-logs.zip (1.9 KB)

Hi,

Thanks!

I’ll flag this for the experts, but FYI they’re all European, so they won’t see it until at least tomorrow.

 
Ann

I don’t mind waiting at all. Thanks so much for your help on this :slight_smile:

1 Like

Hello, thank you for reporting this!

This can happen if the extension cannot reach Sonar’s binary repository server when the extension starts and/or if the downloaded file is corrupted in transit. Usual suspects are proxy servers, firewalls and unresponsive name servers.

The actual error should be visible in the developer console, would it be possible for you to share it with us?

You can go through: “Help” > “Toggle Developer Tools”, right click in the console and “Save as…”

If the download continues to fail, you can follow the offline installation steps for the C and C++ analyzer.

[EDIT]
For the record, the URL of the downloaded file follows this format: https://binaries.sonarsource.com/CommercialDistribution/sonar-cfamily-plugin/sonar-cfamily-plugin-${expectedVersion}.jar (source for reference).