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

Task Summary

Instruction test failed in 00:58

Details

⚠️ Not enough compute credits to prioritize tasks!
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:03 clone
✅ 00:50 gcc
❌ 00:58 test

Perhaps you should add the directory containing `tree-sitter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
g++-10 -DKAK_TREE_SITTER -I/opt/local/include -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++-10 -DKAK_TREE_SITTER -I/opt/local/include -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++-10 -DKAK_TREE_SITTER -I/opt/local/include -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
shell_manager.cc: In function 'Kakoune::Shell Kakoune::{anonymous}::spawn_shell(const char*, Kakoune::StringView, Kakoune::ConstArrayView<Kakoune::String>, Kakoune::ConstArrayView<Kakoune::String>, bool)':
shell_manager.cc:118:27: warning: 'pid_t vfork()' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations]
  118 |     if (pid_t pid = vfork())
      |                           ^
In file included from shell_manager.hh:13,
                 from shell_manager.cc:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/unistd.h:606:8: note: declared here
  606 | pid_t  vfork(void) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
      |        ^~~~~
g++-10 -DKAK_TREE_SITTER -I/opt/local/include -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++-10 -DKAK_TREE_SITTER -I/opt/local/include -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++-10 -DKAK_TREE_SITTER -I/opt/local/include -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
g++-10 -DKAK_TREE_SITTER -I/opt/local/include -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 .unit_tests.opt.d -c -o .unit_tests.opt.o unit_tests.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]: *** [.tree_sitter.opt.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [test] Error 2

Exit status: 2