node-icu-wordsplit icon indicating copy to clipboard operation
node-icu-wordsplit copied to clipboard

too few arguments to function call, single argument 'context' was not specified

Open loretoparisi opened this issue 5 years ago • 0 comments

When on macOS and node 12.13.1 I was able to make it pyicu working like

brew install intltool icu4c gettext
brew link icu4c gettext --force

but then when building I get

...
../src/wordsplit.cc:29:24: note: allocated with 'new[]' here
  uint16_t *cTextArg = new uint16_t[text->Length()+1];
                       ^
../src/wordsplit.cc:82:65: error: too few arguments to function call, single argument 'context' was not
      specified
            Nan::New<FunctionTemplate>(SplitWords)->GetFunction());
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:5995:3: note: 'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
4 warnings and 2 errors generated.
make: *** [Release/obj.target/wordsplit/src/wordsplit.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "configure" "build"
gyp ERR! cwd /Users/loretoparisi/Documents/Projects/AI/icu/src/nodejs
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v6.0.1
gyp ERR! not ok 

loretoparisi avatar Dec 17 '19 13:12 loretoparisi