Troubleshooting: Divergence between Linguist and Github Code Search (go-enry) #6408
Closed
DecimalTurn
started this conversation in
General
Replies: 1 comment
-
Addressed here : #6468 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think there should be at least a mention in the Troubleshooting page that go-enry doesn't support linguist-language overrides in the
.gitattributes.
I know that I was confused about this multiple times until I discovered that in the list of divergences.
It's especially weird when you click on a language featured in the language stats bar and code search tells you there is no files with that language in the project 😕
For example, if you go to the Fortran stdlib repo, the language breakdown tells you it's mostly Fortran, but when you click on it, code search tells you that no Fortran files are found.
![image](https://private-user-images.githubusercontent.com/31558169/237262244-e9f10b49-a51b-4c92-91db-d84ac42888f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5MzYyNTIsIm5iZiI6MTcyNTkzNTk1MiwicGF0aCI6Ii8zMTU1ODE2OS8yMzcyNjIyNDQtZTlmMTBiNDktYTUxYi00YzkyLTkxZGItZDg0YWM0Mjg4OGYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDAyMzkxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlkZjVmMTM2MjE1ZTAwMzFmODExODdjZjYzZjYwYWE5NDk4ZDllYjI0ZDc5YjAyZDAzN2ZmNGQ5Njc3NjNjZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.IiNn3X8emTOsZoWqaQO0WV1S8f7z2iOIJlDiy3beUQc)
And all that is because all the Fortran code uses the .fypp extension override in
.gitattributes
:*.fypp linguist-language=fortran
Perhaps, this is just a case where the extension should be properly added to Linguist, but there is a lot of cases where the override in the
.gitattributes
file is the only option and this can lead to some confusion.@Alhadis suggested to make this a seperate section:
Any thoughts?
NB: The dicussion on this started here: #6365 (comment) , but it's probably better to have a discussion like this in the discussion section.
Beta Was this translation helpful? Give feedback.
All reactions