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

[BUG] Incorrect references in devicon.json #1502

Open
1 task done
lunatic-fox opened this issue Nov 6, 2022 · 6 comments
Open
1 task done

[BUG] Incorrect references in devicon.json #1502

lunatic-fox opened this issue Nov 6, 2022 · 6 comments
Labels
bug Use this label for pointing out bugs

Comments

@lunatic-fox
Copy link
Contributor

I have searched through the issues and didn't find my problem.

  • Confirm

Bug description

In devicon.json some entry objects are with incorrect references in versions.svg[] or aliases[].

Example in heroku entry

  • [ x ] SVG array equals SVG files
{
    "svg": [
        "original",
        "original wordmark",
        "plain",
        "plain-wordmark"
    ],
    "font": [
        "original",
        "original wordmark",
        "plain",
        "plain-wordmark",
        "line",
        "line-wordmark"
    ]
}

All detailed information are wrapped in this gist.

Possible fixes or solutions

It's possible to create a program to fix the entire file or make separated PRs to fix each entry.

Additional information

No response

@lunatic-fox lunatic-fox added the bug Use this label for pointing out bugs label Nov 6, 2022
@Snailedlt
Copy link
Collaborator

I don't understand this issue. Could you rephrase?

@Snailedlt
Copy link
Collaborator

Ohh right, so this is infact multiple issues with devicon.json right? font contains more icons than svg. Duplicate tags, missing attributes, etc?

@lunatic-fox
Copy link
Contributor Author

Updated and re-writed in Python analyzer: gist

By doing that, one idea came to my mind: maybe we can lint error messages as "yml", that way we have some highlights text, which seems to be good. 🙂

@ConX
Copy link
Contributor

ConX commented Jan 6, 2023

@lunatic-fox I was about to submit an issue for the same problem, but I had only found the codepen and heroku aliases when attempting to build the develop branch.

I think that it would be best to modify your script to make the necessary changes and apply them to the develop branch in a new PR. Additionally, your script should become part of the actions that run when a new-icon/update-icon PR is made.

If you and @Snailedlt agree, I can work during the weekend on either of those.

@Snailedlt
Copy link
Collaborator

@ConX Sounds like a good idea to make the changes in a new PR.

I think that it would be best to modify your script to make the necessary changes and apply them to the develop branch in a new PR.

Good idea! I think it would be better to do the changes in a separate script though. That way we can have one script for analyzing the errors, and another (which uses the analyzer script) to make the necessary changes.

Additionally, your script should become part of the actions that run when a new-icon/update-icon PR is made.

Agreed, that would be this workflow I think: https://github.com/devicons/devicon/blob/1119b9f84c0290e0f0b38982099a2bd027a48bf1/.github/workflows/build_icons.yml

@ConX
Copy link
Contributor

ConX commented Jan 9, 2023

@Snailedlt I just submitted a PR (#1623) which is based on this script by @lunatic-fox. Let me know what you think about it.

@Panquesito7 Panquesito7 linked a pull request Feb 8, 2023 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Use this label for pointing out bugs
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants