[TxMt] Re: PyMate broken
Michael Glassford
glassfordm at gmail.com
Fri Jul 4 15:24:32 UTC 2008
The change you suggest below to executor.rb does fix the problem.
Interestingly, another difference is that, without the change, there's a
pause of a few seconds between the time "0.7.0.dev4527" is printed and
the time "Program exited." is printed. With the change, there's almost
no time at all between them.
Mike
Alex Ross wrote:
> On Jul 3, 2008, at 10:21 PM, Michael Glassford wrote:
>
>> Now:
>>
>>>>> numpy.__version__
>> '1.2.0.dev5346'
>>>>> scipy.__version__
>> '0.7.0.dev4527'
>>
>> But the output still doesn't work.
>>
>> Note that importing scipy doesn't cause problems, but importing
>> scipy.stats does. If I "Run Script" this script:
>>
>>> import numpy
>>> print numpy.__version__
>>>
>>> import scipy
>>> print scipy.__version__
>>>
>>> import scipy.stats
>>> print 'Done'
>> I see this output:
>>
>>> 1.2.0.dev5346
>>> 0.7.0.dev4527
>> But if I "Run Script (Terminal)", I see this:
>>
>>> 1.2.0.dev5346
>>> 0.7.0.dev4527
>>> Done
>
>
> Hm... I can't reproduce this behaviour.
>
> Try this:
>
> open up executor.rb, it's in TextMate/Support/lib/tm/executor.rb.
>
> Find the lines:
>
>> callback = proc {|str, type| io << block.call(str,type)}
>> process_output_wrapper(io) do
>> TextMate::Process.run(args, :env => options[:env], :echo =>
>> true, &callback)
>> end
>
> Change this line
>
>> TextMate::Process.run(args, :env => options[:env], :echo =>
>> true, &callback)
>
> to
>
>> TextMate::Process.run(args, :env => options[:env], :echo =>
>> true, :interactive_input => false, &callback)
>
> Save and try to run your example script from TextMate again.
>
> Does that change anything?
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
More information about the textmate
mailing list