-
Notifications
You must be signed in to change notification settings - Fork 30
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
unable to use experimental language formatters #663
Comments
Thank you for bringing this to our attention. This is another divergence between the documentation and reality (e.g., see #652), I'm afraid. The As a workaround, Topiary should format Tree-sitter query files using the query file Otherwise, this is a bug that will (perhaps) be addressed by #643. |
Thanks. I'm afraid that that workaround doesn't currently work:
I patched in #643, also no luck:
I would also note, FWIW, that I found this bit: |
You don't need to provide the
#643 is currently a draft PR; it's not complete yet, but the overall intention of the PR is to decouple the library and CLI, which is where the notion of "supported languages" originates. I therefore suspect there's a good chance that this oversight will eventually be corrected by this PR.
I agree. Unfortunately, this is generated automatically as part of the argument parsing library we use. |
Hah. Thanks, that did it. Now to go muck around a bit under the hood... |
Reopening, as this is still a bug that needs fixing. |
Currently, the command $ topiary fmt -l tree_sitter_query -q topiary-queries/queries/tree_sitter_query.scm topiary-queries/queries/css.scm fails with
which I think is the correct behaviour. When using $ cat topiary-queries/queries/css.scm | topiary fmt -l tree_sitter_query -q topiary-queries/queries/tree_sitter_query.scm I think this closes the issue? Also, I don't think we still have the distinction between "experimental" and "supported" languages? |
When the feature gating was implemented, there was a feature flag for |
Describe the bug
I'm here kicking the tires, because I need to write a formatter and I love the general approach.
I followed the readme and built everything locally, but can't get any of the experimental language formatters to work. It rejects the language.
To Reproduce
Run:
Expected behavior
The language is in the config, and I provided a query file, so according to the readme, I think it ought to work?
Environment
The text was updated successfully, but these errors were encountered: