Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OClint error code 245 #94

Open
quantumarun opened this issue Sep 30, 2015 · 18 comments
Open

OClint error code 245 #94

quantumarun opened this issue Sep 30, 2015 · 18 comments

Comments

@quantumarun
Copy link

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.

@quantumarun
Copy link
Author

Has anyone encountered such issue?

@smacgregor
Copy link

Hi quantumarun - I've been seeing this too but have no leads yet on why oclint-json-compilation-database returns a 245.

@quantumarun
Copy link
Author

Hi Sarang,
Thanks for your comment. It seems ObjectiveCStartup.java is missing.

@sarang1991
Copy link

Updated..sorry ;)

@quantumarun
Copy link
Author

Thanks let me try with these steps.

@quantumarun
Copy link
Author

Sarang,
There is no objecive-c folder under sonarqube plugin's

here is my Sonarqube directory structure:
image

@sarang1991
Copy link

no brother..it is visible in git repo, after cloning

https://github.com/octo-technology/sonar-objective-c.git

@quantumarun
Copy link
Author

I am not using git, i have directly downloaded the jar file from http://bit.ly/18A7OkE. How to use above files then.

@sarang1991
Copy link

create a new account first..then try...no other solution to get i think.

@quantumarun
Copy link
Author

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.

@sarang1991
Copy link

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.

@quantumarun
Copy link
Author

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

@sarang1991
Copy link

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/

@quantumarun
Copy link
Author

error code 245.
sonar-project.properties file seems fine.

@sarang1991
Copy link

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.

@quantumarun
Copy link
Author

OCLint is there in the profiles tab.
Also i am using Embedded Database if that can help. Check the bottom of the image.

image

@galenzhao
Copy link

same error code,
after rebuild jar package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants