-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Languages plugin with empty result #513
Comments
Copying the relevent comments:
|
Seems to be an independent issue, Nixinova/Nixinova@d3719c3 was generated with e3cd805 (Aug 26) which was working prior. |
Also typo in issue title: 'Langage' |
Now crashes with |
The latter seems to be caused because of how paths were reported (not sure whether it's git or linguist which changed), but one was absolute and the other relative to the repository. Also on windows the paths used partially
This was introduced because of #517, but should be fix now 👍 |
Still getting this issue: https://github.com/Milo123459/Milo123459/runs/3527913159?check_suite_focus=true I had 18 emails.. 😆 |
I've got a fix for that crash coming up |
Woo! Can't wait. Currently had to switch to |
The PR seems to doesn't resolve the problem :
|
Is this now fixed? |
@Milo123459 not sure ... on my side it doesn't crash ... But "locale" part is now totally empty ... ( https://gist.githubusercontent.com/thib3113/83a96e16f8bca103f1b0e376186c66ec/raw/github-metrics.svg ) |
@Milo123459 @thib3113 Currently only the crash issue has been fixed, but the initial issue is remaining I debugged a bit and it seems to come from here: metrics/source/plugins/languages/analyzers.mjs Lines 142 to 144 in af8c476
I'm not sure but I think it's an issue with linguist. Seems that despite the repository path is correctly given (in this case
Seems that only the first repository can be correctly processed. Languages results may still be empty if the first repository processed contains only The error thrown by linguist-js seems to be have fixed in 2.0.2 but it's weird that it is looking for a file of a separate repository 🤔 |
The lstat issue is Nixinova/LinguistJS#4 but I'm not sure why it would be looking in a different directory. I'd have to have the full linguist-js output to know. |
Upgrading to linguist latest version seems to have fixed it 👍 |
Ref: #511
Seems in some case the languages plugin returns an empty result
Need to investigate
The text was updated successfully, but these errors were encountered: