You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like our grammar associations don't work from the root key. Either make it work or update the docs to make it clear to users how to configure things properly.
Running `diffsitter` `0.8.1` on macOS via homebrew:
⇒ diffsitter --version
diffsitter 0.8.1
It lists support for typescript / tsx:
⇒ diffsitter list
This program was compiled with support for:
- bash
- c_sharp
- cpp
- css
- go
- hcl
- java
- json
- ocaml
- php
- python
- ruby
- rust
- tsx
- typescript
Yet by default, it will fail to run against a JavaScript file:
⇒ git difftool --tool diffsitter HEAD~1 HEAD -- unpacked/_next/static/\[buildHash\]/_buildManifest.js
Error: Unsupported file type with no fallback command specified.
Until a file-association override is added to the config (${XDG_HOME:-$HOME}/.config/diffsitter/config.json5):
I also noted that modifying that default config to add the file-associations to the root key didn't seem to work; it only seemed to work when I added them to the grammar version of file-associations.
It seems like our grammar associations don't work from the root key. Either make it work or update the docs to make it clear to users how to configure things properly.
It lists support for
typescript
/tsx
:Yet by default, it will fail to run against a JavaScript file:
Until a file-association override is added to the config (
${XDG_HOME:-$HOME}/.config/diffsitter/config.json5
):This would seem like a useful thing to be included in the default config that diffsitter uses:
I also noted that modifying that default config to add the
file-associations
to the root key didn't seem to work; it only seemed to work when I added them to thegrammar
version offile-associations
.Originally posted by @0xdevalias in #152 (comment)
The text was updated successfully, but these errors were encountered: