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

Cursor goes to EOF when building or running #189

Closed
rav-en opened this issue Jun 6, 2023 · 6 comments
Closed

Cursor goes to EOF when building or running #189

rav-en opened this issue Jun 6, 2023 · 6 comments

Comments

@rav-en
Copy link

rav-en commented Jun 6, 2023

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

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

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.💖

@ilyachur
Copy link
Owner

ilyachur commented Jun 6, 2023

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?

@rav-en
Copy link
Author

rav-en commented Jun 6, 2023

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

@ilyachur
Copy link
Owner

ilyachur commented Jun 7, 2023

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

@rav-en rav-en closed this as completed Jun 9, 2023
@i-ilak
Copy link

i-ilak commented Feb 9, 2024

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.

@i-ilak
Copy link

i-ilak commented Feb 22, 2024

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

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

No branches or pull requests

3 participants