Johnny-five: Support for serialport version 8

Created on 1 Dec 2019  Ā·  17Comments  Ā·  Source: rwaldron/johnny-five

I am curious if there are any plans to upgrade johnny-five with dependancy on serialport version 8 and higher. I am especially interested in version 8.0.4 which now supports node 12. Reason why I am asking is because electron-rebuild fails at building serialport version ^7.1.5 which johnny-five currently uses. More about it here: https://github.com/electron/electron-rebuild/issues/320

All 17 comments

We should solicit input from @rwaldron and @reconbot on this

@rwaldron, @reconbot, pretty please. :)

It can totally work, the breaking changes are not really relevant for J5 but I’d want to step through the upgrade guide

I don't know if it helps you anyhow, but when I tried to run J5 with latest serialport (8.0.5) I saw some errors related to SerialPort.list(), but I didn't have time to debug further.

it now returns a promise instead of taking a callback

On Mon, Dec 2, 2019 at 5:28 PM Marko Bregant notifications@github.com
wrote:

I don't know if it helps you anyhow, but when I tried to run J5 with
latest serialport (8.0.5) I saw some errors related to SerialPort.list(),
but I didn't have time to debug further.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rwaldron/johnny-five/issues/1643?email_source=notifications&email_token=AAAGK3TQK5TGSXNPVPYPCM3QWWDYPA5CNFSM4JTI3M4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFWHZPQ#issuecomment-560757950,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAGK3WCOAIQIKRPCTB5ZV3QWWDYPANCNFSM4JTI3M4A
.

I don't know if it helps you anyhow, but when I tried to run J5 with latest serialport (8.0.5) I saw some errors related to SerialPort.list(), but I didn't have time to debug further.

I try and hot fix it and it seems to work. This problem took all my day...

Glad you figured it out. Seriaport gives an error explaining the change.

@AlexandreMouyen, do you mind sharing your fix? Did you dig into johnny five and fixed it here or have you found a work around?

I believe we need to update firmata and johnny five for this.

This is an untested PR for fimrata https://github.com/firmata/firmata.js/pull/201
This is an untested PR for Johnny Five https://github.com/rwaldron/johnny-five/pull/1645

@AlexandreMouyen, do you mind sharing your fix? Did you dig into johnny five and fixed it here or have you found a work around?

Yeah, I will see PR of all of this & try test for everybody. I just did local changes on my node_modules directory, it is looks like to work.

It will need to wait, I still have a problem...

image

I am not sure if you are using electron or not, but this exact problem is solved with electron-rebuild which we are trying to get working with latest serialport.
https://electronjs.org/docs/tutorial/using-native-node-modules

I know it thanks, and now on one of my computer it's working. Not on the other one...

Got it. Let's wait for pull request to be merged and new version released. Finger crossed everything will work after that.

Got it. Let's wait for pull request to be merged and new version released. Finger crossed everything will work after that.

Yeah I am waiting this too.

I've tested the latest johnny-five version 1.4.0 and it works. Thank you to @reconbot!

šŸ™ŒšŸ‘šŸ™Œ

Was this page helpful?
0 / 5 - 0 ratings