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

sonarcloud

(Exemples Dev) #1

Hello,
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 6.0.0.10646 (cpp)

Thank’s for any help.

INFO: Scanner configuration file: /usr/local/sonar-scanner-3.2.0.1227-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/user/Work/Projects/Calcul_Aires/sonar-project.properties
INFO: SonarQube Scanner 3.2.0.1227
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

Hi!

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

Colin


(Exemples Dev) #3

Yes, it works now, thank you !
I’ve had an old sonar configuration file sonar-project.properties 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.

Cheers,

Colin