Empty build-wrapper-dump.json

This is my first kick at the can with the build-wrapper as we are doing a quick trial of developer edition.

I’ve wrapped our cmake build command and build-wrapper.log sees some stuff, but build-wrapper-dump.json remains empty. I’ve confirmed this is building on an Intel Mac, so I don’t think it’s the same issue as the other recent one.

I’m not exactly sure what all that means in build-wrapper.log, so I’m wondering if the issue is something obvious to more experienced eyes? :slight_smile:

mkdir build
cd build
cmake -G Xcode ..
cd ..
build-wrapper-macosx-x86 --out-dir bw-output cmake --build build/ --config Debug

build-wrapper.log (616.1 KB)
build-wrapper-dump.json (507 Bytes)

Hello @rbreck,

Could you share the output of the sonar-scanner command?

Also, don’t forget that the build-wrapper needs to be used with a clean build command (the build is clean in the small snippet you shared but it won’t be if you relaunch only
build-wrapper-macosx-x86 --out-dir bw-output cmake --build build/ --config Debug )

Hi @Amelie,

Sorry for the late reply, I missed your answer. We’ve had our trial extended, so maybe we can sort this out this week.

This is the output from the sonar-scanner command:

[23:56:28]
[Step 2/2] Starting: /opt/teamcity/temp/agentTmp/custom_script7342612827376995499
[23:56:28]
[Step 2/2] in directory: /opt/teamcity/work/f22629ddf1359b61
[23:56:28]
[Step 2/2] INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
[23:56:28]
[Step 2/2] INFO: Project root configuration file: NONE
[23:56:28]
[Step 2/2] INFO: SonarScanner 4.6.2.2472
[23:56:28]
[Step 2/2] INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
[23:56:28]
[Step 2/2] INFO: Mac OS X 10.15.7 x86_64
[23:56:29]
[Step 2/2] INFO: User cache: /Users/buildbot/.sonar/cache
[23:56:29]
[Step 2/2] INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
[23:56:29]
[Step 2/2] INFO: Project root configuration file: NONE
[23:56:29]
[Step 2/2] INFO: Analyzing on SonarQube server 8.9.0
[23:56:29]
[Step 2/2] INFO: Default locale: "en_CA", source code encoding: "UTF-8" (analysis is platform dependent)
[23:56:29]
[Step 2/2] INFO: Load global settings
[23:56:30]
[Step 2/2] INFO: Load global settings (done) | time=145ms
[23:56:30]
[Step 2/2] INFO: Server id: BF41A1F2-AXn0aD7lv6SmI4lA6oJH
[23:56:30]
[Step 2/2] INFO: User cache: /Users/buildbot/.sonar/cache
[23:56:30]
[Step 2/2] INFO: Load/download plugins
[23:56:30]
[Step 2/2] INFO: Load plugins index
[23:56:30]
[Step 2/2] INFO: Load plugins index (done) | time=92ms
[23:56:30]
[Step 2/2] INFO: Load/download plugins (done) | time=363ms
[23:56:30]
[Step 2/2] INFO: Loaded core extensions: developer-scanner
[23:56:30]
[Step 2/2] INFO: JavaScript/TypeScript frontend is enabled
[23:56:31]
[Step 2/2] INFO: Process project properties
[23:56:31]
[Step 2/2] INFO: Process project properties (done) | time=7ms
[23:56:31]
[Step 2/2] INFO: Execute project builders
[23:56:31]
[Step 2/2] INFO: Execute project builders (done) | time=1ms
[23:56:31]
[Step 2/2] INFO: Project key: macos-agent
[23:56:31]
[Step 2/2] INFO: Base dir: /opt/teamcity/work/f22629ddf1359b61
[23:56:31]
[Step 2/2] INFO: Working dir: /opt/teamcity/work/f22629ddf1359b61/.scannerwork
[23:56:31]
[Step 2/2] INFO: Load project settings for component key: 'macos-agent'
[23:56:31]
[Step 2/2] INFO: Load project settings for component key: 'macos-agent' (done) | time=130ms
[23:56:31]
[Step 2/2] INFO: Load project branches
[23:56:31]
[Step 2/2] INFO: Load project branches (done) | time=31ms
[23:56:31]
[Step 2/2] INFO: Load project pull requests
[23:56:31]
[Step 2/2] INFO: Load project pull requests (done) | time=24ms
[23:56:31]
[Step 2/2] INFO: Load branch configuration
[23:56:31]
[Step 2/2] INFO: Load branch configuration (done) | time=2ms
[23:56:31]
[Step 2/2] INFO: Load quality profiles
[23:56:31]
[Step 2/2] INFO: Load quality profiles (done) | time=118ms
[23:56:31]
[Step 2/2] INFO: Load active rules
[23:56:35]
[Step 2/2] INFO: Load active rules (done) | time=3293ms
[23:56:35]
[Step 2/2] INFO: Indexing files...
[23:56:35]
[Step 2/2] INFO: Project configuration:
[23:56:43]
[Step 2/2] INFO: Load project repositories
[23:56:43]
[Step 2/2] INFO: Load project repositories (done) | time=33ms
[23:56:43]
[Step 2/2] INFO: 3563 files indexed
[23:56:43]
[Step 2/2] INFO: 27764 files ignored because of scm ignore settings
[23:56:43]
[Step 2/2] INFO: Quality profile for c: Sonar way
[23:56:43]
[Step 2/2] INFO: Quality profile for cpp: Sonar way
[23:56:43]
[Step 2/2] INFO: Quality profile for cs: Sonar way
[23:56:43]
[Step 2/2] INFO: Quality profile for php: Sonar way
[23:56:43]
[Step 2/2] INFO: Quality profile for py: Sonar way
[23:56:43]
[Step 2/2] INFO: Quality profile for xml: Sonar way
[23:56:43]
[Step 2/2] INFO: ------------- Run sensors on module macos-agent
[23:56:43]
[Step 2/2] INFO: JavaScript/TypeScript frontend is enabled
[23:56:43]
[Step 2/2] INFO: Load metrics repository
[23:56:43]
[Step 2/2] INFO: Load metrics repository (done) | time=39ms
[23:56:45]
[Step 2/2] INFO: Sensor CSS Rules [cssfamily]
[23:56:48]
[Step 2/2] WARN: CSS rules were not executed. Failed to parse Node.js version, got 'Couldn't find the Node.js binary. Ensure you have Node.js installed. Open an issue on https://github.com/sindresorhus/run-node'
[23:56:48]
[Step 2/2] INFO: Sensor CSS Rules [cssfamily] (done) | time=2668ms
[23:56:48]
[Step 2/2] INFO: Sensor C# Project Type Information [csharp]
[23:56:48]
[Step 2/2] INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
[23:56:48]
[Step 2/2] INFO: Sensor C# Properties [csharp]
[23:56:48]
[Step 2/2] INFO: Sensor C# Properties [csharp] (done) | time=1ms
[23:56:48]
[Step 2/2] INFO: Sensor JavaXmlSensor [java]
[23:56:48]
[Step 2/2] INFO: 3 source files to be analyzed
[23:56:48]
[Step 2/2] INFO: 3/3 source files have been analyzed
[23:56:48]
[Step 2/2] INFO: Sensor JavaXmlSensor [java] (done) | time=290ms
[23:56:48]
[Step 2/2] INFO: Sensor HTML [web]
[23:56:48]
[Step 2/2] INFO: Sensor HTML [web] (done) | time=72ms
[23:56:48]
[Step 2/2] INFO: Sensor XML Sensor [xml]
[23:56:48]
[Step 2/2] INFO: 3 source files to be analyzed
[23:56:48]
[Step 2/2] INFO: 3/3 source files have been analyzed
[23:56:48]
[Step 2/2] INFO: Sensor XML Sensor [xml] (done) | time=215ms
[23:56:48]
[Step 2/2] INFO: Sensor VB.NET Project Type Information [vbnet]
[23:56:48]
[Step 2/2] INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=2ms
[23:56:48]
[Step 2/2] INFO: Sensor VB.NET Properties [vbnet]
[23:56:48]
[Step 2/2] INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms
[23:56:48]
[Step 2/2] INFO: Sensor Python Sensor [python]
[23:56:48]
[Step 2/2] INFO: Starting global symbols computation
[23:56:48]
[Step 2/2] INFO: 13 source files to be analyzed
[23:56:54]
[Step 2/2] INFO: 13/13 source files have been analyzed
[23:56:54]
[Step 2/2] INFO: Starting rules execution
[23:56:54]
[Step 2/2] INFO: 13 source files to be analyzed
[23:56:58]
[Step 2/2] INFO: 13/13 source files have been analyzed
[23:56:58]
[Step 2/2] INFO: Sensor Python Sensor [python] (done) | time=9382ms
[23:56:58]
[Step 2/2] INFO: Sensor Cobertura Sensor for Python coverage [python]
[23:56:59]
[Step 2/2] INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=801ms
[23:56:59]
[Step 2/2] INFO: Sensor PythonXUnitSensor [python]
[23:56:59]
[Step 2/2] INFO: Sensor PythonXUnitSensor [python] (done) | time=614ms
[23:56:59]
[Step 2/2] INFO: Sensor JaCoCo XML Report Importer [jacoco]
[23:56:59]
[Step 2/2] INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
[23:56:59]
[Step 2/2] INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
[23:56:59]
[Step 2/2] INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=9ms
[23:56:59]
[Step 2/2] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
[23:56:59]
[Step 2/2] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=4ms
[23:56:59]
[Step 2/2] INFO: Sensor Python HTML templates processing [securitypythonfrontend]
[23:56:59]
[Step 2/2] INFO: HTML files are not indexed : you may want to add them in the scanned files of this project to detect Python XSS vulnerabilities
[23:56:59]
[Step 2/2] INFO: Sensor Python HTML templates processing [securitypythonfrontend] (done) | time=51ms
[23:56:59]
[Step 2/2] INFO: Sensor PHP sensor [php]
[23:56:59]
[Step 2/2] INFO: Starting PHP symbol indexer
[23:56:59]
[Step 2/2] INFO: 13 source files to be analyzed
[23:56:59]
[Step 2/2] INFO: 13/13 source files have been analyzed
[23:56:59]
[Step 2/2] INFO: Starting PHP rules
[23:56:59]
[Step 2/2] INFO: 13 source files to be analyzed
[23:57:00]
[Step 2/2] INFO: 13/13 source files have been analyzed
[23:57:00]
[Step 2/2] INFO: No PHPUnit test report provided (see 'sonar.php.tests.reportPath' property)
[23:57:00]
[Step 2/2] INFO: No PHPUnit coverage reports provided (see 'sonar.php.coverage.reportPaths' property)
[23:57:00]
[Step 2/2] INFO: Sensor PHP sensor [php] (done) | time=1036ms
[23:57:00]
[Step 2/2] INFO: Sensor Analyzer for "php.ini" files [php]
[23:57:00]
[Step 2/2] INFO: Sensor Analyzer for "php.ini" files [php] (done) | time=9ms
[23:57:00]
[Step 2/2] INFO: Sensor CFamily [cpp]
[23:57:00]
[Step 2/2] INFO: CFamily plugin version: 6.20.0.31240
[23:57:00]
[Step 2/2] INFO: Using build-wrapper output: /opt/teamcity/work/f22629ddf1359b61/bw-output/build-wrapper-dump.json
[23:57:00]
[Step 2/2] INFO: Available processors: 2
[23:57:00]
[Step 2/2] WARN: 
[23:57:00]
[Step 2/2] CFamily plugin supports multithreaded analysis:
[23:57:00]
[Step 2/2] 
[23:57:00]
[Step 2/2] * to enable multithreaded analysis
[23:57:00]
[Step 2/2]   please specify the number of threads to use
[23:57:00]
[Step 2/2]   by setting the following property to your analysis:
[23:57:00]
[Step 2/2]   sonar.cfamily.threads=number_of_threads
[23:57:00]
[Step 2/2] 
[23:57:00]
[Step 2/2] * if you do not want to enable multithreading
[23:57:00]
[Step 2/2]   please explicitly disable it
[23:57:00]
[Step 2/2]   by setting the following property to your analysis:
[23:57:00]
[Step 2/2]   sonar.cfamily.threads=1
[23:57:00]
[Step 2/2] 
[23:57:00]
[Step 2/2] * visit the documentation page for more information
[23:57:00]
[Step 2/2]   http://10.12.34.223:9000/documentation/analysis/languages/cfamily/
[23:57:00]
[Step 2/2] 
[23:57:00]
[Step 2/2] INFO: Using 1 thread for analysis according to value of "sonar.cfamily.threads" property.
[23:57:03]
[Step 2/2] WARN: Invalid character encountered in file /opt/teamcity/work/f22629ddf1359b61/Server/mgmt_env/api/tera_mgmt_env_cfg_defs.h at line 78 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
[23:57:07]
[Step 2/2] WARN: Invalid character encountered in file /opt/teamcity/work/f22629ddf1359b61/Agent/WebLayer/BrokerProtocol/test/test_parsing.cpp at line 1130 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
[23:57:07]
[Step 2/2] WARN: Invalid character encountered in file /opt/teamcity/work/f22629ddf1359b61/Agent/WebLayer/src/WebAppPCMConnect.cpp at line 487 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
[23:57:12]
[Step 2/2] WARN: Invalid character encountered in file /opt/teamcity/work/f22629ddf1359b61/Server/Imaging/gen1_img_encoder/src/sw_host_text.cpp at line 253 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
[23:57:13]
[Step 2/2] WARN: 
[23:57:13]
[Step 2/2] CFamily plugin supports incremental analysis with the use of a cache:
[23:57:13]
[Step 2/2] 
[23:57:13]
[Step 2/2] * if you do not want to enable cache
[23:57:13]
[Step 2/2]   please explicitly disable it
[23:57:13]
[Step 2/2]   by setting the following property to your analysis:
[23:57:13]
[Step 2/2]   sonar.cfamily.cache.enabled=false
[23:57:13]
[Step 2/2] 
[23:57:13]
[Step 2/2] * to enable cache please specify the following 2 options:
[23:57:13]
[Step 2/2]   sonar.cfamily.cache.enabled=true
[23:57:13]
[Step 2/2]   sonar.cfamily.cache.path=relative_or_absolute_path_to_cache_location
[23:57:13]
[Step 2/2] 
[23:57:13]
[Step 2/2] * visit the documentation page for more information
[23:57:13]
[Step 2/2]   http://10.12.34.223:9000/documentation/analysis/languages/cfamily/
[23:57:13]
[Step 2/2] 
[23:57:13]
[Step 2/2] INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
[23:57:13]
[Step 2/2] INFO: SE: 0 out of 0
[23:57:13]
[Step 2/2] INFO: Subprocess(es) done in 11ms
[23:57:13]
[Step 2/2] INFO: 0 compilation units analyzed
[23:57:13]
[Step 2/2] INFO: ------------------------------------------------------------------------
[23:57:13]
[Step 2/2] INFO: EXECUTION FAILURE
[23:57:13]
[Step 2/2] INFO: ------------------------------------------------------------------------
[23:57:13]
[Step 2/2] INFO: Total time: 45.024s
[23:57:13]
[Step 2/2] INFO: Final Memory: 134M/454M
[23:57:13]
[Step 2/2] ERROR: Error during SonarScanner execution
[23:57:13]
[Step 2/2] INFO: ------------------------------------------------------------------------
[23:57:13]
[Step 2/2] java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
[23:57:13]
[Step 2/2]   * you are using the latest version of the build-wrapper and the CFamily analyzer
[23:57:13]
[Step 2/2]   * your compiler is supported
[23:57:13]
[Step 2/2]   * you are wrapping your build correctly
[23:57:13]
[Step 2/2]   * you are wrapping a full/clean build
[23:57:13]
[Step 2/2]   * if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process
[23:57:13]
[Step 2/2] 	at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:437)
[23:57:13]
[Step 2/2] 	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:175)
[23:57:13]
[Step 2/2] 	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
[23:57:13]
[Step 2/2] 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
[23:57:13]
[Step 2/2] 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
[23:57:13]
[Step 2/2] 	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
[23:57:13]
[Step 2/2] 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
[23:57:13]
[Step 2/2] 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
[23:57:13]
[Step 2/2] 	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:392)
[23:57:13]
[Step 2/2] 	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:388)
[23:57:13]
[Step 2/2] 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:357)
[23:57:13]
[Step 2/2] 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
[23:57:13]
[Step 2/2] 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
[23:57:13]
[Step 2/2] 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
[23:57:13]
[Step 2/2] 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
[23:57:13]
[Step 2/2] 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
[23:57:13]
[Step 2/2] 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
[23:57:13]
[Step 2/2] 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
[23:57:13]
[Step 2/2] 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
[23:57:13]
[Step 2/2] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[23:57:13]
[Step 2/2] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[23:57:13]
[Step 2/2] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[23:57:13]
[Step 2/2] 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
[23:57:13]
[Step 2/2] 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
[23:57:13]
[Step 2/2] 	at com.sun.proxy.$Proxy0.execute(Unknown Source)
[23:57:13]
[Step 2/2] 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
[23:57:13]
[Step 2/2] 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
[23:57:13]
[Step 2/2] 	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
[23:57:13]
[Step 2/2] 	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
[23:57:13]
[Step 2/2] 	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
[23:57:13]
[Step 2/2] ERROR: 
[23:57:13]
[Step 2/2] ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
[23:57:13]
[Step 2/2] Process exited with code 1
[23:57:13]
[Step 2/2] Process exited with code 1 (Step: Submit for scan (Command Line))
[23:57:13]
[Step 2/2] Step Submit for scan (Command Line) failed

Hello @rbreck ,

Sure, we’ll try to figure this out!
I made a mistake in my previous post, I need the output of the sonar-scanner command with the debug outputs (sonar-scanner -X) to have the information I need.
And while we’re at it, could you also share your sonar-project.properties file?
Thanks

Hi @Amelie, thanks. Our trial is running out tomorrow, so a quick reply would be greatly appreciated and our purchase approval is based on a successful POC.

Here is the content of /opt/sonar-scanner/conf/sonar-scanner.properties:

#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

For the debug output of sonar-scanner, here is the gist of it. I can’t put it all here, but I could DM it to you if that’s possible…

This is the top of it:

[11:01:22]E: Step 2/2: Submit for scan (Command Line) (48s)
[11:01:22]i:	 [Step 2/2] Content of /opt/teamcity/temp/agentTmp/custom_script7163702466293631825 file: 
/opt/sonar-scanner/bin/sonar-scanner -X -Dsonar.projectKey=macos-agent -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.host.url=http://10.12.34.223:9000 -Dsonar.login=*******

[11:01:22] :	 [Step 2/2] Starting: /opt/teamcity/temp/agentTmp/custom_script7163702466293631825
[11:01:22] :	 [Step 2/2] in directory: /opt/teamcity/work/f22629ddf1359b61
[11:01:23] :	 [Step 2/2] 11:01:23.161 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
[11:01:23] :	 [Step 2/2] 11:01:23.165 INFO: Project root configuration file: NONE
[11:01:23] :	 [Step 2/2] 11:01:23.207 INFO: SonarScanner 4.6.2.2472
[11:01:23] :	 [Step 2/2] 11:01:23.207 INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
[11:01:23] :	 [Step 2/2] 11:01:23.207 INFO: Mac OS X 10.15.7 x86_64
[11:01:23] :	 [Step 2/2] 11:01:23.445 DEBUG: keyStore is : 
[11:01:23] :	 [Step 2/2] 11:01:23.445 DEBUG: keyStore type is : pkcs12
[11:01:23] :	 [Step 2/2] 11:01:23.445 DEBUG: keyStore provider is : 
[11:01:23] :	 [Step 2/2] 11:01:23.445 DEBUG: init keystore
[11:01:23] :	 [Step 2/2] 11:01:23.445 DEBUG: init keymanager of type SunX509
[11:01:23] :	 [Step 2/2] 11:01:23.633 DEBUG: Create: /Users/buildbot/.sonar/cache
[11:01:23] :	 [Step 2/2] 11:01:23.635 INFO: User cache: /Users/buildbot/.sonar/cache
[11:01:23] :	 [Step 2/2] 11:01:23.635 DEBUG: Create: /Users/buildbot/.sonar/cache/_tmp
[11:01:23] :	 [Step 2/2] 11:01:23.636 DEBUG: Extract sonar-scanner-api-batch in temp...
[11:01:23] :	 [Step 2/2] 11:01:23.644 DEBUG: Get bootstrap index...
[11:01:23] :	 [Step 2/2] 11:01:23.644 DEBUG: Download: http://10.12.34.223:9000/batch/index
[11:01:23] :	 [Step 2/2] 11:01:23.764 DEBUG: Get bootstrap completed
[11:01:23] :	 [Step 2/2] 11:01:23.769 DEBUG: Create isolated classloader...
[11:01:23] :	 [Step 2/2] 11:01:23.784 DEBUG: Start temp cleaning...
[11:01:23] :	 [Step 2/2] 11:01:23.787 DEBUG: Temp cleaning done
[11:01:23] :	 [Step 2/2] 11:01:23.787 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
[11:01:23] :	 [Step 2/2] 11:01:23.788 INFO: Project root configuration file: NONE
[11:01:23] :	 [Step 2/2] 11:01:23.788 DEBUG: Execution getVersion
[11:01:23] :	 [Step 2/2] 11:01:23.810 INFO: Analyzing on SonarQube server 8.9.0
[11:01:23] :	 [Step 2/2] 11:01:23.810 INFO: Default locale: "en_CA", source code encoding: "UTF-8" (analysis is platform dependent)
[11:01:23] :	 [Step 2/2] 11:01:23.811 DEBUG: Work directory: /opt/teamcity/work/f22629ddf1359b61/.scannerwork
[11:01:23] :	 [Step 2/2] 11:01:23.812 DEBUG: Execution execute
[11:01:24] :	 [Step 2/2] 11:01:24.155 DEBUG: Developer 8.9.0.43852
[11:01:24] :	 [Step 2/2] 11:01:24.367 INFO: Load global settings
[11:01:24] :	 [Step 2/2] 11:01:24.480 DEBUG: GET 200 http://10.12.34.223:9000/api/settings/values.protobuf | time=112ms
[11:01:24] :	 [Step 2/2] 11:01:24.529 INFO: Load global settings (done) | time=162ms
[11:01:24] :	 [Step 2/2] 11:01:24.535 INFO: Server id: BF41A1F2-AXn0aD7lv6SmI4lA6oJH
[11:01:24] :	 [Step 2/2] 11:01:24.537 INFO: User cache: /Users/buildbot/.sonar/cache
[11:01:24] :	 [Step 2/2] 11:01:24.541 INFO: Load/download plugins
[11:01:24] :	 [Step 2/2] 11:01:24.541 INFO: Load plugins index
[11:01:24] :	 [Step 2/2] 11:01:24.597 DEBUG: GET 200 http://10.12.34.223:9000/api/plugins/installed | time=56ms
[11:01:24] :	 [Step 2/2] 11:01:24.644 INFO: Load plugins index (done) | time=103ms
[11:01:24] :	 [Step 2/2] 11:01:24.908 INFO: Load/download plugins (done) | time=367ms
[11:01:25] :	 [Step 2/2] 11:01:25.034 DEBUG: Plugins:
[11:01:25] :	 [Step 2/2] 11:01:25.034 DEBUG:   * CSS Code Quality and Security 1.4.2.2002 (cssfamily)
[11:01:25] :	 [Step 2/2] 11:01:25.034 DEBUG:   * PL/SQL Code Quality and Security 3.6.1.3873 (plsql)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Scala Code Quality and Security 1.8.3.2219 (sonarscala)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * C# Code Quality and Security 8.22.0.31243 (csharp)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Vulnerability Analysis 8.9.0.11439 (security)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Java Code Quality and Security 6.15.1.26025 (java)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * HTML Code Quality and Security 3.4.0.2754 (web)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Flex Code Quality and Security 2.6.1.2564 (flex)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * XML Code Quality and Security 2.2.0.2973 (xml)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * VB.NET Code Quality and Security 8.22.0.31243 (vbnet)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Swift Code Quality and Security 4.3.1.4892 (swift)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * CFamily Code Quality and Security 6.20.0.31240 (cpp)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Python Code Quality and Security 3.4.1.8066 (python)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Go Code Quality and Security 1.8.3.2219 (go)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * JaCoCo 1.1.1.1157 (jacoco)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Kotlin Code Quality and Security 1.8.3.2219 (kotlin)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * T-SQL Code Quality and Security 1.5.1.4340 (tsql)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * JavaScript/TypeScript Code Quality and Security 7.4.2.15501 (javascript)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Ruby Code Quality and Security 1.8.3.2219 (ruby)
[11:01:25] :	 [Step 2/2] 11:01:25.035 DEBUG:   * Vulnerability Rules for C# 8.9.0.11439 (securitycsharpfrontend)
[11:01:25] :	 [Step 2/2] 11:01:25.036 DEBUG:   * Vulnerability Rules for Java 8.9.0.11439 (securityjavafrontend)
[11:01:25] :	 [Step 2/2] 11:01:25.036 DEBUG:   * License for SonarLint 8.9.0.43852 (license)
[11:01:25] :	 [Step 2/2] 11:01:25.036 DEBUG:   * Vulnerability Rules for JS 8.9.0.11439 (securityjsfrontend)
[11:01:25] :	 [Step 2/2] 11:01:25.036 DEBUG:   * Vulnerability Rules for Python 8.9.0.11439 (securitypythonfrontend)
[11:01:25] :	 [Step 2/2] 11:01:25.036 DEBUG:   * PHP Code Quality and Security 3.17.0.7439 (php)
[11:01:25] :	 [Step 2/2] 11:01:25.036 DEBUG:   * ABAP Code Quality and Security 3.9.1.3127 (abap)
[11:01:25] :	 [Step 2/2] 11:01:25.036 DEBUG:   * Vulnerability Rules for PHP 8.9.0.11439 (securityphpfrontend)
[11:01:25] :	 [Step 2/2] 11:01:25.073 INFO: Loaded core extensions: developer-scanner
[11:01:25] :	 [Step 2/2] 11:01:25.095 DEBUG: Installed core extension: developer-scanner
[11:01:25] :	 [Step 2/2] 11:01:25.465 INFO: JavaScript/TypeScript frontend is enabled
[11:01:25] :	 [Step 2/2] 11:01:25.672 INFO: Process project properties
[11:01:25] :	 [Step 2/2] 11:01:25.678 INFO: Process project properties (done) | time=6ms
[11:01:25] :	 [Step 2/2] 11:01:25.678 INFO: Execute project builders
[11:01:25] :	 [Step 2/2] 11:01:25.678 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
[11:01:25] :	 [Step 2/2] 11:01:25.679 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
[11:01:25] :	 [Step 2/2] 11:01:25.679 INFO: Execute project builders (done) | time=1ms
[11:01:25] :	 [Step 2/2] 11:01:25.681 INFO: Project key: macos-agent
[11:01:25] :	 [Step 2/2] 11:01:25.682 INFO: Base dir: /opt/teamcity/work/f22629ddf1359b61
[11:01:25] :	 [Step 2/2] 11:01:25.682 INFO: Working dir: /opt/teamcity/work/f22629ddf1359b61/.scannerwork
[11:01:25] :	 [Step 2/2] 11:01:25.682 DEBUG: Project global encoding: UTF-8, default locale: en_CA
[11:01:25] :	 [Step 2/2] 11:01:25.685 DEBUG: Creating module hierarchy
[11:01:25] :	 [Step 2/2] 11:01:25.685 DEBUG:   Init module 'macos-agent'
[11:01:25] :	 [Step 2/2] 11:01:25.686 DEBUG:     Base dir: /opt/teamcity/work/f22629ddf1359b61
[11:01:25] :	 [Step 2/2] 11:01:25.686 DEBUG:     Working dir: /opt/teamcity/work/f22629ddf1359b61/.scannerwork
[11:01:25] :	 [Step 2/2] 11:01:25.686 DEBUG:     Module global encoding: UTF-8, default locale: en_CA
[11:01:25] :	 [Step 2/2] 11:01:25.844 INFO: Load project settings for component key: 'macos-agent'
[11:01:25] :	 [Step 2/2] 11:01:25.901 DEBUG: GET 200 http://10.12.34.223:9000/api/settings/values.protobuf?component=macos-agent | time=56ms
[11:01:25] :	 [Step 2/2] 11:01:25.902 INFO: Load project settings for component key: 'macos-agent' (done) | time=58ms
[11:01:25] :	 [Step 2/2] 11:01:25.913 INFO: Load project branches
[11:01:25] :	 [Step 2/2] 11:01:25.939 DEBUG: GET 200 http://10.12.34.223:9000/api/project_branches/list?project=macos-agent | time=26ms
[11:01:25] :	 [Step 2/2] 11:01:25.954 INFO: Load project branches (done) | time=41ms
[11:01:25] :	 [Step 2/2] 11:01:25.955 INFO: Load project pull requests
[11:01:25] :	 [Step 2/2] 11:01:25.980 DEBUG: GET 200 http://10.12.34.223:9000/api/project_pull_requests/list?project=macos-agent | time=23ms
[11:01:25] :	 [Step 2/2] 11:01:25.983 INFO: Load project pull requests (done) | time=28ms
[11:01:25] :	 [Step 2/2] 11:01:25.984 INFO: Load branch configuration
[11:01:25] :	 [Step 2/2] 11:01:25.985 INFO: Load branch configuration (done) | time=1ms
[11:01:26] :	 [Step 2/2] 11:01:26.026 DEBUG: Available languages:
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * CSS => "css"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * PL/SQL => "plsql"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Scala => "scala"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * C# => "cs"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Java => "java"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * HTML => "web"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * JSP => "jsp"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Flex => "flex"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * XML => "xml"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * VB.NET => "vbnet"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Swift => "swift"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * C => "c"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * C++ => "cpp"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Objective-C => "objc"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Python => "py"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Go => "go"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Kotlin => "kotlin"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * T-SQL => "tsql"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * JavaScript => "js"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * TypeScript => "ts"
[11:01:26] :	 [Step 2/2] 11:01:26.027 DEBUG:   * Ruby => "ruby"
[11:01:26] :	 [Step 2/2] 11:01:26.028 DEBUG:   * PHP => "php"
[11:01:26] :	 [Step 2/2] 11:01:26.028 DEBUG:   * ABAP => "abap"
[11:01:26] :	 [Step 2/2] 11:01:26.042 INFO: Load quality profiles
[11:01:26] :	 [Step 2/2] 11:01:26.258 DEBUG: GET 200 http://10.12.34.223:9000/api/qualityprofiles/search.protobuf?project=macos-agent | time=212ms
[11:01:26] :	 [Step 2/2] 11:01:26.319 INFO: Load quality profiles (done) | time=277ms
[11:01:26] :	 [Step 2/2] 11:01:26.325 INFO: Load active rules
[11:01:27] :	 [Step 2/2] 11:01:27.344 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aMySv6SmI4lA6szu&ps=500&p=1 | time=1018ms
[11:01:27] :	 [Step 2/2] 11:01:27.631 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aM2kv6SmI4lA6s6a&ps=500&p=1 | time=128ms
[11:01:28] :	 [Step 2/2] 11:01:28.274 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aM5nv6SmI4lA6tBV&ps=500&p=1 | time=640ms
[11:01:28] :	 [Step 2/2] 11:01:28.434 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aM8Uv6SmI4lA6tFo&ps=500&p=1 | time=116ms
[11:01:28] :	 [Step 2/2] 11:01:28.482 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aM-Nv6SmI4lA6tGI&ps=500&p=1 | time=47ms
[11:01:28] :	 [Step 2/2] 11:01:28.554 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aM-Wv6SmI4lA6tHD&ps=500&p=1 | time=71ms
[11:01:28] :	 [Step 2/2] 11:01:28.659 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aM_Zv6SmI4lA6tIk&ps=500&p=1 | time=104ms
[11:01:28] :	 [Step 2/2] 11:01:28.933 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNBZv6SmI4lA6tOq&ps=500&p=1 | time=273ms
[11:01:29] :	 [Step 2/2] 11:01:29.124 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNDtv6SmI4lA6tWO&ps=500&p=1 | time=172ms
[11:01:29] :	 [Step 2/2] 11:01:29.207 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNGKv6SmI4lA6tac&ps=500&p=1 | time=79ms
[11:01:29] :	 [Step 2/2] 11:01:29.374 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNJSv6SmI4lA6thW&ps=500&p=1 | time=166ms
[11:01:29] :	 [Step 2/2] 11:01:29.442 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNHnv6SmI4lA6tcb&ps=500&p=1 | time=65ms
[11:01:29] :	 [Step 2/2] 11:01:29.661 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNL4v6SmI4lA6tr9&ps=500&p=1 | time=217ms
[11:01:30] :	 [Step 2/2] 11:01:30.058 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNQEv6SmI4lA6t_F&ps=500&p=1 | time=379ms
[11:01:30] :	 [Step 2/2] 11:01:30.154 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNTOv6SmI4lA6uHT&ps=500&p=1 | time=59ms
[11:01:30] :	 [Step 2/2] 11:01:30.225 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNVOv6SmI4lA6uJ7&ps=500&p=1 | time=70ms
[11:01:30] :	 [Step 2/2] 11:01:30.277 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNUIv6SmI4lA6uIJ&ps=500&p=1 | time=51ms
[11:01:30] :	 [Step 2/2] 11:01:30.421 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNW2v6SmI4lA6uPd&ps=500&p=1 | time=142ms
[11:01:30] :	 [Step 2/2] 11:01:30.551 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNbev6SmI4lA6uYL&ps=500&p=1 | time=127ms
[11:01:30] :	 [Step 2/2] 11:01:30.660 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNdKv6SmI4lA6ucR&ps=500&p=1 | time=107ms
[11:01:30] :	 [Step 2/2] 11:01:30.951 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNg9v6SmI4lA6ur0&ps=500&p=1 | time=290ms
[11:01:31] :	 [Step 2/2] 11:01:31.089 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNjIv6SmI4lA6uxQ&ps=500&p=1 | time=119ms
[11:01:31] :	 [Step 2/2] 11:01:31.257 DEBUG: GET 200 http://10.12.34.223:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXn0aNekv6SmI4lA6uio&ps=500&p=1 | time=166ms
[11:01:31] :	 [Step 2/2] 11:01:31.276 INFO: Load active rules (done) | time=4951ms
[11:01:31] :	 [Step 2/2] 11:01:31.397 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss
[11:01:31] :	 [Step 2/2] 11:01:31.397 DEBUG: Declared extensions of language PL/SQL were converted to sonar.lang.patterns.plsql : **/*.sql,**/*.pks,**/*.pkb
[11:01:31] :	 [Step 2/2] 11:01:31.397 DEBUG: Declared extensions of language Scala were converted to sonar.lang.patterns.scala : **/*.scala
[11:01:31] :	 [Step 2/2] 11:01:31.397 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
[11:01:31] :	 [Step 2/2] 11:01:31.397 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
[11:01:31] :	 [Step 2/2] 11:01:31.397 DEBUG: Declared extensions of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language Swift were converted to sonar.lang.patterns.swift : **/*.swift
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language C were converted to sonar.lang.patterns.c : **/*.c,**/*.h
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language C++ were converted to sonar.lang.patterns.cpp : **/*.cc,**/*.cpp,**/*.cxx,**/*.c++,**/*.hh,**/*.hpp,**/*.hxx,**/*.h++,**/*.ipp
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language Objective-C were converted to sonar.lang.patterns.objc : **/*.m
[11:01:31] :	 [Step 2/2] 11:01:31.398 DEBUG: Declared extensions of language Python were converted to sonar.lang.patterns.py : **/*.py
[11:01:31] :	 [Step 2/2] 11:01:31.399 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
[11:01:31] :	 [Step 2/2] 11:01:31.399 DEBUG: Declared extensions of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt
[11:01:31] :	 [Step 2/2] 11:01:31.399 DEBUG: Declared extensions of language T-SQL were converted to sonar.lang.patterns.tsql : **/*.tsql
[11:01:31] :	 [Step 2/2] 11:01:31.399 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.mjs,**/*.vue
[11:01:31] :	 [Step 2/2] 11:01:31.399 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx
[11:01:31] :	 [Step 2/2] 11:01:31.399 DEBUG: Declared extensions of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb
[11:01:31] :	 [Step 2/2] 11:01:31.399 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
[11:01:31] :	 [Step 2/2] 11:01:31.399 DEBUG: Declared extensions of language ABAP were converted to sonar.lang.patterns.abap : **/*.abap,**/*.ab4,**/*.flow,**/*.asprog
[11:01:31] :	 [Step 2/2] 11:01:31.400 DEBUG: Will ignore generated code
[11:01:31] :	 [Step 2/2] 11:01:31.401 DEBUG: Will ignore generated code
[11:01:31] :	 [Step 2/2] 11:01:31.403 INFO: Indexing files...
[11:01:31] :	 [Step 2/2] 11:01:31.403 INFO: Project configuration:
[11:01:31] :	 [Step 2/2] 11:01:31.456 DEBUG: loading config FileBasedConfig[/Users/buildbot/.config/jgit/config]
[11:01:31] :	 [Step 2/2] 11:01:31.458 DEBUG: readpipe [bash, --login, -c, which git],/Users/buildbot
[11:01:31] :	 [Step 2/2] 11:01:31.521 DEBUG: readpipe may return '/usr/bin/git'
[11:01:31] :	 [Step 2/2] 11:01:31.524 DEBUG: remaining output:
[11:01:31] :	 [Step 2/2] 
[11:01:31] :	 [Step 2/2] 11:01:31.524 DEBUG: readpipe [xcode-select, -p],/Users/buildbot
[11:01:31] :	 [Step 2/2] 11:01:31.536 DEBUG: readpipe may return '/Applications/Xcode-12.app/Contents/Developer'
[11:01:31] :	 [Step 2/2] 11:01:31.536 DEBUG: remaining output:
[11:01:31] :	 [Step 2/2] 
[11:01:31] :	 [Step 2/2] 11:01:31.536 DEBUG: readpipe [/usr/bin/git, --version],/usr/bin
[11:01:31] :	 [Step 2/2] 11:01:31.575 DEBUG: readpipe may return 'git version 2.24.3 (Apple Git-128)'
[11:01:31] :	 [Step 2/2] 11:01:31.575 DEBUG: remaining output:
[11:01:31] :	 [Step 2/2] 
[11:01:31] :	 [Step 2/2] 11:01:31.576 DEBUG: readpipe [/usr/bin/git, config, --system, --edit],/usr/bin
[11:01:31] :	 [Step 2/2] 11:01:31.598 DEBUG: readpipe may return '/private/etc/gitconfig'
[11:01:31] :	 [Step 2/2] 11:01:31.598 DEBUG: remaining output:
[11:01:31] :	 [Step 2/2] 
[11:01:31] :	 [Step 2/2] 11:01:31.609 DEBUG: loading config FileBasedConfig[/private/etc/gitconfig]
[11:01:31] :	 [Step 2/2] 11:01:31.609 DEBUG: loading config FileBasedConfig[/Users/buildbot/.gitconfig]
[11:01:32] :	 [Step 2/2] 11:01:32.403 DEBUG: 3629 non excluded files in this Git repository

It then indexes all our files - many c++ files say “is excluded by the scm ignore settings.”, but some say “indexed with language ‘cpp’” or “indexed with language ‘c’”. I’d rather not post a list of all our build files publicly, but could DM you some specifics if needed…

That’s a good sign that “cpp” and “c” files are indexed. I sent you a PM to send me the rest of the output.

Can you confirm that you launch the analysis after a clean build?

Could you try using "Unix Makefiles" instead of Xcode ..?
i.e.

mkdir build
cd build
cmake -G "Unix Makefiles" ..
cd ..
build-wrapper-macosx-x86 --out-dir bw-output cmake --build build/ --config Debug

And this still does not work, please share the new generated files (build-wrapper and logs)

Hello Amelie and Nathan,

I’d love to keep troubleshooting this to get it working. Is it possible to have our trial extended while sorting this out? There seems to be a time difference between me (PST) and support, so we’re only able to do one reply per day which is not very efficient.

Thanks,
Robb

Thanks Amelie! That works!

Hi @rbreck ,

glad that cmake -G "Unix Makefiles" .. got it working.

My guess is that cmake --build ..... with Xcode type project invokes xcodebuild as:

Fri May 21 15:34:24 2021: argv[0]: </usr/bin/xcodebuild>
Fri May 21 15:34:24 2021: argv[1]: <-project>
Fri May 21 15:34:24 2021: argv[2]: <agents.xcodeproj>
Fri May 21 15:34:24 2021: argv[3]: <build>
Fri May 21 15:34:24 2021: argv[4]: <-target>
Fri May 21 15:34:24 2021: argv[5]: <ALL_BUILD>
Fri May 21 15:34:24 2021: argv[6]: <-parallelizeTargets>
Fri May 21 15:34:24 2021: argv[7]: <-configuration>
Fri May 21 15:34:24 2021: argv[8]: <Debug>

I suspect that -parallelizeTargets is the culprit. Could you try the following to confirm my guess:

mkdir build
cd build
cmake -G Xcode ..
build-wrapper-macosx-x86 --out-dir bw-output xcodebuild -project agents.xcodeproj build -target ALL_BUILD -configuration Debug

@mpaladin, your build command didn’t work - build-wrapper-dump.json still ends up empty.

Hi @rbreck ,

are you getting the same locally or just in CI? Would you have a small reproducer project to share which results in an empty build-wrapper-dump.json when used with Xcode generator?

Hi Massimo,
Running the cmake commands from a shell has the same result. Unfortunately I can’t share this project, but we’re happy with the results using Unix Makefiles.

Thanks.

Hi @rbreck,

I understand that, could you create a small reduced reproducer project?

Hi Massimo, our trial has ended, but we did get POV from the UnixMakefiles way. If we purchase we’ll no doubt want to get xcode working, so we can pick it up then…

Cheers,
Robb

Hi @rbreck ,

ok, thank you for the update.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.