ilyachur/cmake4vim

Cursor goes to EOF when building or running

Closed this issue · 6 comments

Describe the bug
Cursor goes to the end of the file when CMakeBuild or CMakeRun

To Reproduce
CMakeBuild or CMakeRun a file with a few lines to test behavior.

Expected behavior
Cursor to stay on current line that was edited at the time of CMakeBuild or CMakeRun

Screenshots
no screenshots.

Desktop :
os : Debian 5.10.179-1 (2023-05-12)
nvim: v0.9.0
cmake4vim: 3.18.4

Hi!👋
Thank you for raising the issue.
I hope, the plugin makes your workflow easier!
We will take a look to your issue as soon as possible.💖

Hi @rav-en ,

It looks strange, I never saw such behaviour on my configuration. Could you please provide mode information? What executor (term, jobs, dispatch) do you use?
Also could you try to disable other plugins to be sure that cmake4vim causes this behaviour?

Forgive my ignorance, How do I find the executor (term, jobs, dispatch) information?

The README provides this information:
Screenshot 2023-06-07 at 07 30 43
If you don't specify, it uses first available executor in this order: dispatch, job, term, system

i-ilak commented

I know the issue has been closed, but maybe for anybody who stumbles across this and to make it explicit: If you don't have vim-dispatch installed and don't change the g: cmake_build_executor option to something else then the default, it will behave as explained in the bug report.

Installing vim-dispatch worked for me to fix it.

@ilyachur Is there any specific reason why this behavior happens only with the job mode?