[TxMt] Re: progress.rb question about Cancel button

Allan Odgaard mailinglist at textmate.org
Tue Sep 9 05:58:52 UTC 2008


On 22 Aug 2008, at 14:01, Hans-Jörg Bibiko wrote:

> Hi,
>
> I have a problem. I took the finite example coming from progress.rb to
> figure out how to cancel the block running inside of
> TextMate.call_with_progress.
>
> If I have a TM Ruby doc with the code and press apple+R the Cancel
> button works. If I have the same code in a tmCommand the Cancel button
> does not work, even if I store the code as Ruby file somewhere.
>
> Is this something which should be fixed in the future?
> Is this my fault? If yes, how is the correct syntax or workaround?

This might be related to needing a regular event loop to run, while  
the requester is up. An event loop does run, even for synchronous  
commands, but it is “special”.

I’ll have to do some testing here, sorry about the wait.




More information about the textmate mailing list