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

Cannot open gitlog cc.json file including authors #3893

Open
ce-bo opened this issue Jan 24, 2025 · 1 comment
Open

Cannot open gitlog cc.json file including authors #3893

ce-bo opened this issue Jan 24, 2025 · 1 comment
Labels
bug Only issues that describe bugs.

Comments

@ce-bo
Copy link
Collaborator

ce-bo commented Jan 24, 2025

Bug

Expected Behavior

WHEN
parsing a code base with interactive ccsh command (selecting gitlog parser and others)

THEN
I can load the generated and unmerged gitlog file in the codecharta-visualization successfully

Actual Behavior

loading fails with error messages "authors should be a number" (see screenshot)

Screenshots

Image

Steps to Reproduce the Problem

  1. run ccsh
  2. pick metric gardener, rawtext and gitlog parser
  3. configure parsers ans execute them
  4. do not merge the individual cc.jsons
  5. upload to visualization

Specifications

  • is released in online-demo: yes | no
  • CodeCharta Version: ccsh 1.130.0 + web demo from 23.01.2025
  • OS: Windows
  • Browser: -
@ce-bo ce-bo added the bug Only issues that describe bugs. label Jan 24, 2025
@ce-bo
Copy link
Collaborator Author

ce-bo commented Jan 24, 2025

This is an example of my broken cc.json (I added the //-comment to visualize that the special char is an ö):

{
                        "attributes": {
                            "age_in_weeks": 7,
                            "authors": [
                                "Horst L\u00f6er", // Aslan Löwe
                                "Vorname Nachname",
                                "WindowsDomain\\UserName",
                            ],
                            "highly_coupled_files": 0,
                            "median_coupled_files": 2.0,
                            "number_of_authors": 6,
                            "number_of_commits": 25,
                            "number_of_renames": 0,
                            "range_of_weeks_with_commits": 28,
                            "weeks_with_commits": 11
                        },
                        "children": [
                        ],
                        "link": "",
                        "name": ".gitignore",
                        "type": "File"
                    },

@ce-bo ce-bo changed the title Cannot open freshly generated gitlog cc.json file including authors Cannot open gitlog cc.json file including authors Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Only issues that describe bugs.
Projects
None yet
Development

No branches or pull requests

1 participant