You must install a plugin that supports the language 'c++'


(Exemples Dev) #1

I’m a new user of sonarcloud. Sorry for the dummy question…
I’ve a simple C++ (.cpp files) ready to be analyzed in github.
I’ve followed the installation steps : the compilation using build-wrapper-linux-x86 has been ok.
Using the latest version of sonar-scanner (see below),the execution of this tool finished with the error message: “You must install a plugin that supports the language ‘c++’”

Knowing that the debug option shows that there is the default C++ plugin:
SonarCFamily (cpp)

Thank’s for any help.

INFO: Scanner configuration file: /usr/local/sonar-scanner-
INFO: Project root configuration file: /home/user/Work/Projects/Calcul_Aires/
INFO: SonarQube Scanner
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Linux 3.10.0-514.26.2.el7.x86_64 amd64

(Colin Mueller) #2


You haven’t got sonar.language set anywhere in your configuration have you? If you do, try removing it and building / scanning again.


(Exemples Dev) #3

Yes, it works now, thank you !
I’ve had an old sonar configuration file containing the line _“sonar.language=c++”
I suppressed the file and the sonarQube dashboard appeared…

(Colin Mueller) #4

Good to hear. :slight_smile:

sonar.language is an old parameter that was deprecated a while ago and should finally be removed soon. SonarQube is great at detecting the language of its files and performing multi-language analysis now, but once upon a time it was not.