-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
deasync not working under Electron 1.3.2 #64
Comments
Update: deasync works fine under electron-prebuilt@0.37.8 (the release before 1.x.x) but does not work on 1.3.2. |
@BobMakingPie - did you ever find a solution/workaround to this. I'm running into the same issue. |
I'm having the same issue with electron 1.4.0 |
Same issue here on electron 1.4.2 |
So the issue is actually with Electron - any version greater than 1.30. As of that version they upgraded to Chromium to 52 which does not match the NodeJs V8 version which as of 6.7.0 is 5.1.281.83. Per the following lines when deasync loads it looks for the executable in the directory that matches the v8 version (in the case of node 6.7.0 v5.1) although in Electron this value is v5.2.: Trying to manually change the folder causes a mismatch issue in the binary generated... Unless anyone has any ideas of how to compile with the node version used by Electron vice the nodejs version installed on the machine, I'm a bit stalled at the moment.... |
I found a way to 'fix' this issue (locally), by manually rebuilding deasync.node Electron (Arch Linux package, version 1.4.5-1) uses abi version 51. deasync binaries for node-6 are compiled for 50 and for node-7 are compiled for 52... So no pre-build binary for abi version 51 is available. By manually compiling deasync abi version 51 can be obtained:
Using the compiled binary I am able to run atom with atom-standard-formatter package (which was the reason for me to recompile deasync binaries) I am no expert, so I cannot tell if this works for any other installation, but these where the steps I took to 'fix' my problem. Hopefully, someone more experience is able to properly fix this! |
Yes, rebuild from source will fix the issue. This is common issue with gyp-rebuild projects. You can refer zeromq.js to see how it is compiled against your local node header files. (I think author or admin can close this issue) |
This is really frustrating. I'm trying to make a module that I will use in an electron app and I can't manually rebuild deasync every time because I want to be able to just require my module as a dependency without the user having to do more work. EDIT: UNRELIABLE, SEE BELOW It would be great to take advantage of the prebuilt binaries to save that time, but they're not in the right place. Is there any detriment to having the corresponding folder be copied as a build folder in the root on install (even a sym-link, perhaps preferably a sym-link)? This would make it compatible with electron and still take advantage of prebuilt-binaries. EDIT: I just tested both the copy and sym-link methods and it didn't work so I redact that suggestion but a fix for this would still be greatly appreciated. |
@obermillerk Just tried your solution, didn't work for me. This solved the initial error, but now (Using Electron 1.7.8) I get this error:
|
@RedDuckss I don't quite recall, but I may have run into that as well, otherwise it might be something else. What I ended up doing instead was modifying the deasync library so that it doesn't use the prebuilts and instead rebuilds for the local node version on install. Then I could pack it in a tar file, upload that somewhere (such as part of a github repo) and install from that. It would still have to be rebuilt again for electron, but I would think that would be part of your process already. Here is a zip file containing a tarball of my modified deasync library, with build script and prebuilt binaries removed since they are no longer needed. EDIT: EDIT 2: |
On attempting to use deasync w/ electron-prebuilt@1.3.2, node v4.4.7 on Linux Mint 18, it throws an error:
However, deasync works fine when using it in a normal nodejs (still v4.4.7) context.
(Similar to #47 but not on Windows - not sure if same issue so I opened a new issue)
The text was updated successfully, but these errors were encountered: