-
Notifications
You must be signed in to change notification settings - Fork 53
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
Node 12 support #141
Comments
looks like we don't have node 12 covered in CI: PR would be a good first step. |
Where the global |
No, it's a global variable https://nodejs.org/api/globals.html, BTW
PR with updated azure pipelines #142 |
I see. Would you describe your expected behavior? I did not know the expectation. Well, though I'm basically a maintainer of API client so I'm not so familiar with plugin-host, here is my first triage: The plugin code is not run directly. It is run in separate context not to call dangerous functions using vm API. This https://github.com/neovim/node-client/blob/master/packages/neovim/src/host/factory.ts#L104 Global variables are added by See below trial:
I don't know why Node.js v10 worked before (I don't install old Node.js). But I guess |
We should use |
Then the problem is this change nodejs/node#26882. |
Thank you for the investigation. I think I can make a fix |
I have created PR #143 for addressing this issue. |
This is basically #122 but with reproduction steps.
Using one of the examples, but with
console.log(Buffer)
line in a command:On node 10 this works as expected and buffer updated with a line, on node 12 nothing happens and log contains:
The text was updated successfully, but these errors were encountered: