Skip to content

warning provides inaccurate fix #3954

Closed
@kylegoetz

Description

Problem

tree-sitter test warned me

Warning: you should add a `tree-sitter-tags` entry pointing to the highlights path in `tree-sitter` language list in the grammar's package.json
See more here: https://tree-sitter.github.io/tree-sitter/syntax-highlighting#query-paths

Not only does the content at that URL never mention "tree-sitter-tags", but the fix isn't to put anything in package.json but instead tree-sitter.json

Steps to reproduce

  1. clone kylegoetz/tree-sitter-unison
  2. create test/tags
  3. put "sample.u" into that directory
  4. run tree-sitter test
  5. observe error message

Expected behavior

That error message is more helpful, directs to a useful URL, and explains which file should be edited. I think package.json used to be where TS config stuff went, but now there's a tree-sitter.json that the config goes in. Right?

Tree-sitter version (tree-sitter --version)

0.24.3

Operating system/version

macOS 15

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    cligood-first-issueGood issues for first-time contributors wanting to help out

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions