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 blame fails on invalid row #12

Open
juho-turunen-tampuuri opened this issue Nov 21, 2019 · 0 comments
Open

Parsing blame fails on invalid row #12

juho-turunen-tampuuri opened this issue Nov 21, 2019 · 0 comments

Comments

@juho-turunen-tampuuri
Copy link

For some reason for on of our repositories hg blame produces a row without any user or changeset infromation. Sonar-scm-mercurial fails on this row and throws away the whole analysis.

This might be a problem with mercurial but I would still prefer that such errors would be skipped and the analysis and available scm information sent to SonarQube server.

The offending part of blame output seems to be this. Notice the line with single curly brace

                               user1 1a25faa8b304 Tue Apr 17 07:26:46 2007 +0000: 
                               user1 1a25faa8b304 Tue Apr 17 07:26:46 2007 +0000: 
        }
                               user1 05f2b7762edd Thu May 03 10:21:02 2007 +0000: 
                               user2 75e1d843f817 Thu Jan 06 09:19:35 2011 +0000:         function toggleVisibilityHak2() {

Error we've got is this

[17:55:33]
[Step 1/1] INFO: EXECUTION FAILURE
[17:55:33]
[Step 1/1] INFO: ------------------------------------------------------------------------
[17:55:33]
[Step 1/1] INFO: Total time: 42.594s
[17:55:34]
[Step 1/1] ERROR: Error during SonarQube Scanner execution
[17:55:34]
[Step 1/1] INFO: Final Memory: 25M/132M
[17:55:34]
[Step 1/1] INFO: ------------------------------------------------------------------------
[17:55:34]
[Step 1/1] ERROR: Error inside stdOut stream [command: hg blame -w -v --user --date --changeset Sivut/General/LahetyksenEsikatselu.aspx]
[17:55:34]
[Step 1/1] ERROR: Caused by: Unable to blame file path/to/file.aspx. Unrecognized blame info at line 76: }
[17:55:34]
[Step 1/1] ERROR: 
[17:55:34]
[Step 1/1] The SonarQube Scanner did not complete successfully
[17:55:34]
[Step 1/1] 17:55:34.478  Post-processing failed. Exit code: 1
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

1 participant