GithubHelp home page GithubHelp logo

Comments (14)

ogustavo-pereira avatar ogustavo-pereira commented on May 27, 2024 1

I believe this problem has already been solved with the new version. @dubisdev

from cerebro.

Kageetai avatar Kageetai commented on May 27, 2024

Hey, to open dev tools properly, open the menu on the upper left and pop them out as a separate window.

from cerebro.

reflog avatar reflog commented on May 27, 2024

from cerebro.

Kageetai avatar Kageetai commented on May 27, 2024

Oh sorry I meant the upper-right and the men with the three dots there

from cerebro.

reflog avatar reflog commented on May 27, 2024

from cerebro.

KELiON avatar KELiON commented on May 27, 2024

@reflog yep, looks like it is a bug. To open dev-tools you can try to type something (to see some results in cerebro window), and open dev tools after that. In this window is bigger and you can resize it, so you can see dev tools (and try to detach dev tools windows from cerebro windows by clicking ... button).

Also, would be cool to fix it for other users. There is an option for openDevTools in Cerebro and we should always open it in detached window: openDevTools('detach'). There are only two calls for that function: one and two. Would be awesome if you or someone else can fix it in PR

from cerebro.

reflog avatar reflog commented on May 27, 2024

@KELiON - thanks, that worked! Managed to undock the devtools and now able to see the problems.

To communicate with Everything, my plugin is using node-ffi, which is compiled natively and has problems starting under Electron. Here's the log:

Plugin: cerebro-plugin-everything
Path: C:\Users\reflog\AppData\Roaming\Cerebro\plugins\node_modules\cerebro-plugin-everything...
Error loading
Error: Could not locate the bindings file. Tried:
 → d:\dev\cerebro-plugin-everything\build\binding.node
 → d:\dev\cerebro-plugin-everything\build\Debug\binding.node
 → d:\dev\cerebro-plugin-everything\build\Release\binding.node
 → d:\dev\cerebro-plugin-everything\out\Debug\binding.node
 → d:\dev\cerebro-plugin-everything\Debug\binding.node
 → d:\dev\cerebro-plugin-everything\out\Release\binding.node
 → d:\dev\cerebro-plugin-everything\Release\binding.node
 → d:\dev\cerebro-plugin-everything\build\default\binding.node
 → d:\dev\cerebro-plugin-everything\compiled\6.5.0\win32\x64\binding.node
    at r (d:\dev\cerebro-plugin-everything\dist\index.js:1:16695)
    at Object.<anonymous> (d:\dev\cerebro-plugin-everything\dist\index.js:1:783)
    at r (d:\dev\cerebro-plugin-everything\dist\index.js:1:194)
    at Object.<anonymous> (d:\dev\cerebro-plugin-everything\dist\index.js:1:26444)
    at r (d:\dev\cerebro-plugin-everything\dist\index.js:1:194)
    at Object.<anonymous> (d:\dev\cerebro-plugin-everything\dist\index.js:1:36093)
    at r (d:\dev\cerebro-plugin-everything\dist\index.js:1:194)
    at d:\dev\cerebro-plugin-everything\dist\index.js:1:570
    at Object.<anonymous> (d:\dev\cerebro-plugin-everything\dist\index.js:1:580)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)

Do you have any tips on how to package my module correctly so it would work under Cerebro? This is my first attempt at Electron plugin, so it's a new territory for me...

Thanks in advance!

from cerebro.

KELiON avatar KELiON commented on May 27, 2024

@reflog can you check that this package installed and works? You can just run node from d:\dev\cerebro-plugin-everything\ and try to require it.

from cerebro.

reflog avatar reflog commented on May 27, 2024

from cerebro.

KELiON avatar KELiON commented on May 27, 2024

@reflog ok, another question: can you check that your local node/npm version are the same, that current electron version uses?

Also, you can try to rebuild your native extensions for electron's node/npm by command:

npm rebuild --runtime=electron --target=1.4.12 --disturl=https://atom.io/download/electron --abi=50

from cerebro.

reflog avatar reflog commented on May 27, 2024

Yea, that's the path I'm on right now, tried doing the node-gyp rebuild, but after it's done the bindings are at:
c:\Users\reflog\AppData\Roaming\Cerebro\plugins\node_modules\cerebro-plugin-everything\node_modules\ffi\build\Release\ffi_bindings.node

And as you can see from the log I posted before, it's not where Electron is looking for them :(
Any ideas?

from cerebro.

KELiON avatar KELiON commented on May 27, 2024

@reflog hm, no idea. Maybe this can help?

from cerebro.

KELiON avatar KELiON commented on May 27, 2024

@reflog did you have any success with your plugin? Do you need any help?

from cerebro.

reflog avatar reflog commented on May 27, 2024

Well, I've tried following all the steps in the guide that you've referenced with no luck, same result, cannot find the bindings.
If someone more experienced than me in the world of electron-win32-bindings would like to take a stab at it - that would be awesome, the repo is there and waiting :)

from cerebro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.