@kaleemasadmughal do you confirm that you’ve tried rebuilding your ES indices (delete $SONARQUBE_HOME/data/es5
and restart the server)?
Yes but issue remains same.(xcode project in Swift Language)
Hi Ann, thanks very much for your time !
Attached are screenshot with details about ‘Measures’ and Activity you´ve asked for. In project following languages are in use: XML, JavaScript and JSP.
Hi @ganncamp,
If I use “sonar.modules=core” which contains JAVA, is getting successful and able to see the Project in Sonar.
But, if I use “sonar.modules=app,core,config” which contain JAVA, JS, JSP, CSS, XML, etc. The build shows success, Sonar background shows success, but in Project display it shows This Project is Empty
I tried deleting $SONARQUBE_HOME/data/es5 and restarting, but still I face the same issue.
Hi Ann, For me also same problem that project is showing empty and background tasks are successful , please check the screenshots attached
Hi folks,
To help us investigate, it would be interesting to get logs of both scanner and server side processing, in debug mode.
For Maven or CLI scanners, just add -X
to get verbose logs.
To get compute engine (server side) verbose logs, go to the system info page, and change log verbosity to debug, just before running the scanner. Once the background task has been processed, get the logs and reset to normal verbosity.
You can send the logs to me privately if you are concerned about privacy (julien.henry at sonarsource.com).
Thanks very much Julien! The logs have been sent just now.
-joso
Hi All,
i had the same issue “this project is empty” and i found a solution for it.
instead of running sonar scanner via command line : ./sonar-scanner …
i run it via maven, you can use this command (depending what you have declared on the pom file ) : mvn clean package sonar:sonar
then i got all the data on SonaQube.
I hope this will help you guys.
Regards;
Yassine B.
Hi Yassine,
Thanks for chiming in!
If you don’t mind sharing, what version of SonarQube are you running?
Ann
Hi Ann,
I´d like to share solution on my side for issue “This project is empty”.
The issue was connected with “sonar-project.properties” file. After I renamed this file and re-run scan of the project analysis finally appeared in SQ. Thanks to Julien H. for pointing in this direction. For second issue of “This project is empty” , I had .yaml files in project to analyze but " YAML Analyzer plugin was not installed. After installing this plugin I was able to see analysis for my project. Thanks very much to all of you !
2 posts were split to a new topic: Can’t analyze Swift
Hi @Joso_Kosic,
Thanks for chiming in! Would you mind sharing the contents of your renamed sonar-project.properties
file?
Thx,
Ann
Even I am also facing the same issue. MSBuild is getting successful but unable to reflect in SQ dashboard. Getting Project empty. Please provide solution.
I am using Sonarqube 7.7 , MSBuild 4.6.1
#Configure here general information about the environment, such as SonarQube server connection details for example
#No information about specific project should appear here
#----- Default SonarQube server
#sonar.host.url=http://localhost:9000
#----- Default source code encoding
#sonar.sourceEncoding=UTF-8
location of this file is : sonar-scanner-msbuild-4.6.1.2049-net46\sonar-scanner-3.3.0.1492\conf
and I renamed this file from sonar-scanner.properties to sonar-scanner123.properties
Hi @Joso_Kosic,
Thanks for sharing your properties file.
You have extensive lists of exclusions and inclusions defined. Since analysis produced the expected results without these properties, I can only guess that your inclusions and exclusions combined to an empty set.
Also, purely FYI, I don’t think sonar.leak.period
does anything as an analysis property. This should be set in the UI, at global or project level.
Ann