Skip to content

nested tag test panic strangeness #3955

@kylegoetz

Description

@kylegoetz

Problem

nesting folders in a test/tags causes a panic that language not found for a path

Steps to reproduce

  1. clone kylegoetz/tree-sitter-unison
  2. create a test/tags/foo
  3. run tree-sitter test
  4. observe panic
  5. rename directory foo to foo.u
  6. run tree-sitter test
  7. observe no panic

So something about the tag tests expect paths to have names that end in the file extension of an available language

Expected behavior

I expect paths to not have to have a mock file extension matching an available grammar language

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

0.24.3

Operating system/version

macos 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    testRelated to tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions