[wingide-users] Execute to Window & Jump to Error Line
fuzzyman at voidspace.org.uk
Wed Jan 10 17:28:01 MST 2007
Wingware Support wrote:
> I'll look at this more closely later, but do _not_ call into the wing
> api from a subthread. I think you're doing this from the thread that
> runs popen, though I'm not entirely sure. Wing is a single threaded
> app and you're getting lucky if calls from multiple threads seem to work.
Ok. I wondered if it could be a threading issue. (We call ScrollToLine
from within our thread.)
Have you another suggestion as to how we can get our script to scroll
the output window without blocking Wing whilst the subprocess is executing ?
Maybe GTK has a way to invoke callback functions on the main thread ?
All the best,
> Michael Foord wrote:
>> Hello all,
>> I've put up a blog entry with two simple scripts we've developed at
>> The first is a better version of our 'output to window' script.
>> The second is a 'jump to error line' function. Bind it to a key and
>> then use it when your cursor is in a line of a traceback in the
>> output window. Very useful.
>> By the way, the bug I report in the blog entry doesn't seem to go
>> away when we fix the typo in 'wingapi.py' as Christian reported
>> previously. On at least one machine we saw the same error with a
>> 'fixed' wingapi, so it looks like there is still a problem.
>> We would like to use 'ScrollToLine' *without* setting a bookmark. We
>> scroll the output window as the output is arriving (essential for
>> usability), but this adds one bookmark per line which breaks
>> bookmarks for us.
>> Comments and suggestions appreciated on improving these scripts.
>> All the best,
>> Michael Foord
>> Wing IDE users list
More information about the wingide-users