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

AsyncRun can't find stdout #224

Open
18875140516 opened this issue Apr 20, 2021 · 5 comments
Open

AsyncRun can't find stdout #224

18875140516 opened this issue Apr 20, 2021 · 5 comments

Comments

@18875140516
Copy link

After I build my code and generate the object file,it can print the stdout when I use shell "./xxx". But when I use "AsyncRun ./xxx" in the vim, I can't see the stdout.
My code use some block system call, but some print function before them.

@18875140516
Copy link
Author

I can see the stdout when I use AsyncRun only if I use fflush(stdout), but the print function after fflush(stdout) still can't be seen.

@18875140516
Copy link
Author

I use setvbuf(stdout, NULL, _IONBF, 0); in cpp file, this way can handle my problem, are there any other solution?

@skywind3000
Copy link
Owner

try:

:AsyncRun -mode=term -pos=TAB  ./xxxx

@dsirov
Copy link

dsirov commented Oct 27, 2021

I have the same problem, no stdout is shown.
In my case this happens when an executable crashes, nothing from its output is shown.
What is weird, that even when the executable is run from a Makefile and I run AsyncRun make, the same holds.

:AsyncRun -mode=term -pos=TAB ./xxxx - does show everyting.

@birdayz
Copy link

birdayz commented Nov 17, 2021

i have the same issue, with for example go run. With mode term it works. Any chance to make this work with the "normal" mode, in quickfix window?

edit: okay, there's no issue, i just missed using the raw flag.

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

4 participants