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_clang failed Feb 6, 2024 in 44s

Task Summary

Instruction test failed in 00:25

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:04 clone
✅ 00:12 clang
❌ 00:25 test

to the PKG_CONFIG_PATH environment variable
No package 'tree-sitter' found
/opt/homebrew/opt/llvm@13/bin/clang++ -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 -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -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
/opt/homebrew/opt/llvm@13/bin/clang++ -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 -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -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
/opt/homebrew/opt/llvm@13/bin/clang++ -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 -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -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
shell_manager.cc:118:21: warning: 'vfork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations]
    if (pid_t pid = vfork())
                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/unistd.h:604:1: note: 'vfork' has been explicitly marked deprecated here
__deprecated_msg("Use posix_spawn or fork")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
/opt/homebrew/opt/llvm@13/bin/clang++ -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 -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -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
/opt/homebrew/opt/llvm@13/bin/clang++ -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 -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -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
/opt/homebrew/opt/llvm@13/bin/clang++ -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 -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -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
1 warning generated.
/opt/homebrew/opt/llvm@13/bin/clang++ -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 -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -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' file not found
#include <tree_sitter/api.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [.tree_sitter.opt.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [test] Error 2

Exit status: 2