Recommended approach for VSCode/Atom extensions #2350
Unanswered
jakobrosenberg
asked this question in
Q&A
Replies: 1 comment
-
I guess this is another thing that the N-API migration should resolve... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
VSCode extensions are installed in Node, but executed in Electron. This causes the wrong bindings to be downloaded.
I've worked around this by creating a utility that removes bindings at runtime and then redownloads the correct ones. If none are found, it then falls back to building the bindings on the host machine.
Is there a better way to get around this? Could it be solved if
node-serialport
usedprebuildify
to create its bindings?@reconbot, I'll be happy to contribute in anyway I can to help solve this. I saw quite a few issues and usecases like mine, so I'm hoping it's a worthwhile effort.
Beta Was this translation helpful? Give feedback.
All reactions