sonar-objective-c
sonar-objective-c copied to clipboard
OClint error code 245
Hi, I am getting error while running the analysis on one of our project using ./run-sonar.sh. The analysis is crashing at OCLint and exiting with error code 245. I had checked on OCLint and there seems to be no such error code for failure. Does OCLint have limit to the number of issues after which it stops the execution. Also this does not create any reports in Sonar Qube. For few of the projects report is getting generated in Sonar Qube.
Running OCLint... Path included in oclint analysis is: --include .*/abc/Test
- oclint-json-compilation-database --include ../abc/Test -- -max-priority-1 100000 -max-priority-2 100000 -max-priority-3 100000 -report-type pmd -o sonar-reports/oclint.xml
- returnValue=245
- set +x ERROR - Command 'oclint-json-compilation-database --include ../abc/Test -- -max-priority-1 100000 -max-priority-2 100000 -max-priority-3 100000 -report-type pmd -o sonar-reports/oclint.xml' failed with error code: 245
Please help me in resolving this.
Has anyone encountered such issue?
Hi quantumarun - I've been seeing this too but have no leads yet on why oclint-json-compilation-database returns a 245.
Hi, include FileSearch.java, ObjectiveCStartup.java inside
/src/main/java/org/sonar/plugins/objectivec/
https://github.com/sarang1991/Sonar-Objective-C-plugin/blob/master/src/main/java/org/sonar/plugins/objectivec/FileSearch.java
https://github.com/sarang1991/Sonar-Objective-C-plugin/blob/master/src/main/java/org/sonar/plugins/objectivec/ObjectiveCStartup.java
Hi Sarang, Thanks for your comment. It seems ObjectiveCStartup.java is missing.
Updated..sorry ;)
Thanks let me try with these steps.
Sarang, There is no objecive-c folder under sonarqube plugin's
here is my Sonarqube directory structure:
no brother..it is visible in git repo, after cloning
https://github.com/octo-technology/sonar-objective-c.git
I am not using git, i have directly downloaded the jar file from http://bit.ly/18A7OkE. How to use above files then.
create a new account first..then try...no other solution to get i think.
I don't see the the files at below Git repo: https://github.com/octo-technology/sonar-objective-c.git
Also at below repo: https://github.com/sarang1991/Sonar-Objective-C-plugin How will i get the jar file generated.
https://github.com/octo-technology/sonar-objective-c.git goto this link...clone the project.open in any java IDE,copy above files to the directory specified..and mavan install.you wil get a jar file on Target folder inside project dir.copy and paste jar file to sonar plugin directory.
Hi, I was able to generate the Jar from above instructions and it worked of one of my project but still for other project it throws the same error. Any help in fixing this
.... Skipping tests as no test scheme has been provided! Running OCLint... Path included in oclint analysis is: --include .*/abc/Test
- oclint-json-compilation-database --include ../abc/Test -- -max-priority-1 100000 -max-priority-2 100000 -max-priority-3 100000 -report-type pmd -o sonar-reports/oclint.xml
- returnValue=245
- set +x ERROR - Command 'oclint-json-compilation-database --include ../abc/Test -- -max-priority-1 100000 -max-priority-2 100000 -max-priority-3 100000 -report-type pmd -o sonar-reports/oclint.xml' failed with error code: 245
What error you are getting ??? file not found or something else ??? U should modify sonar-project.properties in your sonar based on the format specified inside sonar-objective-c/sample/
error code 245. sonar-project.properties file seems fine.
Do check your Quality profile tab in sonarqube main window..and make sure that under Objective-C Profiles there is OCLint.otherwise add it, and your database connectivity.
OCLint is there in the profiles tab. Also i am using Embedded Database if that can help. Check the bottom of the image.
same error code, after rebuild jar package