-
Notifications
You must be signed in to change notification settings - Fork 7
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
Executing code in current context #10
Comments
Hi, yes, use "repl" to go into repl mode where you can run commands. |
It might be better to go repl mode by default. I'll check it out and keep this issue open. |
Great, thank you! For example: When I run it manually outside of vim, I would get a proper error message like:
Instead of just |
I'm not sure; I'll have to look into this. |
Recent version starts node repl by default. |
When I try to execute a script with an error (similar to the one you posted above in the example), I do get the error message in the node console. I want to try and reproduce this, can you point me to the node version you have and is it vim/nvim? |
node 12.18.2 I simply have an empty folder with a single file called index.js with the following content:
In a bash (5.0.11(1)-release) console, I then open the file like this Using the latest git version of your plugin, it looks like this: So it still doesn't display the error. |
I can confirm it occurs from node version 12 and on. |
The problem was the child process ended before it had the chance of reading final stderr messages. Fixed in node-inspect, I'll PR there is possible. |
Thank you, I've tested it and it works now. |
Is there a way to execute in the current context without adding watches?
When I enter code in the log window I always get an error:
It would be nice if I could just run code in that window, just like I can in a browser console while debugging.
The text was updated successfully, but these errors were encountered: