thomasjo / atom-latex

Compile LaTeX or knitr documents from within Atom
https://atom.io/packages/latex
MIT License
223 stars 42 forks source link

Build failed at the abstract-socket@2.0.0 install script #542

Closed julian-carpenter closed 2 years ago

julian-carpenter commented 4 years ago

I'm being unable to compile the Latex module. The problem is related to the npm abstract-socket package. Rebuilding that manually, however, didn't solve the problem

Error Code

In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:326:49: warning: ‘v8::MicrotasksCompletedCallback’ is deprecated: Use *WithData version. [-Wdeprecated-declarations]
  326 |   declarator __attribute__((deprecated(message)))
      |                                                 ^
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:8205:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
 8205 |   V8_DEPRECATE_SOON("Use *WithData version.",
      |   ^~~~~~~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:6668:34: note: declared here
 6668 |                   typedef void (*MicrotasksCompletedCallback)(Isolate*));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
  326 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:326:49: warning: ‘v8::MicrotasksCompletedCallback’ is deprecated: Use *WithData version. [-Wdeprecated-declarations]
  326 |   declarator __attribute__((deprecated(message)))
      |                                                 ^
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:8214:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
 8214 |   V8_DEPRECATE_SOON("Use *WithData version.",
      |   ^~~~~~~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:6668:34: note: declared here
 6668 |                   typedef void (*MicrotasksCompletedCallback)(Isolate*));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
  326 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../../nan/nan_converters.h:67,
                 from ../../nan/nan.h:221,
                 from ../src/abstract_socket.cc:9:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:18:51: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Local<v8::Context>)’
   18 |       val->To ## TYPE(isolate->GetCurrentContext())                            \
      |                                                   ^
../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
   22 | X(Boolean)
      | ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2516:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’
 2516 |   Local<Boolean> ToBoolean(Isolate* isolate) const;
      |                  ^~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2516:37: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
 2516 |   Local<Boolean> ToBoolean(Isolate* isolate) const;
      |                            ~~~~~~~~~^~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:10428:16: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean() const’
10428 | Local<Boolean> Value::ToBoolean() const {
      |                ^~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:10428:16: note:   candidate expects 0 arguments, 1 provided
In file included from ../../nan/nan_converters.h:67,
                 from ../../nan/nan.h:221,
                 from ../src/abstract_socket.cc:9:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:37:57: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Local<v8::Context>)’
   37 |   return val->NAME ## Value(isolate->GetCurrentContext());                     \
      |                                                         ^
../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
   40 | X(bool, Boolean)
      | ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2532:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
 2532 |   bool BooleanValue(Isolate* isolate) const;
      |        ^~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2532:30: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
 2532 |   bool BooleanValue(Isolate* isolate) const;
      |                     ~~~~~~~~~^~~~~~~
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2541:43: note: candidate: ‘bool v8::Value::BooleanValue() const’
 2541 |   V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
      |                                           ^~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2541:43: note:   candidate expects 0 arguments, 1 provided
 2541 |   V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
      |                                           ^~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../../nan/nan_new.h:189,
                 from ../../nan/nan.h:222,
                 from ../src/abstract_socket.cc:9:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
../../nan/nan_implementation_12_inl.h:103:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
  103 |   return scope.Escape(v8::Function::New( isolate
      |                                          ^~~~~~~
      |                                          |
      |                                          v8::Isolate*
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:4095:22: note:   initializing argument 1 of ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’
 4095 |       Local<Context> context, FunctionCallback callback,
      |       ~~~~~~~~~~~~~~~^~~~~~~
In file included from ../src/abstract_socket.cc:9:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
../../nan/nan.h:1064:78: error: no matching function for call to ‘v8::Value::ToString(v8::Isolate*)’
 1064 |       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
      |                                                                              ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2504:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
 2504 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
      |                                            ^~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2505:22: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
 2505 |       Local<Context> context) const;
      |       ~~~~~~~~~~~~~~~^~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:10433:15: note: candidate: ‘v8::Local<v8::String> v8::Value::ToString() const’
10433 | Local<String> Value::ToString() const {
      |               ^~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:10433:15: note:   candidate expects 0 arguments, 1 provided
In file included from ../src/abstract_socket.cc:9:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1855:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 1855 |     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
      |                                                                ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:3331:22: note: declared here
 3331 |                 bool Set(Local<Value> key, Local<Value> value));
      |                      ^~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/abstract_socket.cc:9:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1861:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 1861 |     New(persistentHandle)->Set(key, value);
      |                                          ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:3331:22: note: declared here
 3331 |                 bool Set(Local<Value> key, Local<Value> value));
      |                      ^~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/abstract_socket.cc:9:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1867:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 1867 |     New(persistentHandle)->Set(index, value);
      |                                            ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:3340:22: note: declared here
 3340 |                 bool Set(uint32_t index, Local<Value> value));
      |                      ^~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/abstract_socket.cc:9:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1873:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 1873 |         New(persistentHandle)->Get(New(key).ToLocalChecked()));
      |                                                             ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:3384:51: note: declared here
 3384 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
      |                                                   ^~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/abstract_socket.cc:9:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
../../nan/nan.h:1879:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 1879 |     return scope.Escape(New(persistentHandle)->Get(key));
      |                                                       ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:3384:51: note: declared here
 3384 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
      |                                                   ^~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/abstract_socket.cc:9:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../../nan/nan.h:1884:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 1884 |     return scope.Escape(New(persistentHandle)->Get(index));
      |                                                         ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:3388:51: note: declared here
 3388 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
      |                                                   ^~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/abstract_socket.cc:9:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2208:7: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2208 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10.2.0/cassert:44,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:54,
                 from ../src/abstract_socket.cc:9:
../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
   24 |     assert(persistent().IsNearDeath());
      |                         ^~~~~~~~~~~
In file included from ../../nan/nan.h:2698,
                 from ../src/abstract_socket.cc:9:
../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
   67 |     persistent().MarkIndependent();
      |                  ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/10.2.0/cassert:44,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:54,
                 from ../src/abstract_socket.cc:9:
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
  124 |     assert(wrap->handle_.IsNearDeath());
      |                          ^~~~~~~~~~~
../src/abstract_socket.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Bind(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/abstract_socket.cc:98:30: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   98 |     fd = info[0]->Int32Value();
      |                              ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2545:46: note: declared here
 2545 |   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
      |                                              ^~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc:99:35: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   99 |     String::Utf8Value path(info[1]);
      |                                   ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2965:28: note: declared here
 2965 |                   explicit Utf8Value(Local<v8::Value> obj));
      |                            ^~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Connect(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/abstract_socket.cc:136:30: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  136 |     fd = info[0]->Int32Value();
      |                              ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2545:46: note: declared here
 2545 |   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
      |                                              ^~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc:137:35: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
  137 |     String::Utf8Value path(info[1]);
      |                                   ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2965:28: note: declared here
 2965 |                   explicit Utf8Value(Local<v8::Value> obj));
      |                            ^~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/abstract_socket.cc:170:30: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  170 |     fd = info[0]->Int32Value();
      |                              ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2545:46: note: declared here
 2545 |   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
      |                                              ^~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc: In function ‘void {anonymous}::Initialize(v8::Local<v8::Object>)’:
../src/abstract_socket.cc:203:65: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
  203 |                 Nan::New<FunctionTemplate>(Socket)->GetFunction());
      |                                                                 ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
 5891 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
../src/abstract_socket.cc:205:63: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
  205 |                 Nan::New<FunctionTemplate>(Bind)->GetFunction());
      |                                                               ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
 5891 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
../src/abstract_socket.cc:207:66: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
  207 |                 Nan::New<FunctionTemplate>(Connect)->GetFunction());
      |                                                                  ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
 5891 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
../src/abstract_socket.cc:209:64: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
  209 |                 Nan::New<FunctionTemplate>(Close)->GetFunction());
      |                                                                ^
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
 5891 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
In file included from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
../src/abstract_socket.cc: At global scope:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:572: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]
  572 |       (node::addon_register_func) (regfunc),                          \
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:606:3: note: in expansion of macro ‘NODE_MODULE_X’
  606 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../src/abstract_socket.cc:215:1: note: in expansion of macro ‘NODE_MODULE’
  215 | NODE_MODULE(abstract_socket, Initialize)
      | ^~~~~~~~~~~
In file included from /home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 from ../../nan/nan.h:52,
                 from ../src/abstract_socket.cc:9:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node_object_wrap.h:84:78:   required from here
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
 9810 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:66:61:   required from here
/home/user/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
make: *** [abstract_socket.target.mk:105: Release/obj.target/abstract_socket/src/abstract_socket.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:327:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12)
gyp ERR! System Linux 5.9.6-arch1-1
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/.atom/packages/latex/node_modules/abstract-socket
gyp ERR! node -v v15.1.0
gyp ERR! node-gyp -v v7.1.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! abstract-socket@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the abstract-socket@2.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.atom/.apm/_logs/2020-11-09T12_48_44_912Z-debug.log

Versions

vivi90 commented 4 years ago

Issue

Same here, plugin stopped working:

In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:326:49: Warnung: »v8::MicrotasksCompletedCallback« ist veraltet: Use *WithData version. [-Wdeprecated-declarations]
  326 |   declarator __attribute__((deprecated(message)))
      |                                                 ^
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:8205:3: Anmerkung: bei Substitution des Makros »V8_DEPRECATE_SOON«
 8205 |   V8_DEPRECATE_SOON("Use *WithData version.",
      |   ^~~~~~~~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:6668:34: Anmerkung: hier deklariert
 6668 |                   typedef void (*MicrotasksCompletedCallback)(Isolate*));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:326:3: Anmerkung: in Definition des Makros »V8_DEPRECATE_SOON«
  326 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:326:49: Warnung: »v8::MicrotasksCompletedCallback« ist veraltet: Use *WithData version. [-Wdeprecated-declarations]
  326 |   declarator __attribute__((deprecated(message)))
      |                                                 ^
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:8214:3: Anmerkung: bei Substitution des Makros »V8_DEPRECATE_SOON«
 8214 |   V8_DEPRECATE_SOON("Use *WithData version.",
      |   ^~~~~~~~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:6668:34: Anmerkung: hier deklariert
 6668 |                   typedef void (*MicrotasksCompletedCallback)(Isolate*));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:326:3: Anmerkung: in Definition des Makros »V8_DEPRECATE_SOON«
  326 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In Datei, eingebunden von ../src/abstract_socket.cc:9:
../../nan/nan.h: In Funktion »void Nan::AsyncQueueWorker(Nan::AsyncWorker*)«:
../../nan/nan.h:2232:7: Warnung: Umwandlung zwischen inkompatiblen Funktionstypen von »void (*)(uv_work_t*)« {aka »void (*)(uv_work_s*)«} nach »uv_after_work_cb« {aka »void (*)(uv_work_s*, int)«} [-Wcast-function-type]
 2232 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/abstract_socket.cc: In Funktion »Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Bind(Nan::NAN_METHOD_ARGS_TYPE)«:
../src/abstract_socket.cc:98:30: Warnung: »int32_t v8::Value::Int32Value() const« ist veraltet: Use maybe version [-Wdeprecated-declarations]
   98 |     fd = info[0]->Int32Value();
      |                              ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2545:46: Anmerkung: hier deklariert
 2545 |   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
      |                                              ^~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: Anmerkung: in Definition des Makros »V8_DEPRECATED«
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc:99:35: Warnung: »v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)« ist veraltet: Use Isolate version [-Wdeprecated-declarations]
   99 |     String::Utf8Value path(info[1]);
      |                                   ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2965:28: Anmerkung: hier deklariert
 2965 |                   explicit Utf8Value(Local<v8::Value> obj));
      |                            ^~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: Anmerkung: in Definition des Makros »V8_DEPRECATED«
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc: In Funktion »Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Connect(Nan::NAN_METHOD_ARGS_TYPE)«:
../src/abstract_socket.cc:136:30: Warnung: »int32_t v8::Value::Int32Value() const« ist veraltet: Use maybe version [-Wdeprecated-declarations]
  136 |     fd = info[0]->Int32Value();
      |                              ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2545:46: Anmerkung: hier deklariert
 2545 |   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
      |                                              ^~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: Anmerkung: in Definition des Makros »V8_DEPRECATED«
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc:137:35: Warnung: »v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)« ist veraltet: Use Isolate version [-Wdeprecated-declarations]
  137 |     String::Utf8Value path(info[1]);
      |                                   ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2965:28: Anmerkung: hier deklariert
 2965 |                   explicit Utf8Value(Local<v8::Value> obj));
      |                            ^~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: Anmerkung: in Definition des Makros »V8_DEPRECATED«
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc: In Funktion »Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)«:
../src/abstract_socket.cc:170:30: Warnung: »int32_t v8::Value::Int32Value() const« ist veraltet: Use maybe version [-Wdeprecated-declarations]
  170 |     fd = info[0]->Int32Value();
      |                              ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8-internal.h:14,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:25,
                 von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:2545:46: Anmerkung: hier deklariert
 2545 |   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
      |                                              ^~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8config.h:311:3: Anmerkung: in Definition des Makros »V8_DEPRECATED«
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/abstract_socket.cc: In Funktion »void {anonymous}::Initialize(v8::Local<v8::Object>)«:
../src/abstract_socket.cc:203:65: Fehler: keine passende Funktion für Aufruf von »v8::FunctionTemplate::GetFunction()«
  203 |                 Nan::New<FunctionTemplate>(Socket)->GetFunction());
      |                                                                 ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: Anmerkung: Kandidat: »v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)«
 5891 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: Anmerkung:   Kandidat erwartet 1 Argument, 0 angegeben
../src/abstract_socket.cc:205:63: Fehler: keine passende Funktion für Aufruf von »v8::FunctionTemplate::GetFunction()«
  205 |                 Nan::New<FunctionTemplate>(Bind)->GetFunction());
      |                                                               ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: Anmerkung: Kandidat: »v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)«
 5891 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: Anmerkung:   Kandidat erwartet 1 Argument, 0 angegeben
../src/abstract_socket.cc:207:66: Fehler: keine passende Funktion für Aufruf von »v8::FunctionTemplate::GetFunction()«
  207 |                 Nan::New<FunctionTemplate>(Connect)->GetFunction());
      |                                                                  ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: Anmerkung: Kandidat: »v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)«
 5891 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: Anmerkung:   Kandidat erwartet 1 Argument, 0 angegeben
../src/abstract_socket.cc:209:64: Fehler: keine passende Funktion für Aufruf von »v8::FunctionTemplate::GetFunction()«
  209 |                 Nan::New<FunctionTemplate>(Close)->GetFunction());
      |                                                                ^
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: Anmerkung: Kandidat: »v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)«
 5891 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:5891:46: Anmerkung:   Kandidat erwartet 1 Argument, 0 angegeben
In Datei, eingebunden von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
../src/abstract_socket.cc: Im globalen Gültigkeitsbereich:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:572:7: Warnung: Umwandlung zwischen inkompatiblen Funktionstypen von »void (*)(v8::Local<v8::Object>)« nach »node::addon_register_func« {aka »void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)«} [-Wcast-function-type]
  572 |       (node::addon_register_func) (regfunc),                          \
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:606:3: Anmerkung: bei Substitution des Makros »NODE_MODULE_X«
  606 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../src/abstract_socket.cc:215:1: Anmerkung: bei Substitution des Makros »NODE_MODULE«
  215 | NODE_MODULE(abstract_socket, Initialize)
      | ^~~~~~~~~~~
In Datei, eingebunden von /home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node.h:63,
                 von ../../nan/nan.h:53,
                 von ../src/abstract_socket.cc:9:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h: In Instanziierung von »void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]«:
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/node_object_wrap.h:84:78:   von hier erfordert
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:9810:16: Warnung: Umwandlung zwischen inkompatiblen Funktionstypen von »v8::WeakCallbackInfo<node::ObjectWrap>::Callback« {aka »void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)«} nach »Callback« {aka »void (*)(const v8::WeakCallbackInfo<void>&)«} [-Wcast-function-type]
 9810 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h: In Instanziierung von »void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]«:
../../nan/nan_object_wrap.h:65:61:   von hier erfordert
/home/vivien/.atom/.node-gyp/.cache/node-gyp/6.1.12/include/node/v8.h:9810:16: Warnung: Umwandlung zwischen inkompatiblen Funktionstypen von »v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback« {aka »void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)«} nach »Callback« {aka »void (*)(const v8::WeakCallbackInfo<void>&)«} [-Wcast-function-type]
make: *** [abstract_socket.target.mk:105: Release/obj.target/abstract_socket/src/abstract_socket.o] Fehler 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:327:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12)
gyp ERR! System Linux 5.9.3-1-MANJARO
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/vivien/.atom/packages/latex/node_modules/abstract-socket
gyp ERR! node -v v15.0.1
gyp ERR! node-gyp -v v7.1.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! abstract-socket@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the abstract-socket@2.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vivien/.atom/.apm/_logs/2020-11-11T00_23_18_562Z-debug.log

Environment

Atom

Does anyone know an alternative plugin for this job?

thomasjo commented 4 years ago

Thanks for the detailed reports. I haven't looked into this in any great detail yet, but it looks like you're both on arch-based distros. In the past, Atom via AUR has been patched to use the system version of Node, instead of the bundled (and often outdated) version of Node that comes with the official distribution of Atom. The error you're both getting looks to be caused by a breaking change in Node which breaks the abstrack-socket package (which we need for dbus functionality.)

Have you both installed Atom via AUR, and can either of you verify if it still patches in an unsupported version of Node? Thanks!

vivi90 commented 4 years ago

@thomasjo Yes, i use an arch-based linux distribution. No, i have not installed it from AUR. Instead it's installed from the official Manjaro community repository:

[vivien@vivien-nb ~]$ export LANG=en; sudo pacman -Q -iv atom
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : atom
Name            : atom
Version         : 1.52.0-1
Description     : A hackable text editor for the 21st Century
Architecture    : x86_64
URL             : https://github.com/atom/atom
Licenses        : MIT  custom
Groups          : None
Provides        : None
Depends On      : apm  electron6  libxkbfile  ripgrep
Optional Deps   : ctags: symbol indexing support [installed]
                  git: Git and GitHub integration [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : atom-editor
Installed Size  : 204.70 MiB
Packager        : Nicola Squartini <tensor5@gmail.com>
Build Date      : Thu Oct 15 11:06:14 2020
Install Date    : Thu Nov 5 05:38:22 2020
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
julian-carpenter commented 4 years ago

@thomasjo same here. Official Atom package from the Arch repo. I use official Arch, not Manjaro. Thanks for looking into this

Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : atom
Name            : atom
Version         : 1.53.0-1
Description     : A hackable text editor for the 21st Century
Architecture    : x86_64
URL             : https://github.com/atom/atom
Licenses        : MIT  custom
Groups          : None
Provides        : None
Depends On      : apm  electron6  libxkbfile  ripgrep
Optional Deps   : ctags: symbol indexing support
                  git: Git and GitHub integration [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : atom-editor
Installed Size  : 256.75 MiB
Packager        : Nicola Squartini <tensor5@gmail.com>
Build Date      : Wed Nov 11 01:41:28 2020
Install Date    : Wed Nov 11 11:31:58 2020
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
thomasjo commented 4 years ago

There is no official Atom package for Arch/Manjaro. For pure Arch there is only a community maintained package, which is the one that @vivi90 is using. Official Atom packages only exists for Debian (.deb) and Fedora (.rpm). By official I mean available from the Atom community (e.g. https://atom.io).

I had a look at the AUR package for both Atom and apm, and they are indeed using unsupported combinations of Node and npm. Using an official version of Atom (Fedora/.rpm), I get the following version information:

$ atom -v
Atom    : 1.53.0
Electron: 6.1.12
Chrome  : 76.0.3809.146
Node    : 12.4.0

$ apm -v
apm  2.5.2
npm  6.14.8
node 12.4.0 x64
atom 1.53.0
python 3.9.0
git 2.28.0

The most important difference between my version output and both of your output is the Node version discrepancy. I'm quite confident this is the sole cause of your problem. As of right now this only affects those who use a packaged version of Atom that uses the "wrong" version of Node. In the future, once Atom updates to newer versions of Node, this will affect all users of this package.

Unfortunately, abstract-socket is used by a dbus package dependency, which means that fixing your problem either means finding another dbus package that does not depend on abstract-socket, or remove dbus support entirely. The abstract-socket package hasn't been updated in a while (hence this build problem), and I'm not going to maintain a fork of the package. I'm tempted to remove dbus support entirely but that would mean removing support for many/most PDF viewers.

TL; DR The problem is caused by atom package in AUR using a patched version of Electron, which in turn uses an unsupported version of Node. The abstract-socket dependency does not support this newer version of Node. Fixing the problem is non-trivial, and there is no clear path for how to proceed.


Finally, I no longer use Atom, so investing a lot of my spare time towards fixing this problem, which only affects a minority of users is unlikely to happen anytime soon. I'm really sorry about that, but I've got other commitments and priorities.

If either of you (or someone else) wants to submit a PR to fix this without breaking dbus support, I'm more than happy to merge the PR and publish a new version. Said fix would most likely involve finding a replacement for the dbus-native package that works with newer versions of Node (as well as 12.x).

vivi90 commented 4 years ago

@thomasjo Okay so much input. What would be the easiest work around for now so i am able to compile latex inside atom again (without PDF viewer support is okay for me)?

stale[bot] commented 3 years ago

This issue has been marked as stale because due to inactivity. It will be closed in 14 days if no further activity occurs.