Skip to content
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

Add tree-sitter based highlighter #5099

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Use tree-sitter highlighting if available

c923b4e
Select commit
Loading
Failed to load commit list.
Draft

Add tree-sitter based highlighter #5099

Use tree-sitter highlighting if available
c923b4e
Select commit
Loading
Failed to load commit list.
Cirrus CI / linux_gcc failed Feb 6, 2024 in 2m 5s

Task Summary

Instruction test failed in 01:49

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:03 clone
✅ 00:10 locales
❌ 01:49 test

No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .scope.opt.d -c -o .scope.opt.o scope.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .selection.opt.d -c -o .selection.opt.o selection.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .selectors.opt.d -c -o .selectors.opt.o selectors.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .shared_string.opt.d -c -o .shared_string.opt.o shared_string.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .shell_manager.opt.d -c -o .shell_manager.opt.o shell_manager.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .string.opt.d -c -o .string.opt.o string.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .string_utils.opt.d -c -o .string_utils.opt.o string_utils.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .terminal_ui.opt.d -c -o .terminal_ui.opt.o terminal_ui.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++ -DKAK_TREE_SITTER -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-init-list-lifetime -Wno-stringop-overflow -MD -MP -MF .tree_sitter.opt.d -c -o .tree_sitter.opt.o tree_sitter.cc
Package tree-sitter was not found in the pkg-config search path.
Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
tree_sitter.cc:15:10: fatal error: tree_sitter/api.h: No such file or directory
   15 | #include <tree_sitter/api.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:115: .tree_sitter.opt.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/cirrus-ci-build/src'
make: *** [Makefile:5: test] Error 2

Exit status: 2