yortus / asyncawait

Callback heaven for Node.js with async/await
MIT License
1.91k stars 77 forks source link

fibers.node is missing? #50

Closed Jakobud closed 8 years ago

Jakobud commented 8 years ago

I'm attempting to write a VSCode extension that utilizes Bluebird and asyncawait. Here are my dependencies:

"dependencies": {
    "asyncawait": "^1.0.6",
    "bluebird": "^3.4.6",
    "copy-paste": "^1.3.0",
    "open": "0.0.5",
    "request": "^2.74.0"
  }

Here is some code of where I'm requiring it:

'use strict';

...
const async = require('asyncawait/async');
const await = require('asyncawait/await');
const Promise = require('bluebird');
...

When I attempt to run my extension, I get the following error:

Activating extension `MyLaptop.vscode-myextension` failed: `/Users/user1/Repos/vscode-myextension/node_modules/fibers/bin/darwin-x64-v8-4.9/fibers.node` is missing. Try reinstalling `node-fibers`?.
Activating extension `MyLaptop.vscode-myextension` failed:  `/Users/user1/Repos/vscode-myextension/node_modules/fibers/bin/darwin-x64-v8-4.9/fibers.node` is missing. Try reinstalling `node-fibers`?
Here is the error stack:  Error: `/Users/user1/Repos/vscode-myextension/node_modules/fibers/bin/darwin-x64-v8-4.9/fibers.node` is missing. Try reinstalling `node-fibers`?
    at Object.<anonymous> (/Users/user1/Repos/vscode-myextension/node_modules/fibers/fibers.js:16:8)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.L.I.n._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:12:25921)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/Users/user1/Repos/vscode-myextension/node_modules/asyncawait/src/fibers.js:1:92)
    at Module._compile (module.js:413:34)

I tried intentionally uninstalling and reinstalling fibers:

user1@User1:~/Repos/vscode-myextension                                                                                               
# npm uninstall fibers                                                                                                                     
- fibers@1.0.14 node_modules/fibers                                                                                                        
npm WARN EPACKAGEJSON vscode-myextension@0.1.0 No repository field.                                                                              
npm WARN EPACKAGEJSON vscode-myextension@0.1.0 No license field.                                                                                 

user1@User1:~/Repos/vscode-myextension                                                                                               
# npm install fibers                                                                                                                       

> fibers@1.0.14 install /Users/user1/Repos/vscode-myextension/node_modules/fibers                                                          
> node build.js || nodejs build.js                                                                                                         

`darwin-x64-v8-4.6` exists; testing                                                                                                        
Binary is fine; exiting                                                                                                                    
vscode-myextension@0.1.0 /Users/user1/Repos/vscode-myextension                                                                                   
└── fibers@1.0.14                                                                                                                          

npm WARN EPACKAGEJSON vscode-myextension@0.1.0 No repository field.                                                                              
npm WARN EPACKAGEJSON vscode-myextension@0.1.0 No license field.                                                                                 

user1@User1:~/Repos/vscode-myextension                                                                                               
#                                                      

But I get the same error. Am I missing something here? Is this a node fiber issue?

Seikho commented 8 years ago

This is probably related to #41 since Electron is involved.

Jakobud commented 8 years ago

yeah I think it's the same. It's something to do with lack of support for native modules (fibers) in electron I think. Thanks,