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 / freebsd_clang failed Feb 6, 2024 in 1m 28s

Task Summary

Instruction test failed in 01:22

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:03 clone
✅ 00:01 gmake
❌ 01:22 test

clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .keys.opt.d -c -o .keys.opt.o keys.cc
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .line_modification.opt.d -c -o .line_modification.opt.o line_modification.cc
/bin/sh: pkg-config: not found
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .main.opt.d -c -o .main.opt.o main.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .memory.opt.d -c -o .memory.opt.o memory.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .normal.opt.d -c -o .normal.opt.o normal.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .option_manager.opt.d -c -o .option_manager.opt.o option_manager.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .option_types.opt.d -c -o .option_types.opt.o option_types.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .parameters_parser.opt.d -c -o .parameters_parser.opt.o parameters_parser.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .ranges.opt.d -c -o .ranges.opt.o ranges.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .ranked_match.opt.d -c -o .ranked_match.opt.o ranked_match.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .regex.opt.d -c -o .regex.opt.o regex.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .regex_impl.opt.d -c -o .regex_impl.opt.o regex_impl.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .register_manager.opt.d -c -o .register_manager.opt.o register_manager.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .remote.opt.d -c -o .remote.opt.o remote.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .scope.opt.d -c -o .scope.opt.o scope.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .selection.opt.d -c -o .selection.opt.o selection.cc
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .selectors.opt.d -c -o .selectors.opt.o selectors.cc
/bin/sh: pkg-config: not found
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .shared_string.opt.d -c -o .shared_string.opt.o shared_string.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .shell_manager.opt.d -c -o .shell_manager.opt.o shell_manager.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .string.opt.d -c -o .string.opt.o string.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .string_utils.opt.d -c -o .string_utils.opt.o string_utils.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .terminal_ui.opt.d -c -o .terminal_ui.opt.o terminal_ui.cc
/bin/sh: pkg-config: not found
clang++ -DKAK_TREE_SITTER -I/usr/local/include -O3 `pkg-config --cflags tree-sitter` -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .tree_sitter.opt.d -c -o .tree_sitter.opt.o tree_sitter.cc
/bin/sh: pkg-config: not found
tree_sitter.cc:15:10: fatal error: 'tree_sitter/api.h' file not found
#include <tree_sitter/api.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[1]: *** [Makefile:115: .tree_sitter.opt.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory '/tmp/cirrus-ci-build/src'
gmake: *** [Makefile:5: test] Error 2

Exit status: 2