On Mon, Jul 18, 2016 at 9:00 AM, Terry <[email protected]> wrote: > Nothing happens. > I'm suspecting maybe the process just crashes on the Qt issues ? >
Rev 9d28e6c fixes this, at least on Windows 10. All the new code is in LM.setStdStreams, which sends stderr and/or stdout to the log pane if they don't exist. For debugging this code it's essential to redirect stderr to a file. On windows this would be done with 2>stderr.txt. You can't even use pdb.set_trace because sys.stdin does not exist. This is exceptionally tricky code. The key difference between g.es and LeoStdOut.write is setting from_redirect=True in the call to log.put in LeoStdOut.write. This suppresses unwanted newlines when calling print. It also allows the 'end' keyword argument to be handled properly in calls to print. All unit tests pass, but not tested yet on Linux. Let me know if there problems. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
