Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955834 - dev-libs/tree-sitter-vim-0.5.0 dev-libs/tree-sitter-c-0.23.0 dev-libs/tree-sitter-lua-0.3.0 test fail : syntax highlighting
Summary: dev-libs/tree-sitter-vim-0.5.0 dev-libs/tree-sitter-c-0.23.0 dev-libs/tree-si...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Smith
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-11 13:14 UTC by Arniiiii
Modified: 2025-05-11 19:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
`xz -9` tarball with bunch of files (dev-libs_treesitter-xxx_test_fail_highlighting.tar.xz,201.98 KB, application/x-xz)
2025-05-11 13:14 UTC, Arniiiii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniiiii 2025-05-11 13:14:38 UTC
Created attachment 928484 [details]
`xz -9` tarball with bunch of files

in tarball:
 emerge_--info.txt 
 /var/tmp/portage/dev-libs/tree-sitter-c-0.23.0/{build-info/,files/,temp/,work/**.log} 
 /var/tmp/portage/dev-libs/tree-sitter-lua-0.3.0/{build-info/,files/,temp/,work/**.log} 
 /var/tmp/portage/dev-libs/tree-sitter-vim-0.5.0/{build-info/,files/,temp/,work/**.log}  
 /var/lib/portage/ 
 /etc/portage/* (without gnupg)

They all seems to have a problem with syntax highlighting in the same way.

e.g.:
from a build.log:
```
Total parses: 268; successful parses: 268; failed parses: 0; success percentage: 100.00%; average speed: 6624 bytes/ms

syntax highlighting:
No language found for path `/var/tmp/portage/dev-libs/tree-sitter-vim-0.5.0/work/tree-sitter-vim-0.5.0/test/highlight/command_modifiers.vim`

If a language should be associated with this file extension, please ensure the path to `/var/tmp/portage/dev-libs/tree-sitter-vim-0.5.0/work/tree-sitter-vim-0.5.0/test/highlight/command_modifiers.vim` is inside one of the following directories as specified by your 'config.json':



If the directory that contains the relevant grammar for `/var/tmp/portage/dev-libs/tree-sitter-vim-0.5.0/work/tree-sitter-vim-0.5.0/test/highlight/command_modifiers.vim` is not listed above, please add the directory to the list of directories in your config file, which you need to create by running `tree-sitter init-config`

     * ERROR: dev-libs/tree-sitter-vim-0.5.0::gentoo failed (test phase):
 *   Test suite failed
```

from another build.log:
```

Total parses: 37; successful parses: 37; failed parses: 0; success percentage: 100.00%; average speed: 5184 bytes/ms

syntax highlighting:
    ✗ string.lua
      Failure - row: 29, column: 0, expected highlight 'string.escape', actual highlights: none.
 * ERROR: dev-libs/tree-sitter-lua-0.3.0::gentoo failed (test phase):
 *   Test suite failed
```

from another build.log:
```
Total parses: 83; successful parses: 83; failed parses: 0; success percentage: 100.00%; average speed: 6700 bytes/ms

syntax highlighting:
No language found for path `/var/tmp/portage/dev-libs/tree-sitter-c-0.23.0/work/tree-sitter-c-0.23.0/test/highlight/keywords.c`

If a language should be associated with this file extension, please ensure the path to `/var/tmp/portage/dev-libs/tree-sitter-c-0.23.0/work/tree-sitter-c-0.23.0/test/highlight/keywords.c` is inside one of the following directories as specified by your 'config.json':



If the directory that contains the relevant grammar for `/var/tmp/portage/dev-libs/tree-sitter-c-0.23.0/work/tree-sitter-c-0.23.0/test/highlight/keywords.c` is not listed above, please add the directory to the list of directories in your config file, which you need to create by running `tree-sitter init-config`

     * ERROR: dev-libs/tree-sitter-c-0.23.0::gentoo failed (test phase):
 *   Test suite failed
```