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

run error in dev tools console #97

Closed
turbe opened this issue Aug 22, 2019 · 4 comments
Closed

run error in dev tools console #97

turbe opened this issue Aug 22, 2019 · 4 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@turbe
Copy link

turbe commented Aug 22, 2019

Uncaught Error: Cannot find module '../build/Debug/pty.node'
Require stack:

  • /Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/node-pty/lib/utils.js
  • /Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/node-pty/lib/unixTerminal.js
  • /Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/node-pty/lib/index.js
  • /Users/Turbe/tf8_efficacy/trico-ide.git/index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:627)
    at Function.Module._resolveFilename (/Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:41)
    at Function.Module._load (internal/modules/cjs/loader.js:531)
    at Module.require (internal/modules/cjs/loader.js:685)
    at require (internal/modules/cjs/helpers.js:16)
    at Object.loadNative (utils.ts:17)
    at Object. (unixTerminal.ts:13)
    at Object. (unixTerminal.ts:279)
    at Module._compile (internal/modules/cjs/loader.js:786)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:798)
@marc2332
Copy link
Member

marc2332 commented Aug 22, 2019

Guide: https://github.com/Graviton-Code-Editor/Graviton-App/blob/master/BUILDING.md

Execute: npm run rebuild (Will take a little while)

And should be fixed 👍

@turbe
Copy link
Author

turbe commented Aug 22, 2019

Rebuild Failed

An unhandled error occurred inside electron-rebuild
CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:222:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:22:1: error: no matching member function for call to 'ToBoolean'
X(Boolean)
^~~~~~~~~~
../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'
val->To ## TYPE(isolate->GetCurrentContext())
~~~~~^~~~~~~~~~
:86:1: note: expanded from here
ToBoolean
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2516:18: note: candidate function not viable: no known conversion from 'Localv8::Context' to 'v8::Isolate ' for 1st argument
Local ToBoolean(Isolate
isolate) const;
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:10428:23: note: candidate function not viable: requires 0 arguments, but 1 was provided
Local Value::ToBoolean() const {
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:222:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:40:1: error: no matching member function for call to 'BooleanValue'
X(bool, Boolean)
^~~~~~~~~~~~~~~~
../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'
return val->NAME ## Value(isolate->GetCurrentContext());
~~~~~^~~~~~~~~~~~~
:93:1: note: expanded from here
BooleanValue
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2532:8: note: candidate function not viable: no known conversion from 'Localv8::Context' to 'v8::Isolate ' for 1st argument
bool BooleanValue(Isolate
isolate) const;
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2541:43: note: candidate function not viable: requires 0 arguments, but 1 was provided
V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:2722:
../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
assert(persistent().IsNearDeath());
~~~~~~~~~~~~ ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(builtin_expect(!(e), 0) ? assert_rtn(func, FILE, LINE, #e) : (void)0)
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:2722:
../../nan/nan_object_wrap.h:127:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
assert(wrap->handle
.IsNearDeath());
~~~~~~~~~~~~~ ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(builtin_expect(!(e), 0) ? assert_rtn(func, FILE, LINE, #e) : (void)0)
^
../src/unix/pty.cc:154:39: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value file(info[0]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:154:25: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value file(info[0]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:165:38: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value arg(argv
->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:3384:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:165:69: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value arg(argv
->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:165:27: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value arg(argv
->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:176:38: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value pair(env
->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:3384:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:176:69: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value pair(env->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:176:27: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value pair(env->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:181:39: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value cwd(info[3]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:181:25: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value cwd_(info[3]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:186:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_col = info[4]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:187:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_row = info[5]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:195:16: warning: 'ToBoolean' is deprecated: Use maybe version [-Wdeprecated-declarations]
if (info[8]->ToBoolean()->Value()) {
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2518:10: note: 'ToBoolean' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:230:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
int uid = info[6]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:231:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
int gid = info[7]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:315:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_col = info[0]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:316:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_row = info[1]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:360:21: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:363:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_col = info[1]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:364:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_row = info[2]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:387:21: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:389:39: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value tty_(info[1]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:389:25: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value tty_(info[1]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:489:21: warning: 'Call' is deprecated [-Wdeprecated-declarations]
Nan::Callback(cb).Call(Nan::GetCurrentContext()->Global(), 2, argv);
^
../../nan/nan.h:1651:3: note: 'Call' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../nan/nan.h:103:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

../src/unix/pty.cc:705:65: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(PtyFork)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:5891:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../src/unix/pty.cc:708:65: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(PtyOpen)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:5891:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../src/unix/pty.cc:711:67: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(PtyResize)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:5891:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../src/unix/pty.cc:714:68: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(PtyGetProc)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:5891:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
24 warnings and 8 errors generated.
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/electron-rebuild/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/Users/Turbe/.nvm/versions/node/v10.13.0/bin/node" "/Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/electron-rebuild/node_modules/.bin/node-gyp" "rebuild" "--target=6.0.0" "--arch=x64" "--dist-url=https://electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/node-pty
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok

Failed with exit code: 1

Error: CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:222:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:22:1: error: no matching member function for call to 'ToBoolean'
X(Boolean)
^~~~~~~~~~
../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'
val->To ## TYPE(isolate->GetCurrentContext())
~~~~~^~~~~~~~~~
:86:1: note: expanded from here
ToBoolean
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2516:18: note: candidate function not viable: no known conversion from 'Localv8::Context' to 'v8::Isolate ' for 1st argument
Local ToBoolean(Isolate
isolate) const;
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:10428:23: note: candidate function not viable: requires 0 arguments, but 1 was provided
Local Value::ToBoolean() const {
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:222:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:40:1: error: no matching member function for call to 'BooleanValue'
X(bool, Boolean)
^~~~~~~~~~~~~~~~
../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'
return val->NAME ## Value(isolate->GetCurrentContext());
~~~~~^~~~~~~~~~~~~
:93:1: note: expanded from here
BooleanValue
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2532:8: note: candidate function not viable: no known conversion from 'Localv8::Context' to 'v8::Isolate ' for 1st argument
bool BooleanValue(Isolate
isolate) const;
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2541:43: note: candidate function not viable: requires 0 arguments, but 1 was provided
V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:2722:
../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
assert(persistent().IsNearDeath());
~~~~~~~~~~~~ ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(builtin_expect(!(e), 0) ? assert_rtn(func, FILE, LINE, #e) : (void)0)
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:2722:
../../nan/nan_object_wrap.h:127:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
assert(wrap->handle
.IsNearDeath());
~~~~~~~~~~~~~ ^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(builtin_expect(!(e), 0) ? assert_rtn(func, FILE, LINE, #e) : (void)0)
^
../src/unix/pty.cc:154:39: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value file(info[0]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:154:25: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value file(info[0]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:165:38: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value arg(argv
->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:3384:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:165:69: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value arg(argv
->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:165:27: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value arg(argv
->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:176:38: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value pair(env
->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:3384:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:176:69: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value pair(env->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:176:27: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value pair(env->Get(Nan::Newv8::Integer(i))->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:181:39: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value cwd(info[3]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:181:25: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value cwd_(info[3]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:186:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_col = info[4]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:187:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_row = info[5]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:195:16: warning: 'ToBoolean' is deprecated: Use maybe version [-Wdeprecated-declarations]
if (info[8]->ToBoolean()->Value()) {
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2518:10: note: 'ToBoolean' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:230:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
int uid = info[6]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:231:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
int gid = info[7]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:315:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_col = info[0]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:316:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_row = info[1]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:360:21: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:363:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_col = info[1]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:364:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
winp.ws_row = info[2]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:387:21: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->IntegerValue();
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2543:3: note: 'IntegerValue' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:389:39: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value tty_(info[1]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2520:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local ToString() const);
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:389:25: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value tty_(info[1]->ToString());
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:2964:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^
../src/unix/pty.cc:489:21: warning: 'Call' is deprecated [-Wdeprecated-declarations]
Nan::Callback(cb).Call(Nan::GetCurrentContext()->Global(), 2, argv);
^
../../nan/nan.h:1651:3: note: 'Call' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../nan/nan.h:103:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

../src/unix/pty.cc:705:65: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(PtyFork)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:5891:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../src/unix/pty.cc:708:65: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(PtyOpen)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:5891:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../src/unix/pty.cc:711:67: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(PtyResize)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:5891:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../src/unix/pty.cc:714:68: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(PtyGetProc)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8.h:5891:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/Turbe/.electron-gyp/6.0.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
24 warnings and 8 errors generated.
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/electron-rebuild/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/Users/Turbe/.nvm/versions/node/v10.13.0/bin/node" "/Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/electron-rebuild/node_modules/.bin/node-gyp" "rebuild" "--target=6.0.0" "--arch=x64" "--dist-url=https://electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /Users/Turbe/tf8_efficacy/trico-ide.git/node_modules/node-pty
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v5.0.3

@marc2332
Copy link
Member

marc2332 commented Aug 22, 2019

Can you try to install electron v5.0.0?

npm install electron@5.0.0

and then rebuild again

Thanks

@marc2332 marc2332 self-assigned this Aug 22, 2019
@marc2332 marc2332 added the help wanted Extra attention is needed label Aug 22, 2019
@marc2332
Copy link
Member

Since there is no responde, I am gonna close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants