ikatyang / tree-sitter-yaml

YAML grammar for tree-sitter
https://ikatyang.github.io/tree-sitter-yaml/
MIT License
94 stars 38 forks source link

Several warnings and lots of ugly output when installing from npm #54

Open kaiyoma opened 10 months ago

kaiyoma commented 10 months ago

This library is an indirect dependency in our project and spews a bunch of warnings and a lot of gross output when it's installed. Is there a way to fix this?

15:22:49  .../node_modules/tree-sitter-json install$ node-gyp rebuild
15:22:49  .../esbuild@0.19.2/node_modules/esbuild postinstall$ node install.js
15:22:49  .../node_modules/tree-sitter-yaml install$ node-gyp rebuild
15:22:49  .../esbuild@0.19.2/node_modules/esbuild postinstall: Done
15:22:49  .../node_modules/tree-sitter-json install: gyp info it worked if it ends with ok
15:22:49  .../node_modules/tree-sitter-json install: gyp info using node-gyp@9.4.0
15:22:49  .../node_modules/tree-sitter-json install: gyp info using node@18.16.0 | linux | x64
15:22:49  .../node_modules/tree-sitter-yaml install: gyp info it worked if it ends with ok
15:22:49  .../node_modules/tree-sitter-yaml install: gyp info using node-gyp@9.4.0
15:22:49  .../node_modules/tree-sitter-yaml install: gyp info using node@18.16.0 | linux | x64
15:22:49  .../node_modules/tree-sitter-json install: gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
15:22:49  .../node_modules/tree-sitter-yaml install: gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
15:22:49  .../node_modules/tree-sitter-json install: gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
15:22:49  .../node_modules/tree-sitter-yaml install: gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
15:22:54  .../node_modules/tree-sitter-yaml install: gyp http 200 https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
15:22:54  .../node_modules/tree-sitter-json install: gyp http 200 https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
15:22:56  .../node_modules/tree-sitter-yaml install: gyp http GET https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
15:22:56  .../node_modules/tree-sitter-json install: gyp http GET https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
15:22:56  .../node_modules/tree-sitter-yaml install: gyp http 200 https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
15:22:56  .../node_modules/tree-sitter-json install: gyp http 200 https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn /usr/bin/python3
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args [
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   'binding.gyp',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-f',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   'make',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-yaml@0.5.0/node_modules/tree-sitter-yaml/build/config.gypi',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '/home/jenkins/.cache/node-gyp/18.16.0/include/node/common.gypi',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dlibrary=shared_library',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dvisibility=default',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dnode_root_dir=/home/jenkins/.cache/node-gyp/18.16.0',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dnode_lib_file=/home/jenkins/.cache/node-gyp/18.16.0/<(target_arch)/node.lib',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dmodule_root_dir=/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-yaml@0.5.0/node_modules/tree-sitter-yaml',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dnode_engine=v8',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '--depth=.',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '--no-parallel',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '--generator-output',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   'build',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Goutput_dir=.'
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args ]
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn /usr/bin/python3
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args [
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   'binding.gyp',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-f',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   'make',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-json@0.20.1/node_modules/tree-sitter-json/build/config.gypi',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '/home/jenkins/.cache/node-gyp/18.16.0/include/node/common.gypi',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dlibrary=shared_library',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dvisibility=default',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dnode_root_dir=/home/jenkins/.cache/node-gyp/18.16.0',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dnode_lib_file=/home/jenkins/.cache/node-gyp/18.16.0/<(target_arch)/node.lib',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dmodule_root_dir=/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-json@0.20.1/node_modules/tree-sitter-json',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dnode_engine=v8',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '--depth=.',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '--no-parallel',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '--generator-output',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   'build',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Goutput_dir=.'
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args ]
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn make
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
15:22:56  .../node_modules/tree-sitter-yaml install: make: Entering directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-yaml@0.5.0/node_modules/tree-sitter-yaml/build'
15:22:56  .../node_modules/tree-sitter-yaml install:   CXX(target) Release/obj.target/tree_sitter_yaml_binding/bindings/node/binding.o
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn make
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
15:22:56  .../node_modules/tree-sitter-json install: make: Entering directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-json@0.20.1/node_modules/tree-sitter-json/build'
15:22:56  .../node_modules/tree-sitter-json install:   CC(target) Release/obj.target/tree_sitter_json_binding/src/parser.o
15:22:56  .../node_modules/tree-sitter-json install:   CXX(target) Release/obj.target/tree_sitter_json_binding/bindings/node/binding.o
15:22:57  .../node_modules/tree-sitter-yaml install: In file included from ../bindings/node/binding.cc:2:
15:22:57  .../node_modules/tree-sitter-yaml install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:997:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
15:22:57  .../node_modules/tree-sitter-yaml install:   997 |       (node::addon_register_func) (regfunc),                          \
15:22:57  .../node_modules/tree-sitter-yaml install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-yaml install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:1031:3: note: in expansion of macro 'NODE_MODULE_X'
15:22:57  .../node_modules/tree-sitter-yaml install:  1031 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
15:22:57  .../node_modules/tree-sitter-yaml install:       |   ^~~~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-yaml install: ../bindings/node/binding.cc:26:1: note: in expansion of macro 'NODE_MODULE'
15:22:57  .../node_modules/tree-sitter-yaml install:    26 | NODE_MODULE(tree_sitter_yaml_binding, Init)
15:22:57  .../node_modules/tree-sitter-yaml install:       | ^~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-json install: In file included from ../bindings/node/binding.cc:2:
15:22:57  .../node_modules/tree-sitter-json install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:997:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
15:22:57  .../node_modules/tree-sitter-json install:   997 |       (node::addon_register_func) (regfunc),                          \
15:22:57  .../node_modules/tree-sitter-json install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-json install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:1031:3: note: in expansion of macro 'NODE_MODULE_X'
15:22:57  .../node_modules/tree-sitter-json install:  1031 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
15:22:57  .../node_modules/tree-sitter-json install:       |   ^~~~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-json install: ../bindings/node/binding.cc:26:1: note: in expansion of macro 'NODE_MODULE'
15:22:57  .../node_modules/tree-sitter-json install:    26 | NODE_MODULE(tree_sitter_json_binding, Init)
15:22:57  .../node_modules/tree-sitter-json install:       | ^~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-yaml install:   CC(target) Release/obj.target/tree_sitter_yaml_binding/src/parser.o
15:22:57  .../node_modules/tree-sitter-yaml install: In file included from ../src/parser.c:1:
15:22:57  .../node_modules/tree-sitter-yaml install: ../src/parser.c: In function 'ts_lex':
15:22:57  .../node_modules/tree-sitter-yaml install: ../src/tree_sitter/parser.h:136:11: warning: variable 'lookahead' set but not used [-Wunused-but-set-variable]
15:22:57  .../node_modules/tree-sitter-yaml install:   136 |   int32_t lookahead;            \
15:22:57  .../node_modules/tree-sitter-yaml install:       |           ^~~~~~~~~
15:22:57  .../node_modules/tree-sitter-yaml install: ../src/parser.c:2182:3: note: in expansion of macro 'START_LEXER'
15:22:57  .../node_modules/tree-sitter-yaml install:  2182 |   START_LEXER();
15:22:57  .../node_modules/tree-sitter-yaml install:       |   ^~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-json install:   SOLINK_MODULE(target) Release/obj.target/tree_sitter_json_binding.node
15:22:57  .../node_modules/tree-sitter-json install:   COPY Release/tree_sitter_json_binding.node
15:22:57  .../node_modules/tree-sitter-json install: make: Leaving directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-json@0.20.1/node_modules/tree-sitter-json/build'
15:22:57  .../node_modules/tree-sitter-json install: gyp info ok 
15:22:57  .../node_modules/tree-sitter-json install: Done
15:22:58  .../node_modules/tree-sitter-yaml install:   CXX(target) Release/obj.target/tree_sitter_yaml_binding/src/scanner.o
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc: In member function 'char {anonymous}::Scanner::scn_pln_cnt(TSLexer*, bool ({anonymous}::Scanner::*)(int32_t))':
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:619:10: warning: variable 'is_cur_wsp' set but not used [-Wunused-but-set-variable]
15:22:58  .../node_modules/tree-sitter-yaml install:   619 |     bool is_cur_wsp = is_wsp(cur_chr);
15:22:58  .../node_modules/tree-sitter-yaml install:       |          ^~~~~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc: In member function 'bool {anonymous}::Scanner::scn_dir_tag_pfx(TSLexer*, TSSymbol)':
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:66:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
15:22:58  .../node_modules/tree-sitter-yaml install:    66 | #define MRK_END() mrk_end(lexer)
15:22:58  .../node_modules/tree-sitter-yaml install:       |                   ~~~~~~~^~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:429:11: note: in expansion of macro 'MRK_END'
15:22:58  .../node_modules/tree-sitter-yaml install:   429 |           MRK_END();
15:22:58  .../node_modules/tree-sitter-yaml install:       |           ^~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:430:9: note: here
15:22:58  .../node_modules/tree-sitter-yaml install:   430 |         case SCN_FAIL:
15:22:58  .../node_modules/tree-sitter-yaml install:       |         ^~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc: In member function 'bool {anonymous}::Scanner::scn_tag(TSLexer*, TSSymbol)':
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:454:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
15:22:58  .../node_modules/tree-sitter-yaml install:   454 |             if (LKA == '>') {
15:22:58  .../node_modules/tree-sitter-yaml install:       |             ^~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:459:11: note: here
15:22:58  .../node_modules/tree-sitter-yaml install:   459 |           case SCN_FAIL:
15:22:58  .../node_modules/tree-sitter-yaml install:       |           ^~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:66:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
15:22:58  .../node_modules/tree-sitter-yaml install:    66 | #define MRK_END() mrk_end(lexer)
15:22:58  .../node_modules/tree-sitter-yaml install:       |                   ~~~~~~~^~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:468:13: note: in expansion of macro 'MRK_END'
15:22:58  .../node_modules/tree-sitter-yaml install:   468 |             MRK_END();
15:22:58  .../node_modules/tree-sitter-yaml install:       |             ^~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:469:11: note: here
15:22:58  .../node_modules/tree-sitter-yaml install:   469 |           case SCN_FAIL:
15:22:58  .../node_modules/tree-sitter-yaml install:       |           ^~~~
15:22:59  .../node_modules/tree-sitter-yaml install:   SOLINK_MODULE(target) Release/obj.target/tree_sitter_yaml_binding.node
15:22:59  .../node_modules/tree-sitter-yaml install:   COPY Release/tree_sitter_yaml_binding.node
15:22:59  .../node_modules/tree-sitter-yaml install: make: Leaving directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-yaml@0.5.0/node_modules/tree-sitter-yaml/build'
15:22:59  .../node_modules/tree-sitter-yaml install: gyp info ok 
15:22:59  .../node_modules/tree-sitter-yaml install: Done
15:22:59  .../node_modules/tree-sitter install$ prebuild-install || node-gyp rebuild
15:22:59  .../node_modules/tree-sitter install: prebuild-install warn install No prebuilt binaries found (target=18.16.0 runtime=node arch=x64 libc= platform=linux)
15:22:59  .../node_modules/tree-sitter install: gyp info it worked if it ends with ok
15:22:59  .../node_modules/tree-sitter install: gyp info using node-gyp@9.4.0
15:22:59  .../node_modules/tree-sitter install: gyp info using node@18.16.0 | linux | x64
15:22:59  .../node_modules/tree-sitter install: gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
15:23:00  .../node_modules/tree-sitter install: gyp info spawn /usr/bin/python3
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args [
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   'binding.gyp',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-f',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   'make',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-I',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter@0.20.4/node_modules/tree-sitter/build/config.gypi',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-I',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-I',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '/home/jenkins/.cache/node-gyp/18.16.0/include/node/common.gypi',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dlibrary=shared_library',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dvisibility=default',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dnode_root_dir=/home/jenkins/.cache/node-gyp/18.16.0',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dnode_lib_file=/home/jenkins/.cache/node-gyp/18.16.0/<(target_arch)/node.lib',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dmodule_root_dir=/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter@0.20.4/node_modules/tree-sitter',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dnode_engine=v8',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '--depth=.',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '--no-parallel',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '--generator-output',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   'build',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Goutput_dir=.'
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args ]
15:23:00  .../node_modules/tree-sitter install: gyp info spawn make
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
15:23:00  .../node_modules/tree-sitter install: make: Entering directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter@0.20.4/node_modules/tree-sitter/build'
15:23:00  .../node_modules/tree-sitter install:   CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
15:23:08  .../node_modules/tree-sitter install: rm -f Release/obj.target/tree_sitter.a Release/obj.target/tree_sitter.a.ar-file-list; mkdir -p `dirname Release/obj.target/tree_sitter.a`
15:23:08  .../node_modules/tree-sitter install: ar crs Release/obj.target/tree_sitter.a @Release/obj.target/tree_sitter.a.ar-file-list
15:23:08  .../node_modules/tree-sitter install:   COPY Release/tree_sitter.a
15:23:08  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/binding.o
15:23:08  .../node_modules/tree-sitter install: In file included from ../src/binding.cc:1:
15:23:08  .../node_modules/tree-sitter install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:997:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
15:23:08  .../node_modules/tree-sitter install:   997 |       (node::addon_register_func) (regfunc),                          \
15:23:08  .../node_modules/tree-sitter install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15:23:08  .../node_modules/tree-sitter install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:1031:3: note: in expansion of macro 'NODE_MODULE_X'
15:23:08  .../node_modules/tree-sitter install:  1031 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
15:23:08  .../node_modules/tree-sitter install:       |   ^~~~~~~~~~~~~
15:23:08  .../node_modules/tree-sitter install: ../src/binding.cc:25:1: note: in expansion of macro 'NODE_MODULE'
15:23:08  .../node_modules/tree-sitter install:    25 | NODE_MODULE(tree_sitter_runtime_binding, InitAll)
15:23:08  .../node_modules/tree-sitter install:       | ^~~~~~~~~~~
15:23:08  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/conversions.o
15:23:09  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/language.o
15:23:11  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/logger.o
15:23:12  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/node.o
15:23:14  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/parser.o
15:23:15  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/query.o
15:23:17  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/tree.o
15:23:19  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/tree_cursor.o
15:23:20  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/util.o
15:23:21  .../node_modules/tree-sitter install:   SOLINK_MODULE(target) Release/obj.target/tree_sitter_runtime_binding.node
15:23:21  .../node_modules/tree-sitter install:   COPY Release/tree_sitter_runtime_binding.node
15:23:21  .../node_modules/tree-sitter install: make: Leaving directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter@0.20.4/node_modules/tree-sitter/build'
15:23:21  .../node_modules/tree-sitter install: gyp info ok 
15:23:21  .../node_modules/tree-sitter install: Done

This is with tree-sitter-yaml 0.5.0 and Node 18.16.0 on a Debian CI machine. I originally filed this as https://github.com/tree-sitter/node-tree-sitter/issues/158 but was told that tree-sitter-yaml is the actual source of the problem.

Brunojoes69 commented 3 months ago

This library is an indirect dependency in our project and spews a bunch of warnings and a lot of gross output when it's installed. Is there a way to fix this?

15:22:49  .../node_modules/tree-sitter-json install$ node-gyp rebuild
15:22:49  .../esbuild@0.19.2/node_modules/esbuild postinstall$ node install.js
15:22:49  .../node_modules/tree-sitter-yaml install$ node-gyp rebuild
15:22:49  .../esbuild@0.19.2/node_modules/esbuild postinstall: Done
15:22:49  .../node_modules/tree-sitter-json install: gyp info it worked if it ends with ok
15:22:49  .../node_modules/tree-sitter-json install: gyp info using node-gyp@9.4.0
15:22:49  .../node_modules/tree-sitter-json install: gyp info using node@18.16.0 | linux | x64
15:22:49  .../node_modules/tree-sitter-yaml install: gyp info it worked if it ends with ok
15:22:49  .../node_modules/tree-sitter-yaml install: gyp info using node-gyp@9.4.0
15:22:49  .../node_modules/tree-sitter-yaml install: gyp info using node@18.16.0 | linux | x64
15:22:49  .../node_modules/tree-sitter-json install: gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
15:22:49  .../node_modules/tree-sitter-yaml install: gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
15:22:49  .../node_modules/tree-sitter-json install: gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
15:22:49  .../node_modules/tree-sitter-yaml install: gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
15:22:54  .../node_modules/tree-sitter-yaml install: gyp http 200 https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
15:22:54  .../node_modules/tree-sitter-json install: gyp http 200 https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
15:22:56  .../node_modules/tree-sitter-yaml install: gyp http GET https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
15:22:56  .../node_modules/tree-sitter-json install: gyp http GET https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
15:22:56  .../node_modules/tree-sitter-yaml install: gyp http 200 https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
15:22:56  .../node_modules/tree-sitter-json install: gyp http 200 https://nodejs.org/download/release/v18.16.0/SHASUMS256.txt
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn /usr/bin/python3
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args [
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   'binding.gyp',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-f',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   'make',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-yaml@0.5.0/node_modules/tree-sitter-yaml/build/config.gypi',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '/home/jenkins/.cache/node-gyp/18.16.0/include/node/common.gypi',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dlibrary=shared_library',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dvisibility=default',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dnode_root_dir=/home/jenkins/.cache/node-gyp/18.16.0',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dnode_lib_file=/home/jenkins/.cache/node-gyp/18.16.0/<(target_arch)/node.lib',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dmodule_root_dir=/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-yaml@0.5.0/node_modules/tree-sitter-yaml',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Dnode_engine=v8',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '--depth=.',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '--no-parallel',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '--generator-output',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   'build',
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args   '-Goutput_dir=.'
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args ]
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn /usr/bin/python3
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args [
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   'binding.gyp',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-f',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   'make',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-json@0.20.1/node_modules/tree-sitter-json/build/config.gypi',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-I',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '/home/jenkins/.cache/node-gyp/18.16.0/include/node/common.gypi',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dlibrary=shared_library',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dvisibility=default',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dnode_root_dir=/home/jenkins/.cache/node-gyp/18.16.0',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dnode_lib_file=/home/jenkins/.cache/node-gyp/18.16.0/<(target_arch)/node.lib',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dmodule_root_dir=/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-json@0.20.1/node_modules/tree-sitter-json',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Dnode_engine=v8',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '--depth=.',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '--no-parallel',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '--generator-output',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   'build',
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args   '-Goutput_dir=.'
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args ]
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn make
15:22:56  .../node_modules/tree-sitter-yaml install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
15:22:56  .../node_modules/tree-sitter-yaml install: make: Entering directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-yaml@0.5.0/node_modules/tree-sitter-yaml/build'
15:22:56  .../node_modules/tree-sitter-yaml install:   CXX(target) Release/obj.target/tree_sitter_yaml_binding/bindings/node/binding.o
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn make
15:22:56  .../node_modules/tree-sitter-json install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
15:22:56  .../node_modules/tree-sitter-json install: make: Entering directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-json@0.20.1/node_modules/tree-sitter-json/build'
15:22:56  .../node_modules/tree-sitter-json install:   CC(target) Release/obj.target/tree_sitter_json_binding/src/parser.o
15:22:56  .../node_modules/tree-sitter-json install:   CXX(target) Release/obj.target/tree_sitter_json_binding/bindings/node/binding.o
15:22:57  .../node_modules/tree-sitter-yaml install: In file included from ../bindings/node/binding.cc:2:
15:22:57  .../node_modules/tree-sitter-yaml install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:997:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
15:22:57  .../node_modules/tree-sitter-yaml install:   997 |       (node::addon_register_func) (regfunc),                          \
15:22:57  .../node_modules/tree-sitter-yaml install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-yaml install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:1031:3: note: in expansion of macro 'NODE_MODULE_X'
15:22:57  .../node_modules/tree-sitter-yaml install:  1031 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
15:22:57  .../node_modules/tree-sitter-yaml install:       |   ^~~~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-yaml install: ../bindings/node/binding.cc:26:1: note: in expansion of macro 'NODE_MODULE'
15:22:57  .../node_modules/tree-sitter-yaml install:    26 | NODE_MODULE(tree_sitter_yaml_binding, Init)
15:22:57  .../node_modules/tree-sitter-yaml install:       | ^~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-json install: In file included from ../bindings/node/binding.cc:2:
15:22:57  .../node_modules/tree-sitter-json install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:997:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
15:22:57  .../node_modules/tree-sitter-json install:   997 |       (node::addon_register_func) (regfunc),                          \
15:22:57  .../node_modules/tree-sitter-json install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-json install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:1031:3: note: in expansion of macro 'NODE_MODULE_X'
15:22:57  .../node_modules/tree-sitter-json install:  1031 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
15:22:57  .../node_modules/tree-sitter-json install:       |   ^~~~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-json install: ../bindings/node/binding.cc:26:1: note: in expansion of macro 'NODE_MODULE'
15:22:57  .../node_modules/tree-sitter-json install:    26 | NODE_MODULE(tree_sitter_json_binding, Init)
15:22:57  .../node_modules/tree-sitter-json install:       | ^~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-yaml install:   CC(target) Release/obj.target/tree_sitter_yaml_binding/src/parser.o
15:22:57  .../node_modules/tree-sitter-yaml install: In file included from ../src/parser.c:1:
15:22:57  .../node_modules/tree-sitter-yaml install: ../src/parser.c: In function 'ts_lex':
15:22:57  .../node_modules/tree-sitter-yaml install: ../src/tree_sitter/parser.h:136:11: warning: variable 'lookahead' set but not used [-Wunused-but-set-variable]
15:22:57  .../node_modules/tree-sitter-yaml install:   136 |   int32_t lookahead;            \
15:22:57  .../node_modules/tree-sitter-yaml install:       |           ^~~~~~~~~
15:22:57  .../node_modules/tree-sitter-yaml install: ../src/parser.c:2182:3: note: in expansion of macro 'START_LEXER'
15:22:57  .../node_modules/tree-sitter-yaml install:  2182 |   START_LEXER();
15:22:57  .../node_modules/tree-sitter-yaml install:       |   ^~~~~~~~~~~
15:22:57  .../node_modules/tree-sitter-json install:   SOLINK_MODULE(target) Release/obj.target/tree_sitter_json_binding.node
15:22:57  .../node_modules/tree-sitter-json install:   COPY Release/tree_sitter_json_binding.node
15:22:57  .../node_modules/tree-sitter-json install: make: Leaving directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-json@0.20.1/node_modules/tree-sitter-json/build'
15:22:57  .../node_modules/tree-sitter-json install: gyp info ok 
15:22:57  .../node_modules/tree-sitter-json install: Done
15:22:58  .../node_modules/tree-sitter-yaml install:   CXX(target) Release/obj.target/tree_sitter_yaml_binding/src/scanner.o
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc: In member function 'char {anonymous}::Scanner::scn_pln_cnt(TSLexer*, bool ({anonymous}::Scanner::*)(int32_t))':
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:619:10: warning: variable 'is_cur_wsp' set but not used [-Wunused-but-set-variable]
15:22:58  .../node_modules/tree-sitter-yaml install:   619 |     bool is_cur_wsp = is_wsp(cur_chr);
15:22:58  .../node_modules/tree-sitter-yaml install:       |          ^~~~~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc: In member function 'bool {anonymous}::Scanner::scn_dir_tag_pfx(TSLexer*, TSSymbol)':
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:66:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
15:22:58  .../node_modules/tree-sitter-yaml install:    66 | #define MRK_END() mrk_end(lexer)
15:22:58  .../node_modules/tree-sitter-yaml install:       |                   ~~~~~~~^~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:429:11: note: in expansion of macro 'MRK_END'
15:22:58  .../node_modules/tree-sitter-yaml install:   429 |           MRK_END();
15:22:58  .../node_modules/tree-sitter-yaml install:       |           ^~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:430:9: note: here
15:22:58  .../node_modules/tree-sitter-yaml install:   430 |         case SCN_FAIL:
15:22:58  .../node_modules/tree-sitter-yaml install:       |         ^~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc: In member function 'bool {anonymous}::Scanner::scn_tag(TSLexer*, TSSymbol)':
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:454:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
15:22:58  .../node_modules/tree-sitter-yaml install:   454 |             if (LKA == '>') {
15:22:58  .../node_modules/tree-sitter-yaml install:       |             ^~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:459:11: note: here
15:22:58  .../node_modules/tree-sitter-yaml install:   459 |           case SCN_FAIL:
15:22:58  .../node_modules/tree-sitter-yaml install:       |           ^~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:66:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
15:22:58  .../node_modules/tree-sitter-yaml install:    66 | #define MRK_END() mrk_end(lexer)
15:22:58  .../node_modules/tree-sitter-yaml install:       |                   ~~~~~~~^~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:468:13: note: in expansion of macro 'MRK_END'
15:22:58  .../node_modules/tree-sitter-yaml install:   468 |             MRK_END();
15:22:58  .../node_modules/tree-sitter-yaml install:       |             ^~~~~~~
15:22:58  .../node_modules/tree-sitter-yaml install: ../src/scanner.cc:469:11: note: here
15:22:58  .../node_modules/tree-sitter-yaml install:   469 |           case SCN_FAIL:
15:22:58  .../node_modules/tree-sitter-yaml install:       |           ^~~~
15:22:59  .../node_modules/tree-sitter-yaml install:   SOLINK_MODULE(target) Release/obj.target/tree_sitter_yaml_binding.node
15:22:59  .../node_modules/tree-sitter-yaml install:   COPY Release/tree_sitter_yaml_binding.node
15:22:59  .../node_modules/tree-sitter-yaml install: make: Leaving directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter-yaml@0.5.0/node_modules/tree-sitter-yaml/build'
15:22:59  .../node_modules/tree-sitter-yaml install: gyp info ok 
15:22:59  .../node_modules/tree-sitter-yaml install: Done
15:22:59  .../node_modules/tree-sitter install$ prebuild-install || node-gyp rebuild
15:22:59  .../node_modules/tree-sitter install: prebuild-install warn install No prebuilt binaries found (target=18.16.0 runtime=node arch=x64 libc= platform=linux)
15:22:59  .../node_modules/tree-sitter install: gyp info it worked if it ends with ok
15:22:59  .../node_modules/tree-sitter install: gyp info using node-gyp@9.4.0
15:22:59  .../node_modules/tree-sitter install: gyp info using node@18.16.0 | linux | x64
15:22:59  .../node_modules/tree-sitter install: gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
15:23:00  .../node_modules/tree-sitter install: gyp info spawn /usr/bin/python3
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args [
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   'binding.gyp',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-f',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   'make',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-I',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter@0.20.4/node_modules/tree-sitter/build/config.gypi',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-I',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-I',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '/home/jenkins/.cache/node-gyp/18.16.0/include/node/common.gypi',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dlibrary=shared_library',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dvisibility=default',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dnode_root_dir=/home/jenkins/.cache/node-gyp/18.16.0',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dnode_lib_file=/home/jenkins/.cache/node-gyp/18.16.0/<(target_arch)/node.lib',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dmodule_root_dir=/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter@0.20.4/node_modules/tree-sitter',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Dnode_engine=v8',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '--depth=.',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '--no-parallel',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '--generator-output',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   'build',
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args   '-Goutput_dir=.'
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args ]
15:23:00  .../node_modules/tree-sitter install: gyp info spawn make
15:23:00  .../node_modules/tree-sitter install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
15:23:00  .../node_modules/tree-sitter install: make: Entering directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter@0.20.4/node_modules/tree-sitter/build'
15:23:00  .../node_modules/tree-sitter install:   CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
15:23:08  .../node_modules/tree-sitter install: rm -f Release/obj.target/tree_sitter.a Release/obj.target/tree_sitter.a.ar-file-list; mkdir -p `dirname Release/obj.target/tree_sitter.a`
15:23:08  .../node_modules/tree-sitter install: ar crs Release/obj.target/tree_sitter.a @Release/obj.target/tree_sitter.a.ar-file-list
15:23:08  .../node_modules/tree-sitter install:   COPY Release/tree_sitter.a
15:23:08  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/binding.o
15:23:08  .../node_modules/tree-sitter install: In file included from ../src/binding.cc:1:
15:23:08  .../node_modules/tree-sitter install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:997:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
15:23:08  .../node_modules/tree-sitter install:   997 |       (node::addon_register_func) (regfunc),                          \
15:23:08  .../node_modules/tree-sitter install:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15:23:08  .../node_modules/tree-sitter install: /home/jenkins/.cache/node-gyp/18.16.0/include/node/node.h:1031:3: note: in expansion of macro 'NODE_MODULE_X'
15:23:08  .../node_modules/tree-sitter install:  1031 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
15:23:08  .../node_modules/tree-sitter install:       |   ^~~~~~~~~~~~~
15:23:08  .../node_modules/tree-sitter install: ../src/binding.cc:25:1: note: in expansion of macro 'NODE_MODULE'
15:23:08  .../node_modules/tree-sitter install:    25 | NODE_MODULE(tree_sitter_runtime_binding, InitAll)
15:23:08  .../node_modules/tree-sitter install:       | ^~~~~~~~~~~
15:23:08  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/conversions.o
15:23:09  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/language.o
15:23:11  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/logger.o
15:23:12  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/node.o
15:23:14  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/parser.o
15:23:15  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/query.o
15:23:17  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/tree.o
15:23:19  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/tree_cursor.o
15:23:20  .../node_modules/tree-sitter install:   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/util.o
15:23:21  .../node_modules/tree-sitter install:   SOLINK_MODULE(target) Release/obj.target/tree_sitter_runtime_binding.node
15:23:21  .../node_modules/tree-sitter install:   COPY Release/tree_sitter_runtime_binding.node
15:23:21  .../node_modules/tree-sitter install: make: Leaving directory '/home/jenkins/workspace/Geiger/geiger-review/node_modules/.pnpm/tree-sitter@0.20.4/node_modules/tree-sitter/build'
15:23:21  .../node_modules/tree-sitter install: gyp info ok 
15:23:21  .../node_modules/tree-sitter install: Done

This is with tree-sitter-yaml 0.5.0 and Node 18.16.0 on a Debian CI machine. I originally filed this as tree-sitter/node-tree-sitter#158 but was told that tree-sitter-yaml is the actual source of the problem.

"PURGE "