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

qemu serial to stdio not working when invoked from cargo-watch #110

Closed
dbeckwith opened this issue Jan 17, 2019 · 6 comments
Closed

qemu serial to stdio not working when invoked from cargo-watch #110

dbeckwith opened this issue Jan 17, 2019 · 6 comments

Comments

@dbeckwith
Copy link

I'm trying to run the command qemu-system-x86_64 -drive format=raw,file=target/x86_64-snos/debug/bootimage-snos.bin -serial mon:stdio -device isa-debug-exit,iobase=0xf4,iosize=0x04 from cargo-watch. I can run the command just fine on its own from the shell or a script, but trying to invoke the command directly or through a script from cargo-watch causes it to hang and the emulator never launches. If I remove the -serial mon:stdio option, it runs fine, so something about QEMU mapping serial to stdio breaks when run from cargo-watch. Any idea why, or if it's fixable?

@passcod
Copy link
Member

passcod commented Jan 17, 2019

I suspect you'll get the same thing, but can you try under watchexec?

@passcod
Copy link
Member

passcod commented Jan 17, 2019

This is likely related to watchexec/watchexec#47, which coincidentally got a pull request today! watchexec/watchexec#102

If you can, could you try build that PR and running with watchexec to see if it also fixes your issue?

@dbeckwith
Copy link
Author

Interesting, that sounds like it might be it. I'll try it out and let you know.

@dbeckwith
Copy link
Author

Yep, that's it. I get the same issue with watchexec on master, but the branch from that PR works fine!

@passcod
Copy link
Member

passcod commented Jan 17, 2019

Oh, wonderful. Alright, I'll review that PR tonight and release a new watchexec and cargo-watch then.

@passcod
Copy link
Member

passcod commented Jan 26, 2019

Fixed in 7.0.9.

@passcod passcod closed this as completed Jan 26, 2019
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

2 participants