-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] [For discussion] Migrate from nw.js to Electron #1961
Conversation
That would be nice.... |
I think it's ready to be merged. Since I have to touch almost all files anyway, I took the opportunity to modernize the code a bit:
Electron brings a build system with "Electron forge", the Gulp is completely removed.
|
@Scavanger there seem to be problems running in windows 11
|
@DzikuVx Should work now |
Awesome work @Scavanger and I already love debugger ;) |
But something changed with Serial connection. I basically can not connect to non-VCP serial port at the moment. From what I was able to quickly debug, no data is coming from the serial port to the app in this case. Will have to dig when find some time |
I was able to find that non-VCP COM does not gets strange data in
It receives 3 bytes of zeros |
OK, I think we will just ignore the fact that it's not working with Express LRS Airport at all. Everything else seems to work just fine |
Unfortunately I don't have any ELRS hardware here to test to help. Fixed a issue with BLE device chooser and windows installer. |
@Scavanger it seems like it's something ELRS related. TX-RX loose sync when serial connection is opened. It reads like 3 bytes and then they disconnect. Why? Don't know! |
There is also a crash in Mission Control when you try to add options to a waypoint. Mission.Control.Crash.mp4 |
Well I couldn't get it to work at all on Windows 10 after updating from current master. Ran
Any ideas ? |
What is your Node.js version? Edit: See here: |
The "Save and Reboot" button in not working for me in the GPS tab. |
OK I got it to work using Powershell rather than Ubuntu WSL CLI (usual cmd window used to compile INAV stuff). This was after updating to Node v20. Don't know what version was installed before, must have been older since it hasn't been updated for a while. Ubuntu is using Node v10 so needs updating although trying the obvious way threw windows access errors so I'll need to try something else where that's concerned. Anyway, Powershell works fine which is good enough. |
Unfortunately I cannot confirm this, it works as expected for me. |
|
Some more apparent bugs (on Windows 10):
|
Strange error. I will have a look.
This happens when the Configurator 8 is connected to 7.X. Firmware. |
INAV version is 8 but not up to date with the current master: versionINAV/HGLRCF722 8.0.0 Apr 20 2024 / 10:06:27 (f6386c33)GCC-13.2.1 20231009I'll update and see if that helps. |
Found the issue: It`s a common bug in Electron. |
I updated to the current master and I still have the same issue with the LED tab ... same Console error message. The other 2 tabs now work OK. I've also noticed that the Blackbox log can't be downloaded, nothing happens when you click the button. You get the same Console error message as above. When running from Windows Powershell script I had to use And there doesn't seem to be any mouse right click context menu in the CLI any more, cut/copy/paste etc. Pretty sure there used to be. |
Hmm, can you make a video of exactly what you are doing? Unfortunately I can't reproduce it.
I'll have a look.
I'll update the readme again anyway, I'll include it.
That's right, the context menu is generally deactivated in Electron. Let's see if it can be activated. |
@breadoven |
This is to discuss an track the migration to Electron
nw.js has had a lot of problems for some time now, it is now just a "one man project" and the bugs are piling up, bug reports are practically not processed, usually you don't even get an answer.
nw.js seems to be dying a slow death.
As already briefly discussed on Discord, it probably makes sense to switch to the much more active and better supported Electron.
Todo List:
To discuss:
With "Electron Forge" for creating packages/installers no Gulp or similar is necessary.
For Windows we could use Squirrel (https://github.com/Squirrel/Squirrel.Windows) a kind of "one click" installer or the traditional MSI installer.