Repository navigation
Conversation
lildude
left a comment
There was a problem hiding this comment.
Please follow the details for adding an extension in the CONTRIBUTING.md file.
Please also use and fill in the PR template; it's there for a reason.
|
Got it! Will follow the instructions and report back when we have >200 results in the wild |
Need to make sure everything works and dogfood it a bit before 0.12.0-RC1 This converts Mill over to the `build.mill` file extension. We also break up `build.mill` into per-folder `package.mill` files: `scalalib/package.mill`, `main/package.mill`, etc. IntelliJ users would need go to `Settings` / `Editor` / `File Types` / `Scala` and add `*.mill`. Github syntax highlighting doesn't work, which is expected for now until github-linguist/linguist#7028 lands (which will need to wait for some usage in the wild according to Github's syntax highlighting policy)
|
Hi! It's been a while since we adopted the new extension, and the |
|
I have also completed the checklist, added the search URL in the PR description, and added a sample file together with it's license |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Hi, any expected date to get this merged? Which metric is considered when accounting for the "Pending Popularity"? |
|
Popularity is only re-assessed whenever a new release is made which is approximately every 3-4 months. |
Yes. It is reassessed with every release and this extension is still a very very long way frmo meeting our usage requirements. |
Would be nice to have some numbers or some transparent metrics. It currently feels arbitrary, although you make it sound it's not. A "very very long way" is the opposite of transparent. If you have usage requirements, please make them public to establish trust. |
The usage requirements have been public for a very very long time and have evolved over the years. Things were easy to assess before GitHub's most recent major search update which meant we had to rely on temporary measures detailed in #5756. This issue was pinned to the top of the issues page for about 3 years, and also referenced in the CONTRIBUTING.md file for about 2.5 years, until they were moved and "solidified" into a dedicated section in the CONTRIBUTING.md file earlier this year as we have no better method of assessing popularity. As this PR is adding an extension that is not expected to only ever appear in a repo once, the 2000 limit is what I use to gauge popularity and I base this on the search query provided in the PR template as I don't have time to do in-depth analysis of usage for each and every PR pending popularity every time I make a release. |
|
@lildude CONTRIBUTING.md says:
When I search for
Given that 3.1k > 2000, how is it you are saying that |
|
Exactly, by those metrics this PR could have been merged almost 1 year ago. |
Yes. We have deliberately excluded forks for as long as we've had usage requirements (10+ years) as the intention is illustrate wide-spread usage, not widespread copying. Just because a repo gains attention on Hacker News and is then forked X number of times (this happens a lot), doesn't mean it's actually being used. People fork repos all the time without actually using the code or doing anything with the fork. Same with star counts, which we also deliberately don't consider. Both of these are susceptible to gaming and don't provide any real indication of usage, hence we exclude forks. There is a solution for all users while we wait for the popularity: use an override. The language already exists so you can use an override in the mean time. |
|
Yes but on both mine and @lihaoyi searches, forks have been excluded and we get the 3.1k files already which surpasses the previously mentioned 2k threshold. |
|
I get only 1.4k results with |
|
I'd like to add, that a Given, that the requirements for such files are at least Line 246 in 537297c
@lildude Thank you for pointing this out. I missed these number when I scanned over the document. There may be repos that use the |
@lildude thanks, unfortunately overrides via |
That should not be the case. If GHES supports a language it should support the same overrides in the same way as GitHub.com. If you are seeing something different, please report it to GitHub support (it won't be a Linguist issue so I can't do anything about it). One thing to keep in mind is new Linguist releases are not added to older GHES releases so you would have to update to the newest feature release of GHES to gain this support once merged and the Linguist release made. Linguist releases are made approx every 2-3 months to ensure they get into the next GHES release with the latest being made to ensure it gets into GHES 3.21.0. |
|
@lildude it works for changes but not for newly added files
on GHES 3.17.11 at least. |





The Mill Scala build tool recently moved its file format extension from
.scto.mill(com-lihaoyi/mill#3426) to better differentiate it from other Scala scripts (Ammonite, Scala-CLI, IntelliJ/VSCode worksheets). This updates Linguist to understand that.millfiles should be highlighted as ScalaDescription
Checklist:
I am adding a new extension to a language.
I am adding a new language.
#RRGGBBI am fixing a misclassified language
I am changing the source of a syntax highlighting grammar
I am updating a grammar submodule
I am adding new or changing current functionality
I am changing the color associated with a language