[SVN] Re: TextMate UI / IO / Process Problem.

Alex Ross ajross at cs.pdx.edu
Sat Jun 21 20:30:39 UTC 2008


On Jun 21, 2008, at 12:54 PM, Simon Gregory wrote:

> I've just come across this problem which occurs when using
> TextMate::UI.menu() within a script that also calls
> TextMate::Process.run(). I get:
>
> /Users/simon/Library/Application Support/TextMate/Support/lib/ui.rb:
> 81:in `menu': undefined method `popen' for TextMate::IO:Module
> (NoMethodError) from /tmp/temp_textmate.iTQBqb:46
>
> Would I be right in thinking that there's a clash between Ruby's IO
> module and the TextMate IO module caused when Process 'requires' the
> latter? I'm not too familiar with the way Ruby's inheritance and mix-
> in works.

I think you probably are calling IO.popen?

Try calling `::IO.popen` instead, and that should get around the name  
clash.

–Alex


More information about the textmate-dev mailing list