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

Parsing error #58

Open
Meffi42 opened this issue Sep 13, 2018 · 2 comments
Open

Parsing error #58

Meffi42 opened this issue Sep 13, 2018 · 2 comments

Comments

@Meffi42
Copy link

Meffi42 commented Sep 13, 2018

I am analyzing wikimedia/mediawiki with code-maat.

I seem to be getting parsing errors for the commit messages:

java -Xmx512M -Xms64M -jar \winmaat0.8.5\code-maat-0.8.5-standalone.jar -l ../mediawiki/maat_evo.log -c git -a summary
Invalid argument: input: [ebbf38d2ab] Antoine Musso 2010-10-29 Follow up r75682 : fix private function naming. Fix cruise control build 2010-10-29T22:18:27
3 3 maintenance/tests/phpunit/includes/UserIsValidEmailAddrTest.php
, reason: Parse error at line 1, column 122:
[ebbf38d2ab] Antoine Musso 2010-10-29 Follow up r75682 : fix private function naming. Fix cruise control build 2010-10-29T22:18:27

When I manually fix this comment, I run into the next parsing error:

java -Xmx512M -Xms64M -jar \winmaat0.8.5\code-maat-0.8.5-standalone.jar -l ../mediawiki/maat_evo.log -c git -a summary
Invalid argument: input: [c7723263fc] Niklas Laxstr▒m 2010-08-08 Removed $wgUseZhdaemon, $wgZhdaemonHost and $wgZhdaemonPort. Apparently unused since r6878 at 2004-12-29.

It would be nice if code-maat would be more robust in parsing comments.

@adamtornhill
Copy link
Owner

@Meffi42 , thanks for reporting this. I suspect that it's due to the dates included in the commit messages.

Code Maat supports a second log format that is more robust: git log --all --numstat --date=short --pretty=format:'--%h--%ad--%aN' --no-renames

Logs on this format have to be parsed using the -c git2 parse option in Code Maat.

@SergiiVolodkoWorking
Copy link

SergiiVolodkoWorking commented Feb 9, 2022

Hi,
I'm trying to run the tool as in Readme:
image

But receive this error:
image

Tried various combinations, but got the same error

  • legacy git format for the logs and -c git for run
  • log format from here:
    ;;; git log --all -M -C --numstat --date=short --pretty=format:'--%h--%cd--%cn'
  • different paths to code-maat: <path_to_projects>/code-maat/src/code_maat:/data and <path_to_projects>/code-maat:/data

Not sure what I'm doing wrong, could someone please help?

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

3 participants