No log output and exit code 245

953 views
Skip to first unread message

Felipe Cypriano

unread,
Apr 10, 2014, 9:35:29 PM4/10/14
to oclint...@googlegroups.com
Hello,

I'm trying to find out why OCLint is exiting with exit code 245 but I can't execute it in debug mode:

$ oclint-json-compilation-database -e /Pods/ -- -enable-clang-static-analyzer -report-type pmd -o oclint.xml
$ echo $?
245

$ oclint-json-compilation-database --debug -e /Pods/ -- -enable-clang-static-analyzer -report-type pmd -o oclint.xml
oclint: Unknown command line argument '-debug'.  Try: '/usr/local/bin/oclint -help'
oclint: Did you mean '-help'?

I'm using oclint 0.8-rc1. Can anyone help me with tips on how to debug this? Is there a verbose mode?

Felipe Cypriano

unread,
Apr 11, 2014, 3:27:36 PM4/11/14
to oclint...@googlegroups.com
And I have a clue. I download version 0.9 (which is confusing is 0.8 the current in development or 0.9?) and the --debug option worked. The execution halts while executing clang static analyzer, after all Compiling/Analyzing have succeeded:

// ... a log previous logs
Analyzing NotificationBadge.m - Done
Clang Static Analyzer UIImageView+RetriableFetch.m - Done
Clang Static Analyzer AppDelegate.m%

I have no idea what the "%" means. Also when I execute Product/Analyze in Xcode it works. If I remove -enable-clang-static-analyzer the execution finishes with exit code zero in both 0.8rc1 and 0.9.dev.6a4451b.

So how can I get more information about the problem? I don't want to have the static analyzer disabled as a solution.

Elango Karunamoorthy

unread,
Feb 24, 2015, 6:33:31 PM2/24/15
to oclint...@googlegroups.com
Do we have any update on this issue ?
I am getting the same error code in below line ?
ERROR - Command 'oclint-json-compilation-database --include .*/app/Classes.* -- -report-type pmd -o sonar-reports/oclint.xml' failed with error code: 245

Thanks,
Elango Karunamoorthy

Ignacio Calderon

unread,
Apr 30, 2015, 4:55:03 AM4/30/15
to oclint...@googlegroups.com
Hi, i have the same issue with 0.8.1. The oclint crashes on MAC, hence the error.
oclint_2015-04-30-104530_backbases-MacBook-Pro-7.log
Reply all
Reply to author
Forward
0 new messages