Skip to content

[tree-sitter] Failed to install starter packages #4934

@padupe

Description

@padupe

Questions and Answers (fill in the following information)

  • Operating System: macOS
  • Browser: Chrome
  • Version: Sequoia 15.5
  • Installation method: yarn

Describe the bug you are encountering

Failure to run yarn install --immutable in a new environment.

To play...

Steps to reproduce the behavior:

  1. Clone the project to a new environment
  2. Run the command yarn install --immutable
  3. See the error:
➤ YN0009: │ tree-sitter@npm:0.20.4 couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/s_/shq_9gfs1ld1nt7c09g_qblm0000gn/T/xfs-e39cc8fe/build.log)
➤ YN0007: │ ssh2@npm:1.16.0 must be built because it has never been built before or the last one failed
➤ YN0000: └ Completed in 1m 16s
➤ YN0000: · Done with warnings in 1m 18s

Expected behavior

Installation successful.

Screenshots

N/A

Additional context or insights

Log output from build.log file:

# This file contains the result of Yarn building a package (tree-sitter@npm:0.20.4)
# Script name: install

prebuild-install warn install No prebuilt binaries found (target=22.16.0 runtime=node arch=arm64 libc= platform=darwin)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | arm64
gyp info find Python using Python version 3.11.12 found at "/opt/homebrew/opt/[email protected]/bin/python3.11"

gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.11
gyp info spawn args [
gyp info spawn args '/Users/padupe/Acme/backstage/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/padupe/Acme/backstage/node_modules/tree-sitter/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/padupe/Acme/backstage/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/padupe/Library/Caches/node-gyp/22.16.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/padupe/Acme/backstage/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/padupe/Library/Caches/node-gyp/22.16.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/padupe/Acme/backstage/node_modules/tree-sitter',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
  LIBTOOL-STATIC Release/tree_sitter.a
  CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/binding.o
../src/binding.cc:25:1: warning: cast from 'void (*)(Local<Object>)' to 'node::addon_register_func' (aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void *)') converts to incompatible function type [-Wcast-function-type-mismatch]
   25 | NODE_MODULE(tree_sitter_runtime_binding, InitAll)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:1262:3: note: expanded from macro 'NODE_MODULE'
 1262 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:1228:7: note: expanded from macro 'NODE_MODULE_X'
 1228 |       (node::addon_register_func) (regfunc),                          \
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/binding.cc:1:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
   85 |     persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
      |                  ^
In file included from ../src/binding.cc:1:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
   64 |     persistent().v8::PersistentBase<v8::Object>::SetWeak(
      |                                                  ^
3 warnings generated.
  CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/conversions.o
In file included from ../src/conversions.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
   85 |     persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
      |                  ^
In file included from ../src/conversions.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
   64 |     persistent().v8::PersistentBase<v8::Object>::SetWeak(
      |                                                  ^
2 warnings generated.
  CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/language.o
In file included from ../src/language.cc:1:
In file included from ../src/./language.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
   85 |     persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
      |                  ^
In file included from ../src/language.cc:1:
In file included from ../src/./language.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
   64 |     persistent().v8::PersistentBase<v8::Object>::SetWeak(
      |                                                  ^
2 warnings generated.
  CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/logger.o
In file included from ../src/logger.cc:1:
In file included from ../src/./logger.h:4:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
   85 |     persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
      |                  ^
In file included from ../src/logger.cc:1:
In file included from ../src/./logger.h:4:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
   64 |     persistent().v8::PersistentBase<v8::Object>::SetWeak(
      |                                                  ^
2 warnings generated.
  CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/node.o
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:12:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-local-handle.h:11:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:821:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
  821 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
      |                                          ^
../src/node.cc:482:31: note: in instantiation of template class 'std::basic_string<unsigned short>' requested here
  482 |   std::basic_string<TSSymbol> symbols;
      |                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
   23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
      |                             ^
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:12:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-local-handle.h:11:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:16:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/concepts.h:16:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/format_parse_context.h:16:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
  300 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
      |                                          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_convertible.h:22:99: note: in instantiation of template class 'std::basic_string_view<unsigned short>' requested here
   22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
      |                                                                                                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:746:29: note: in instantiation of template class 'std::is_convertible<const std::basic_string<unsigned short> &, std::basic_string_view<unsigned short>>' requested here
  746 |     : public _BoolConstant< is_convertible<const _Tp&, basic_string_view<_CharT, _Traits> >::value &&
      |                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1152:27: note: in instantiation of template class 'std::__can_be_converted_to_string_view<unsigned short, std::char_traits<unsigned short>, std::basic_string<unsigned short>>' requested here
 1152 |             __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value &&
      |                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1155:93: note: while substituting prior template arguments into non-type template parameter [with _Tp = std::basic_string<unsigned short>]
 1155 |   _LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS _LIBCPP_CONSTEXPR_SINCE_CXX20 explicit basic_string(const _Tp& __t)
      |                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1156 |       : __r_(__default_init_tag(), __default_init_tag()) {
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1157 |     __self_view __sv = __t;
      |     ~~~~~~~~~~~~~~~~~~~~~~~
 1158 |     __init(__sv.data(), __sv.size());
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1159 |   }
      |   ~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:753:7: note: while substituting deduced template arguments into function template 'basic_string' [with _Tp = std::basic_string<unsigned short>, $1 = (no value)]
  753 | class basic_string {
      |       ^
../src/node.cc:481:8: note: while declaring the implicit copy constructor for 'SymbolSet'
  481 | struct SymbolSet {
      |        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
   23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
      |                             ^
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
   85 |     persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
      |                  ^
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:13:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-object.h:10:
/Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-persistent-handle.h:512:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
  512 |                          reinterpret_cast<Callback>(callback), type);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
   64 |     persistent().v8::PersistentBase<v8::Object>::SetWeak(
      |                                                  ^
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:12:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-local-handle.h:11:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2912:3: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
 2912 |   traits_type::assign(*__p, __c);
      |   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1366:5: note: in instantiation of member function 'std::basic_string<unsigned short>::push_back' requested here
 1366 |     push_back(__c);
      |     ^
../src/node.cc:483:39: note: in instantiation of member function 'std::basic_string<unsigned short>::operator+=' requested here
  483 |   void add(TSSymbol symbol) { symbols += symbol; }
      |                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
   23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
      |                             ^
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:12:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-local-handle.h:11:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2913:3: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
 2913 |   traits_type::assign(*++__p, value_type());
      |   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
   23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
      |                             ^
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:12:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-local-handle.h:11:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2536:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
 2536 |     traits_type::copy(std::__to_address(__p), std::__to_address(__old_p), __n_copy);
      |     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2557:3: note: in instantiation of member function 'std::basic_string<unsigned short>::__grow_by' requested here
 2557 |   __grow_by(__old_cap, __delta_cap, __old_sz, __n_copy, __n_del, __n_add);
      |   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2899:5: note: in instantiation of member function 'std::basic_string<unsigned short>::__grow_by_without_replace' requested here
 2899 |     __grow_by_without_replace(__cap, 1, __sz, __sz, 0);
      |     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1366:5: note: in instantiation of member function 'std::basic_string<unsigned short>::push_back' requested here
 1366 |     push_back(__c);
      |     ^
../src/node.cc:483:39: note: in instantiation of member function 'std::basic_string<unsigned short>::operator+=' requested here
  483 |   void add(TSSymbol symbol) { symbols += symbol; }
      |                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
   23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
      |                             ^
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:12:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-local-handle.h:11:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2539:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
 2539 |     traits_type::copy(
      |     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
   23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
      |                             ^
In file included from ../src/node.cc:1:
In file included from ../src/./node.h:4:
In file included from ../../nan/nan.h:62:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/node.h:74:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8.h:24:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-array-buffer.h:12:
In file included from /Users/padupe/Library/Caches/node-gyp/22.16.0/include/node/v8-local-handle.h:11:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:16:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/concepts.h:16:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/format_parse_context.h:16:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string_view:226:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:359:23: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
  359 |   const _CharT* __r = _Traits::find(__p + __pos, __sz - __pos, __c);
      |                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:3502:15: note: in instantiation of function template specialization 'std::__str_find<unsigned short, unsigned long, std::char_traits<unsigned short>, 18446744073709551615UL>' requested here
 3502 |   return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __c, __pos);
      |               ^
../src/node.cc:484:51: note: in instantiation of member function 'std::basic_string<unsigned short>::find' requested here
  484 |   bool contains(TSSymbol symbol) { return symbols.find(symbol) != symbols.npos; }
      |                                                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
   23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
      |                             ^
2 warnings and 7 errors generated.
make: *** [Release/obj.target/tree_sitter_runtime_binding/src/node.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/Users/padupe/Acme/backstage/node_modules/node-gyp/lib/build.js:216:23)
gyp ERR! System Darwin 24.5.0
gyp ERR! command "/Users/padupe/.nvm/versions/node/v22.16.0/bin/node" "/Users/padupe/Acme/backstage/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/padupe/Acme/backstage/node_modules/tree-sitter
gyp ERR! node -v v22.16.0
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions