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
_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to