Replies: 2 comments 2 replies
-
|
@lildude thanks for moving this to discussions, I was hoping to also get some guidance on improving detection of tree-sitter query. Even though I provided hard and fast regex qualifies/disquialifies there's still a confidence interval and sometimes detection would spill over into a completely unrelated language Example - an unrelated filestem ( Say I wanted 100% accuracy for the queries found in this repo: Is the best way to iterate involve running And is there a way to improve the "weight" of the heuristic regexes here I feel like these prositive/negative matches are hard qualifiers: |
Beta Was this translation helpful? Give feedback.
-
This is a known limitation with the way GitHub Search works and is precisely why the very last sentence in the troubleshooting doc and similarily on every release PR, like the v9.1.0 release which is the first to include this language, is:
I linked to this document in the approval message of your PR and you even acknowledged it with 👍 😁
One thing to keep in mind is your changes will only apply to repos that have been pushed to after your changes have been deployed. We do not go back and re-analyse all repos as this would be insanely resource intensive with little benefit.
Sort of. That would only use the installed version of Linguist. In dev,
The only way to sort of add some weight is to re-order them in the heuristics (I advise against that given how much more complex your regexes are), but that still wouldn't help if your files don't match any of the regexes which appears to be the case for some of your files right now. Things are falling through to the classifier which will make a guess based on the samples, hence we ask for representative real-world examples. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Clicking on Tree-sitter Query in Languages section produces an error stating:
tsqlanguage alias as wellExpected behaviour
All Tree-sitter Query files should be shown (just like other langauges) when omnisearch is filtered by language.
Related discussion
#7033
Additional notes
PR introducing tsq: #7243
Beta Was this translation helpful? Give feedback.
All reactions