Hans-Joerg Bibiko | 1 Dec 01:07 2006
Picon

Re: tiny improvements for perlmate.rb

Alex,

> The the reason we don't want to handle errors that were throw in eval
> blocks is the reason you mentioned.  Typically, the user handles the
> error themself.  But it is bad that $ <at>  refers to exception_handler.pm
> line 34 after a die.  I think we can fix this somehow.
>
Try the attached exception_handler.pm.

I only changed 'sub die'.

perl example:

__________
#!/usr/bin/perl
$a =  5;
$b = -1;
#open (F, '/t/t') || die "Can't find file and program exits!";
eval {
     $c = $a / $b;
     die "Denominator cannot be negative" if ($b < 0);
};

print "eval exception is printed and program runs further";
_____________

Now if you uncomment open (F, ...

the program will stop with the exception message at line 4

(Continue reading)

James Edward Gray II | 1 Dec 01:27 2006
Picon

Re: tiny improvements for perlmate.rb

On Nov 30, 2006, at 6:07 PM, Hans-Joerg Bibiko wrote:

> Alex,
>
>> The the reason we don't want to handle errors that were throw in eval
>> blocks is the reason you mentioned.  Typically, the user handles the
>> error themself.  But it is bad that $ <at>  refers to exception_handler.pm
>> line 34 after a die.  I think we can fix this somehow.
>>
> Try the attached exception_handler.pm.

Hmm, can't Perl exception catching be done the way we do it in Ruby?   
My Perl is rusty but a close translation would be something like the  
following (I think):

END {
   if ($ <at> ) {
     # we are exiting with an exception here...
   }
}

James Edward Gray II

Neil Lee | 1 Dec 03:30 2006

Screencast on TextMate's YUI bundle

Thought this might be of interest to everyone -

<http://yuiblog.com/blog/2006/11/30/rossharmes-yui-bundle/>

Neil
---
hushBOOM design
Web design, development & hosting -- Writing & Editing
http://www.hushboom.com/

Alexander Ross | 1 Dec 07:49 2006
Picon

Re: tiny improvements for perlmate.rb

James,

I tried this out but couldn't get it to work.  $ <at>  wasn't set when the  
END block was called.

The good news is if we are in an eval block, exception_handler::die  
can call Carp::croak[1].  Which "dies of errors (from perspective of  
caller)".

- Alex

[1] http://perldoc.perl.org/Carp.html

On Nov 30, 2006, at 4:27 PM, James Edward Gray II wrote:

> On Nov 30, 2006, at 6:07 PM, Hans-Joerg Bibiko wrote:
>
>> Alex,
>>
>>> The the reason we don't want to handle errors that were throw in  
>>> eval
>>> blocks is the reason you mentioned.  Typically, the user handles the
>>> error themself.  But it is bad that $ <at>  refers to  
>>> exception_handler.pm
>>> line 34 after a die.  I think we can fix this somehow.
>>>
>> Try the attached exception_handler.pm.
>
> Hmm, can't Perl exception catching be done the way we do it in  
> Ruby?  My Perl is rusty but a close translation would be something  
(Continue reading)

Michael Sheets | 1 Dec 09:44 2006

Re: Screencast on TextMate's YUI bundle

> Thought this might be of interest to everyone -
>
> <http://yuiblog.com/blog/2006/11/30/rossharmes-yui-bundle/>

Very nice screencast, even though I don't use YUI ;)

Noticed an oddity though, about half of your snippets add a newline  
while the other half doesn't. Any reason for the discrepancy? As the  
screencast went on I watched the } get lower and lower ;)

Hans-Joerg Bibiko | 1 Dec 09:52 2006
Picon

Re: tiny improvements for perlmate.rb


On 1 Dec 2006, at 07:49, Alexander Ross wrote:

> James,
>
> I tried this out but couldn't get it to work.  $ <at>  wasn't set when  
> the END block was called.

? Did you tried out my version with 'exit(1) if(!$^S);'?
If yes could you please send me an example script which doesn't work.

What do you mean with: "$ <at>  wasn't set when the END block was called"?
I'm dealing with $^S.

>
> The good news is if we are in an eval block, exception_handler::die  
> can call Carp::croak[1].  Which "dies of errors (from perspective  
> of caller)".
>

Yes, to use Carp is a very good idea. You can call in perlmate.rb

   def args
     ["-I#{e_sh(Pathname.new(ENV['TM_BUNDLE_SUPPORT']) + "PerlMate")}",
      "-Mexception_handler", "-MCarp=verbose"]
   end

and write within the 'sub die' (excep... .pm)

print TM_ERROR_FD "<p>".Carp::longmess()."</p";
(Continue reading)

xolela | 1 Dec 10:34 2006
Picon

Check word possibilities

Hi,

Mail has this thing where by when you are typing and you are not sure  
of the   spelling of the word (or even if  such a word exists) you  
can press <esc> before yo complete the  word & it gives you a pull  
down of various choices.  Is this something that can be incorporated  
in the text scope of textmate?

(note: i know of ctr-apple-D which can check for the word in   
dictionary but that is not the functionality I need in this case -  
ie, since that assumes you already know how to spell the word...)

Thanks

danstan
ps; interestingly the Mail functionality doesnt  seem to work within  
a sentence.

wayann merlin | 1 Dec 10:33 2006
Picon

Actionscript bundle and flash.getDocumentDOM()

Hi there,
when I run the command test movie in the actionscript bundle

Flash displays this:

In file /private/tmp/test.jsfl:

TypeError: flash.getDocumentDOM() has no properties

what I'm missing??

it does that with the current bundle and also with the new updated 
bundle by Ale Muñoz (BTW thanks Ale great work!)

Niko Dittmann | 1 Dec 10:47 2006
Picon

Re: Problems with Ruby "Documentation for Word / Selection"

Am 30.11.2006 um 17:39 schrieb Simon Ruderich:
> On 30.11.2006, at 17:27, Soryu wrote:
>>> I know it's not up to date, but with later versions I can't play  
>>> saved DVDs on my disk with DVDPlayer (Open VIDEO_TS is missing)  
>>> and I found no workaround for this. So I have to stick to 10.4.0.

i have not the slightest idea if this works but did you try to copy  
the dvd-player.app, do the update and copy it back again?

niko.

--

-- 
____________________________
niko dittmann <ni-di@...>
____________________________

xolela | 1 Dec 11:12 2006
Picon

Re: Check word possibilities

Apparently, looking deeper into the TM manual it appears there is a way to do this at:


Haven't figured  it out yet - it mentions though that what I was requesting should be the default (?) ...  If so, does seem to be the case for me.

Another route in the meantime is to get Aylotts subtlegradient bundle which displays the action at a screencast he sent out about month ago - but which I had missed..  


Will see if it works out for me..

(he Thomas mentions  Alan pastie - where is it implemented within the system?)  Can I just include that pastie in the bundle  preference?

thanks again

danstan




On Dec 1, 2006, at 4:34 AM, xolela-ee4meeAH724@public.gmane.org wrote:

Hi,

Mail has this thing where by when you are typing and you are not sure of the   spelling of the word (or even if  such a word exists) you can press <esc> before yo complete the  word & it gives you a pull down of various choices.  Is this something that can be incorporated in the text scope of textmate?

(note: i know of ctr-apple-D which can check for the word in  dictionary but that is not the functionality I need in this case - ie, since that assumes you already know how to spell the word...)

Thanks

danstan
ps; interestingly the Mail functionality doesnt  seem to work within a sentence.


______________________________________________________________________
(threading gets destroyed and the universe will collapse if you don't)



Gmane