-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 no longer works #424
Comments
Hello, It could come from the linguist release since the docker file is not version fixed, but the @main branch didn't got any docker image rebuild so it should have retained the previous version I'll investigate later today, thanks for reporting |
Spammed with the following as the second debug statement:
First debug is showing that the commit data is being fetched:// line 2551
// #424 DEBUG: [
//
[
{
sha: '274d05e67e8ca9fbca75ba3c0e02f52bad2a9804',
filename: 'lib/linguist/languages.yml',
status: 'modified',
additions: 1,
deletions: 0,
changes: 1,
blob_url: 'https://github.com/Nixinova/fork_linguist/blob/d49b21cd977093a3359f37b976e039e270d085a4/lib/linguist/languages.yml',
raw_url: 'https://github.com/Nixinova/fork_linguist/raw/d49b21cd977093a3359f37b976e039e270d085a4/lib/linguist/languages.yml',
contents_url: 'https://api.github.com/repos/Nixinova/fork_linguist/contents/lib/linguist/languages.yml?ref=d49b21cd977093a3359f37b976e039e270d085a4',
patch: '@@ -6345,6 +6345,7 @@ Wget Config:\n' +
' language_id: 668457123\n' +
' Wikitext:\n' +
' type: prose\n' +
'+ color: "#fc5757"\n' +
' wrap: true\n' +
' aliases:\n' +
' - mediawiki'
}
]
// line 13036
// ... 16 more items
// ] |
Ah, I think may have I found the problem
await imports.run("github-linguist --json", {cwd:path}, {log:false}))).flatMap(([lang, files]) => //... Linguist 7.16 did overhaul the output of
|
Thanks, greatly appreciate the help for debug 👍 Maybe it would be a good time to try to switch to Nixinova/Linguist and have a full JS implementation of linguist ? |
Yeah, I'll prioritise developing my Linguist further; currently it doesn't check gitignore or heuristics but I'll add those for v1.3. |
Ok, I'll try to rollback on previous linguist version in the meantime to try fix this issue as it's pretty big |
Rollback to 7.15 worked, you can remove the two debug statements. |
Closing since it's working now. If you want to use github-linguist@latest again you'll have to tweak that line to fit the new output format. |
Version 1.4.0 is out and supports both of these now. It should be good to use. |
+ const linguist = require('linguist-js')
- const files = Object.fromEntries(Object.entries(JSON.parse(await imports.run("github-linguist --json", {cwd:path}, {log:false}))).flatMap(([lang, files]) => files.map(file => [file, lang])))
+ const {results:files} = await linguist(path, {}) https://github.com/Nixinova/fork_metrics/tree/replace-linguist |
Today's metrics run deleted all languages data and doesn't add it back even in a following run. No errors are logged in the Action run.
Nixinova/Nixinova@6339db0
The only difference between today and yesterday is Linguist v7.16 came out a few hours ago; maybe this had something to do with it?
The text was updated successfully, but these errors were encountered: