🐛 Bug Report: not working on http and only works on https

👟 Reproduction steps
Code I ran :
users = Users(client)
result = users.create('uiduid123'<EMAIL_ADDRESS>'password')
result

Error I got :
--------------------------------------------------------------------------
gaierror                                  Traceback (most recent call last)
File /usr/lib/python3/dist-packages/urllib3/connection.py:174, in HTTPConnection._new_conn(self)
    173 try:
--> 174     conn = connection.create_connection(
    175         (self._dns_host, self.port), self.timeout, **extra_kw
    176     )
    178 except SocketTimeout:

File /usr/lib/python3/dist-packages/urllib3/util/connection.py:73, in create_connection(address, timeout, source_address, socket_options)
     69     return six.raise_from(
     70         LocationParseError("'%s', label empty or too long" % host), None
     71     )
---> 73 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
     74     af, socktype, proto, canonname, sa = res

File /usr/lib/python3.11/socket.py:962, in getaddrinfo(host, port, family, type, proto, flags)
    961 addrlist = []
--> 962 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
    963     af, socktype, proto, canonname, sa = res

gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

NewConnectionError                        Traceback (most recent call last)
File /usr/lib/python3/dist-packages/urllib3/connectionpool.py:704, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    703 # Make the request on the httplib connection object.
--> 704 httplib_response = self._make_request(
    705     conn,
    706     method,
    707     url,
    708     timeout=timeout_obj,
    709     body=body,
    710     headers=headers,
    711     chunked=chunked,
    712 )
    714 # If we're going to release the connection in ``finally:``, then
    715 # the response doesn't need to know about the connection. Otherwise
    716 # it will also try to release it and we'll have a double-release
    717 # mess.

File /usr/lib/python3/dist-packages/urllib3/connectionpool.py:387, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    386 try:
--> 387     self._validate_conn(conn)
    388 except (SocketTimeout, BaseSSLError) as e:
    389     # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.

File /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1045, in HTTPSConnectionPool._validate_conn(self, conn)
   1044 if not getattr(conn, "sock", None):  # AppEngine might not have  `.sock`
-> 1045     conn.connect()
   1047 if not conn.is_verified:

File /usr/lib/python3/dist-packages/urllib3/connection.py:358, in HTTPSConnection.connect(self)
    356 def connect(self):
    357     # Add certificate verification
--> 358     self.sock = conn = self._new_conn()
    359     hostname = self.host

File /usr/lib/python3/dist-packages/urllib3/connection.py:186, in HTTPConnection._new_conn(self)
    185 except SocketError as e:
--> 186     raise NewConnectionError(
    187         self, "Failed to establish a new connection: %s" % e
    188     )
    190 return conn

NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7ff06fd18690>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

MaxRetryError                             Traceback (most recent call last)
File /usr/lib/python3/dist-packages/requests/adapters.py:489, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    488 if not chunked:
--> 489     resp = conn.urlopen(
    490         method=request.method,
    491         url=url,
    492         body=request.body,
    493         headers=request.headers,
    494         redirect=False,
    495         assert_same_host=False,
    496         preload_content=False,
    497         decode_content=False,
    498         retries=self.max_retries,
    499         timeout=timeout,
    500     )
    502 # Send the request.
    503 else:

File /usr/lib/python3/dist-packages/urllib3/connectionpool.py:788, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    786     e = ProtocolError("Connection aborted.", e)
--> 788 retries = retries.increment(
    789     method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    790 )
    791 retries.sleep()

File /usr/lib/python3/dist-packages/urllib3/util/retry.py:592, in Retry.increment(self, method, url, response, error, _pool, _stacktrace)
    591 if new_retry.is_exhausted():
--> 592     raise MaxRetryError(_pool, url, error or ResponseError(cause))
    594 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)

MaxRetryError: HTTPSConnectionPool(host='hostname', port=443): Max retries exceeded with url: /v1/users (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff06fd18690>: Failed to establish a new connection: [Errno -2] Name or service not known'))

During handling of the above exception, another exception occurred:

ConnectionError                           Traceback (most recent call last)
File ~/.local/lib/python3.11/site-packages/appwrite/client.py:86, in Client.call(self, method, path, headers, params)
     85 try:
---> 86     response = requests.request(  # call method dynamically https://stackoverflow.com/a/4246075/2299554
     87         method=method,
     88         url=self._endpoint + path,
     89         params=self.flatten(params, stringify=stringify),
     90         data=self.flatten(data),
     91         json=json,
     92         files=files,
     93         headers=headers,
     94         verify=(not self._self_signed),
     95     )
     97     response.raise_for_status()

File /usr/lib/python3/dist-packages/requests/api.py:59, in request(method, url, **kwargs)
     58 with sessions.Session() as session:
---> 59     return session.request(method=method, url=url, **kwargs)

File /usr/lib/python3/dist-packages/requests/sessions.py:587, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
    586 send_kwargs.update(settings)
--> 587 resp = self.send(prep, **send_kwargs)
    589 return resp

File /usr/lib/python3/dist-packages/requests/sessions.py:701, in Session.send(self, request, **kwargs)
    700 # Send the request
--> 701 r = adapter.send(request, **kwargs)
    703 # Total elapsed time of the request (approximately)

File /usr/lib/python3/dist-packages/requests/adapters.py:565, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    563         raise SSLError(e, request=request)
--> 565     raise ConnectionError(e, request=request)
    567 except ClosedPoolError as e:

ConnectionError: HTTPSConnectionPool(host='hostname', port=443): Max retries exceeded with url: /v1/users (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff06fd18690>: Failed to establish a new connection: [Errno -2] Name or service not known'))

During handling of the above exception, another exception occurred:

AppwriteException                         Traceback (most recent call last)
Cell In [5], line 2
      1 users = Users(client)
----> 2 result = users.create('uiduid123'<EMAIL_ADDRESS>'password')
      3 result

File ~/.local/lib/python3.11/site-packages/appwrite/services/users.py:39, in Users.create(self, user_id, email, phone, password, name)
     36 params['password'] = password
     37 params['name'] = name
---> 39 return self.client.call('post', path, {
     40     'content-type': 'application/json',
     41 }, params)

File ~/.local/lib/python3.11/site-packages/appwrite/client.py:113, in Client.call(self, method, path, headers, params)
    111         raise AppwriteException(response.text, response.status_code)
    112 else:
--> 113     raise AppwriteException(e)

AppwriteException: HTTPSConnectionPool(host='hostname', port=443): Max retries exceeded with url: /v1/users (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff06fd18690>: Failed to establish a new connection: [Errno -2] Name or service not known'))

👍 Expected behavior
Should make a new user
👎 Actual Behavior
not making a new user and giving error
🎲 Appwrite version
Version 0.10.x
💻 Operating system
Linux
🧱 Your Environment
Everything standard and latest
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Hi Hemang, as visible from the discussion section, no one is currently working in this issue. Can I take it up?

@mohanssgit yes definitely

closing stale issue


feat: autosxs evaluation for custom tasks (translation in a media news scenario).

Description
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[x] Follow the CONTRIBUTING Guide.
[x] You are listed as the author in your notebook or README file.

[x] Your account is listed in CODEOWNERS for the file(s).

[x] Make your Pull Request title in the https://www.conventionalcommits.org/ specification.
[x] Ensure the tests and linter pass (Run nox -s format from the repository root to format).
[x] Appropriate docs were updated (if necessary)

@inardini For the spell-check I'm going to try and add an Italian dictionary so we don't have to allowlist all of these separately

The spelling check can't handle a different language at the moment.


Publish prog_edu_assistant_tools package to PyPI

Publishing the tools package to PyPI would unlock increase author convinience and enable more workflows:

Starting a master notebook using standard tools and without depending on the local installation of the autograder work directory
Authoring flow in Google Colab notebooks

Version 0.1 has been published:
https://pypi.org/project/prog-edu-assistant-tools/
It would be nice to have a script for publishing PyPI package at the tagged github versions, but this is not critical now.


⚠ Cioos National CKAN has degraded performance

In cc1acfc, Cioos National CKAN (https://catalogue.cioos.ca/) experienced degraded performance:

HTTP code: 200
Response time: 7373 ms

Resolved: Cioos National CKAN performance has improved in 34e508d after 5 minutes.


On Linux Mint 19: Can't use firmdata-party. Seems problem related to node-serialport

Can't use firmdata-party. I installed jhonny-five before.
npm install firmata-party -save
<EMAIL_ADDRESS>install /home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport
node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/bin/node',
node-pre-gyp verb cli '/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using<EMAIL_ADDRESS>node-pre-gyp info using<EMAIL_ADDRESS>| linux | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
node-pre-gyp verb command build [ 'rebuild' ]
make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Localv8::Object, std::__cxx11::string)’:
../src/serialport.cpp:90:52: error: no matching function for call to ‘v8::Value::ToInt32()’
return getValueFromObject(options, key)->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Localv8::Object, std::__cxx11::string)’:
../src/serialport.cpp:102:53: error: no matching function for call to ‘v8::Value::ToNumber()’
return getValueFromObject(options, key)->ToNumber()->NumberValue();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate: v8::MaybeLocalv8::Number v8::Value::ToNumber(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToNumber(
^~~~~~~~
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Localv8::Object, std::__cxx11::string)’:
../src/serialport.cpp:90:52: error: no matching function for call to ‘v8::Value::ToInt32()’
return getValueFromObject(options, key)->ToInt32()->Int32Value();
^
/home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate: v8::Localv8::Number v8::Value::ToNumber(v8::Isolate*) const
Local ToNumber(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate expects 1 argument, 0 provided
Local ToNumber(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:111:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value path(info[0]->ToString());
^
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here
explicit Utf8Value(Localv8::Value obj));
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Localv8::Object, std::__cxx11::string)’:
../src/serialport.cpp:102:53: error: no matching function for call to ‘v8::Value::ToNumber()’
return getValueFromObject(options, key)->ToNumber()->NumberValue();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate: v8::MaybeLocalv8::Number v8::Value::ToNumber(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToNumber(
^~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate: v8::Localv8::Number v8::Value::ToNumber(v8::Isolate*) const
Local ToNumber(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate expects 1 argument, 0 provided
Local ToNumber(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:111:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value path(info[0]->ToString());
^
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here
explicit Utf8Value(Localv8::Value obj));
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:174:31: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = argv[1]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp:180:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’
baton->baudRate = Nan::Get(options, Nan::Newv8::String("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:240:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:252:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
../src/serialport.cpp:339:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t)’:
../src/serialport.cpp:174:31: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = argv[1]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp:180:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:369:32: error: no matching function for call to ‘v8::Value::ToInt32()’
baton->fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:403:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’
baton->baudRate = Nan::Get(options, Nan::Newv8::String("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:240:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:252:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
../src/serialport.cpp:339:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:369:32: error: no matching function for call to ‘v8::Value::ToInt32()’
baton->fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:403:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’:
../src/serialport.cpp:465:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’:
../src/serialport.cpp:465:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:480:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:480:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
../src/serialport.cpp:516:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’:
../src/serialport.cpp:516:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
../src/serialport.cpp:573:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:617:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’:
../src/serialport.cpp:573:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:617:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
serialport.target.mk:103: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp serialport.target.mk:103: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
ERR!make: Leaving directory '/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build'
stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262: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 Linux 4.15.0-20-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release"
gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
gyp ERR! build errornode-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gypnode-pre-gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR!ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
System Linux 4.15.0-20-generic
gyp ERR! System Linux 4.15.0-20-generic
node-pre-gyp gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release"
ERR!gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport
gyp ERR! node -v v10.11.0
commandgyp ERR! node-gyp -v v3.8.0
"/usr/bin/node" "/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
gyp ERR! not ok
node-pre-gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport
node-pre-gyp ERR! node -v v10.11.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release' (1)
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!

I have the build-essential package and after trying the command you provided:
~/Documents/arduinoPrograms$ npm install<EMAIL_ADDRESS>--build-from-source

<EMAIL_ADDRESS>install /home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport
prebuild-install || node-gyp rebuild

make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:41:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value path(info[0]->ToString());
^
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../../../nan/nan.h:52,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here
explicit Utf8Value(Localv8::Value obj));
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:95:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:6:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t)’:
../src/serialport.cpp:150:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t)’:
../src/serialport.cpp:188:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’:
../src/serialport.cpp:231:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’:
../src/serialport.cpp:285:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t)’:
../src/serialport.cpp:336:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:6:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t)’:
../src/serialport.cpp:383:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:6:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’:
../src/serialport.cpp:424:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton)’:
../src/serialport_unix.cpp:166:5: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
int setup(int fd, OpenBaton data) {
^~~~~
In file included from /usr/include/stdio.h:862:0,
from ../src/serialport.h:3,
from ../src/serialport_unix.cpp:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output 20 or more bytes (assuming 1043) into a destination of size 1024
__bos (__s), __fmt, __va_arg_pack ());
^
../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t)’:
../src/serialport_unix.cpp:79:6: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
void EIO_Open(uv_work_t* req) {
^~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from ../src/serialport.h:3,
from ../src/serialport_unix.cpp:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output 22 or more bytes (assuming 1045) into a destination of size 1024
__bos (__s), __fmt, __va_arg_pack ());
^
CXX(target) Release/obj.target/serialport/src/poller.o
../src/poller.cpp: In static member function ‘static void Poller::onData(uv_poll_t*, int, int)’:
../src/poller.cpp:69:29: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const’ is deprecated [-Wdeprecated-declarations]
obj->callback.Call(2, argv);
^
In file included from ../src/poller.cpp:1:0:
../../../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
CXX(target) Release/obj.target/serialport/src/serialport_linux.o
SOLINK_MODULE(target) Release/obj.target/serialport.node
COPY Release/serialport.node
make: Leaving directory '/home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport/build'

<EMAIL_ADDRESS>install /home/username/Documents/arduinoPrograms/node_modules/serialport
node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/bin/node',
node-pre-gyp verb cli   '/home/username/Documents/arduinoPrograms/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using<EMAIL_ADDRESS>node-pre-gyp info using<EMAIL_ADDRESS>| linux | x64
node-pre-gyp verb command install []
node-pre-gyp info build requesting source compile
node-pre-gyp verb command build [ 'rebuild' ]
make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Localv8::Object, std::__cxx11::string)’:
../src/serialport.cpp:90:52: error: no matching function for call to ‘v8::Value::ToInt32()’
return getValueFromObject(options, key)->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Localv8::Object, std::__cxx11::string)’:
../src/serialport.cpp:102:53: error: no matching function for call to ‘v8::Value::ToNumber()’
return getValueFromObject(options, key)->ToNumber()->NumberValue();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate: v8::MaybeLocalv8::Number v8::Value::ToNumber(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToNumber(
^~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate: v8::Localv8::Number v8::Value::ToNumber(v8::Isolate*) const
Local ToNumber(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note:   candidate expects 1 argument, 0 provided
Local ToNumber(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:111:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value path(info[0]->ToString());
^
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here
explicit Utf8Value(Localv8::Value obj));
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:175:31: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = argv[1]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp:181:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:195:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp:220:116: error: no matching function for call to ‘v8::Value::ToInt32()’
v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate*) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:243:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:256:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
../src/serialport.cpp:344:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:376:32: error: no matching function for call to ‘v8::Value::ToInt32()’
baton->fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:410:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’:
../src/serialport.cpp:474:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:490:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
../src/serialport.cpp:525:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:538:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
../src/serialport.cpp:583:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:596:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0,
from /home/username/.node-gyp/10.11.0/include/node/node.h:63,
from ../../nan/nan.h:52,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note:   candidate expects 1 argument, 0 provided
Local ToInt32(Isolate* isolate) const);
^
/home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:629:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1647:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
serialport.target.mk:103: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/home/username/Documents/arduinoPrograms/node_modules/serialport/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262: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 Linux 4.15.0-20-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release"
gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/serialport
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack     at ChildProcess. (/home/username/Documents/arduinoPrograms/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Linux 4.15.0-20-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/username/Documents/arduinoPrograms/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/serialport
node-pre-gyp ERR! node -v v10.11.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release' (1)
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>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/username/.npm/_logs/2018-09-25T01_59_16_711Z-debug.log
username@nuc0A:~/Documents/arduinoPrograms$

Can you please tell me the best node version compatible with Node SerialPort 4? Thanks

@reconbot I can try opening a PR to avrgirl-arduino to upgrade the version of serialport being used.

There is actually a work in progress PR to update serialport for avrgirl-arduino. https://github.com/noopkat/avrgirl-arduino/pull/160

thanks @HipsterBrown for sharing the PR 😄
This has been a hairy upgrade task so far avrgirl-arduino, which is what powers firmata-party underneath. All three protocol packages have had incompatibilities with the newer SerialPort changes since v4 such as deprecated properties etc. Which is totally okay! But it's been a lot of extensive hardware testing that software driven unit tests cannot catch.
We're getting close, there's just a weird-not-reproducible-every-time bug on the Arduino Uno that I'm trying to get my head around (communication timeouts from the chip) and we need to ensure that Chrome app usage is also 💯 for Arduino to continue to use this package safely. This is also a little hard to test.
Anyway that's a little background. Would love to have Uno owners continue to test on a variety of different OS platforms 😉 I think we're really close.

@reconbot I have now updated avrgirl-arduino to consume serialport v6 (v7 support coming soon!).
Thanks for flagging this issue @jcabrerazuniga, and thanks @HipsterBrown and @reconbot for bringing it to my attention.

I was able to successfully run:
   npm install firmata-party -save

and executed:
var five = require("johnny-five");
var board = new five.Board({
port: "/dev/ttyACM0"
});
board.on("ready", function() {
var led = new five.Led(13);
led.blink(500);
});
board.on("error", function(err) {
console.log(err);
})
while it seems the program is running, I got the next error message:node five1.js
1538473544568 Connected /dev/ttyACM0
1538473554571 Device or Firmware Error A timeout occurred while connecting to the Board.
Please check that you've properly flashed the board with the correct firmware.
See: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting
If connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again.
{ type: 'error',
timestamp:<PHONE_NUMBER>571,
class: 'Device or Firmware Error',
message:
'A timeout occurred while connecting to the Board. \n\nPlease check that you've properly flashed the board with the correct firmware.\nSee: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting\n\nIf connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again.',
data: null }
Error: A timeout occurred while connecting to the Board.
at Board. (/home/joseccz/Documents/arduinoPrograms/node_modules/johnny-five/lib/board.js:405:28)
at ontimeout (timers.js:425:11)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Is there any special firmware I need to upload? how? Thx

Working perfectly just as you indicated!!
Thanks a lot!!


Move Wiki to website, possibly using hugo learn theme

Moving the wiki to an actual website would add several benefits, especially if using the hugo-learn-theme. You can view a demo of the theme here:
https://themes.gohugo.io/theme/hugo-theme-learn/en/
With the hugo learn theme, you can still store content in markdown but you have many features including searching, sections and subsections, images, code blocks, frontmatter and so much more.

This all makes sense but who is going to implement this?
Are you interested in Contributing?

Id be happy to!

add me on discord nuc#5557

aparently

Currently, GitHub prevents crawling of repository Wiki pages. As such, GitHub Wikis are invisible to search engines

If you are a GitHub Wiki maintainer, you may want to consider GitHub Pages backed by a public repository for your community's content as a more stable, blessed, and probably higher search ranking alternative.

source : https://github-wiki-see.page/

Hi, this proposal has been implemented, see https://github.com/gobolinux/Documentation and https://wiki.gobolinux.org/.
Closing.


AVX-512 intrinsics

I tried getting an AVX-512 intrinsic to work and ran into a bunch of difficulties. Some points:

It looks like the combination of AVX512's masks and AVX512VL (which lets AVX512 instructions operate on 128/256bit vectors) means that for most instructions there's one C intrinsic for each of {no mask, write mask, zero mask} x {xmm, ymm, zmm}.

These would probably be good to generate with a macro?

Because AVX512 uses mask registers, the constify! macro hacks are probably not needed for mask instructions.

The list of intrinsics linked in the readme doesn't seem to have non-masked versions; I don't know if this is just an accident of how it was made.

Trying to use the int_x86_avx512_mask_pmul_dq_512 intrinsic from that list using

#[link_name = "llvm.x86.avx512.mask.pmul.dq.512"]
fn mask_pmul_dq_512(a: i32x16, b: i32x16, src: i64x8, k: i8) -> i64x8;

didn't work, failing with
rustc: /checkout/src/llvm/include/llvm/Support/Casting.h:236: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::VectorType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = llvm::VectorType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

which I guess means I was linking to the intrinsic incorrectly?
@alexcrichton reduced to this minimal example for the vpmuldq instruction: https://godbolt.org/g/VMCtYy and found https://github.com/rust-lang/rust/blob/4c053db233d69519b548e5b8ed7192d0783e582a/src/librustc_trans/cabi_x86_64.rs#L30-L31 which hardcodes the biggest vector as 256 bits (the size of a ymm register).

I've opened up a PR for the some rustc features at f764eaf453162cd19ef484ece07cc21e14dfb2c1 https://github.com/rust-lang/rust/pull/45528

Not sure if this is related to the above or unrelated, but building stdsimd at all on skylake-avx512 fails:
$ RUSTFLAGS="-C target_cpu=skylake-avx512" cargo build --release
   Compiling stdsimd v0.0.2 (file:///<stripped>/stdsimd)
LLVM ERROR: Cannot select: t83: v32i16 = X86ISD::VINSERT t82, t78, Constant:i64<0>
  t82: v32i16 = bitcast t81
    t81: v16i32 = BUILD_VECTOR Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
      t80: i32 = Constant<0>
  t78: i16 = truncate t5
    t5: i64,ch = CopyFromReg t0, Register:i64 %vreg2
      t4: i64 = Register %vreg2
  t79: i64 = Constant<0>
In function: _ZN61_$LT$stdsimd..v512..u16x32$u20$as$u20$core..fmt..LowerHex$GT$3fmt17h59e1149cebeaa07fE
error: Could not compile `stdsimd`.

To learn more, run the command again with --verbose.

This is with rustc 1.22.0-nightly (b7960878b 2017-10-18).

@hdevalence hm... fascinating! In general you shouldn't need to build stdsimd with -C target-cpu (it uses #[target_feature] to do that on a per-function basis)
That being said this still shouldn't cause a problem! Mind opening a separate issue for that?

Ok https://github.com/rust-lang/rust/pull/45528 is now merged so I think these bugs should be fixed and we should be ready to go!