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

Detect wrong language (CSS instead C#) #4353

Closed
4 tasks done
ngohungphuc opened this issue Dec 14, 2018 · 5 comments
Closed
4 tasks done

Detect wrong language (CSS instead C#) #4353

ngohungphuc opened this issue Dec 14, 2018 · 5 comments

Comments

@ngohungphuc
Copy link

Preliminary Steps

Please confirm you have...

Problem Description

Hi team. Currently my project is detect wrong language.
Basically my github repo is C# project but in the graph show css and when I click on css link
https://github.com/Awesome-CMS-Core/Awesome-CMS-Core/search?l=css
I cant find any css file ?
Any idea to fix this.
Best regards.

chrome_tegckignyd

URL of the affected repository:

https://github.com/Awesome-CMS-Core/Awesome-CMS-Core/search?l=css

Last modified on:

Expected language:

C#

Detected language:

CSS

@lildude
Copy link
Member

lildude commented Dec 14, 2018

This is a result of the language grouping Linguist does that search doesn't. SCSS is grouped under CSS
https://github.com/github/linguist/blob/fa493000a594f5fbd457bbd473ce791d95b227cc/lib/linguist/languages.yml#L4262-L4265 and your repo has a lot of SCSS files and their total bytes of code exceed everything else in your repo, hence the CSS classification as the most prominent language in your repo.

@lildude
Copy link
Member

lildude commented Dec 14, 2018

And looking at the override you've implemented, looks like you worked this out for yourself too 😁 (though you seem to have included lines from your shell in the file too). Just be warned that your SCSS syntax highlighting is going to be a bit of a mess as you've marked those files as C# so that grammar will be used to highlight the files.

@Alhadis
Copy link
Collaborator

Alhadis commented Dec 14, 2018

This is a result of the language grouping Linguist does that search doesn't. SCSS is grouped under CSS

All the more reason to separate it. 😉

@ngohungphuc
Copy link
Author

@lildude yep I just make small work around

@Alhadis
Copy link
Collaborator

Alhadis commented Dec 14, 2018

Good to see you've got things fixed! 😀

Since this issue appears resolved, I'm going to close it. Feel free to speak up if you encounter further difficulties. 👍

@Alhadis Alhadis closed this as completed Dec 14, 2018
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants