stevearc/vim-arduino

ArduinoSerial doesn't exit cleanly

sigmaSd opened this issue · 2 comments

Hello,
Thanks for this project!

Trying to run ArduinoSerial a second time will result in an error port busy because the screen command is still running.

The problem is the screen command, which doesn't exit after closing the serial panel. (see https://stackoverflow.com/questions/6301840/how-to-stop-a-screen-process-in-linux)

I'm working-around this with pkill screen but I don't think that's an acceptable solution.

Instead of closing the window with the screen command buffer, try either ctrl+c to interrupt the screen command or :bdelete to delete the buffer. I think the problem you have is that you're closing the window but the terminal buffer (and its associated screen command) are still hanging around in the background (you can verify with :ls!).

sceen doesn't respond to ctrlc, I'll try :bdelete as you suggested.

Anyway I thought the issue is reproducible, I understand from what you're saying that its not the case so I'll just close the issue.