Skip to content
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

call a function in already started nvim after it has started #361

Closed
saidelike opened this issue May 18, 2024 · 2 comments
Closed

call a function in already started nvim after it has started #361

saidelike opened this issue May 18, 2024 · 2 comments
Labels

Comments

@saidelike
Copy link

It is kind of related to #360 but more specific.

At the moment, I start my node plugin test framework from init.lua at nvim startup and it worked fine on Windows/locally but it deadlocks on Linux/CI.

2024-05-18 07:21:15 INF     - recorded/actions/bringVestToCap
2024-05-18 07:21:15 INF     - recorded/actions/callFine
2024-05-18 07:21:15 INF     - recorded/actions/callFineOnBatt
2024-05-18 07:21:15 INF     - recorded/actions/callVest
2024-05-18 07:21:15 INF     - recorded/actions/callVestOnCap
2024-05-18 07:21:15 INF     - recorded/actions/carveVest
2024-05-18 07:21:15 DBG ------------------------------------------------------------------------------
2024-05-18 07:21:15 DBG runTest(/home/runner/work/cursorless/cursorless/data/fixtures/recorded/actions/changeNextInstanceChar.yml)...
2024-05-18 07:21:15 DBG request  -> nvim_command
2024-05-18 07:22:55 DBG ------------------------------------------------------------------------------
2024-05-18 07:22:55 DBG runTest(/home/runner/work/cursorless/cursorless/data/fixtures/recorded/actions/changeNextInstanceChar.yml)...
2024-05-18 07:22:55 DBG request  -> nvim_command
2024-05-18 07:24:35 DBG ------------------------------------------------------------------------------
2024-05-18 07:24:35 DBG runTest(/home/runner/work/cursorless/cursorless/data/fixtures/recorded/actions/changeNextInstanceChar.yml)...
2024-05-18 07:24:35 DBG request  -> nvim_command
2024-05-18 07:26:15 DBG ------------------------------------------------------------------------------
2024-05-18 07:26:15 DBG runTest(/home/runner/work/cursorless/cursorless/data/fixtures/recorded/actions/changeNextInstanceChar.yml)...
2024-05-18 07:26:15 DBG request  -> nvim_command
2024-05-18 07:27:55 DBG ------------------------------------------------------------------------------
2024-05-18 07:27:55 DBG runTest(/home/runner/work/cursorless/cursorless/data/fixtures/recorded/actions/changeNextInstanceChar.yml)...
2024-05-18 07:27:55 DBG request  -> nvim_command
2024-05-18 07:29:35 DBG ------------------------------------------------------------------------------
2024-05-18 07:29:35 DBG runTest(/home/runner/work/cursorless/cursorless/data/fixtures/recorded/actions/changeNextInstanceChar.yml)...
2024-05-18 07:29:35 DBG request  -> nvim_command
2024-05-18 07:31:15 INF     1) recorded/actions/changeNextInstanceChar
2024-05-18 07:31:15 INF     - recorded/actions/chuckArgMadeAndAir

I am not sure if it is a Linux difference or a CI difference but I am investigating if there is any way to kick of the test differently (not from init.lua). For instance, is there a way for me to start nvim, wait a bit that it initialises and then call a function from it, either from node or vim script (since I export the node function into vim script anyway)?

@justinmk
Copy link
Member

You issue was resolved here, correct? neovim/neovim#28886

@justinmk justinmk closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
@justinmk justinmk changed the title Is there a way to call a function in already started nvim after it has started call a function in already started nvim after it has started May 21, 2024
@saidelike
Copy link
Author

Correct, it was due to "hit enter to continue" message that was blocking neovim command call from node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants