mavidser / SublimeInput

Send STDIN input to programs using comments in Sublime Text 2/3
37 stars 2 forks source link

Program not actually terminating after selecting cancel build #12

Closed akuzmich closed 8 years ago

akuzmich commented 8 years ago

This is on Mac OSX using c++, the program continues running and I have to manually terminate it using activity monitor. Can be replicated I think by simply having a c++ program with an infinite loop in it. Is there something I am doing wrong that causes this behavior? By the way thanks for the excellent plugin :)

akuzmich commented 8 years ago

By the way a further note, it works great with Python, the program terminates properly and everything, so I guess it is a c++ specific problem. Also just to note I am using clang as my compiler for c++ if that makes a difference.

mavidser commented 8 years ago

Hi. Thanks for pointing this out, and so sorry for taking this long to fix it.

I believe that the termination should be working fine now.

It should take a few hours for the update (3.0) to go live on package control.

akuzmich commented 8 years ago

Hm thanks for looking into this :) I downloaded the 3.0 sublime-package however the same problem persists for me, I am not sure why. When I run a program with infinite while loop the process shows up in activity monitor as running, and hitting cancel build does not remove the process. Is there a different way of doing things that I should try? Thanks again!

mavidser commented 8 years ago

Can you try again with the new version? I hope it should be fixed now.

akuzmich commented 8 years ago

Hm now having put in the latest version the Build and Cancel Build menu selections and shortcuts don't seem to work, they are greyed out and un-selectable. Does that sound possible to you? Thanks for the help!

mavidser commented 8 years ago

Try reinstalling the plugin. Remove it from the packages/installed packages directory and reinstall from the package control.

On Wed 9 Mar, 2016, 11:06 Alex Kuzmich, notifications@github.com wrote:

Hm now having put in the latest version the Build and Cancel Build menu selections and shortcuts don't seem to work, they are greyed out and un-selectable. Does that sound possible to you? Thanks for the help!

— Reply to this email directly or view it on GitHub https://github.com/mavidser/SublimeInput/issues/12#issuecomment-194122150 .

akuzmich commented 8 years ago

^ Ok will try but does installing from package control make a difference? I was just pasting it into the installed packages folder.

akuzmich commented 8 years ago

^ Yeah you were right, I install from package control and now Build and Cancel Build are selectable. But cancel build with infinite loop still does not work, now when I select Cancel Build nothing happens and process keeps running. Before it would show in the little window that build had been canceled but now it does not, so something has changed at least. However process still seems to keep running :(

mavidser commented 8 years ago

This is unexpected. Please run build and cancel on an infinite loop, and paste the logs (from view|show console) if any error shows up in there.

mavidser commented 8 years ago

I just pushed an update which I hope could fix the issue. But if the issue still persists, and the logs give no error, then I'm at a loss for what the issue is.

Tell me if this works (3.1.1).