I’m running a build in a package I’m developing. It is launched via something similar to the example provided on the website:
self.proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=working_dir, env=my_env)
self.killed = False
thread = threading.Thread(target=self.read_handle, args=(self.proc.stdout,))
thread.start()
and the output of the build gets pushed up so that only [Finished] is visible at the end even if the output is only one line high. I’ve tried with the command ran being a simple echo to make sure it wasn’t my stuff printing incorrectly.
Am I doing something wrong in how this is launched or how stdout it piped out?
Additional note: The behavior is inconsistent. If I re-execute the build action sometimes the output is correctly displaying all the lines without moving some of them off the top of the window.
Another Additional note: Using an output panel other than ‘exec’ works correctly but of course doesn’t work with the build result commands in the Tools menu.
