List Info

Thread: Re: My IRB gem kills Rails




Re: My IRB gem kills Rails
user name
2007-12-17 14:34:53
On Dec 17, 2007 9:31 PM, Mislav Marohnić < mislav.marohnicgmail.com">mislav.marohnicgmail.com> wrote:
On Dec 16, 2007 9:54 AM, Saimon Moore < saimonmooregmail.com" target="_blank">saimonmooregmail.com> wrote:
breakpoint.rb requires irb so it may be coming from that (or at least it used to)...

That's true. Requiring irb has bitten us also in the past. If you want pre-Rails 2.0 compatibility for your gem you have to teach people either to turn off breakpointer or you'll have to re-write some of your code.

Here is the email I sent to Dr. Nic when we debugged map_by_method killing Rails:

I found out where .irbrc is included. Stable Rails apps have breakpoint_server set to "true" in dev mode. Well, that option makes "breakpoint.rb&quot; get included in the dispatcher, which in turn requires IRB. Commenting out breakpoint_server in environments/development.rb fixes everything.

This was a temporary workaround until we found out how map_by_method broke Rails in the first place.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-coregooglegroups.com
To unsubscribe from this group, send email to rubyonrails-core-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: My IRB gem kills Rails
user name
2007-12-21 20:49:29
> I found out where .irbrc is included. Stable Rails apps
have
> breakpoint_server set to "true" in dev mode.
Well, that option makes "
> breakpoint.rb" get included in the dispatcher,
which in turn requires IRB.
> Commenting out breakpoint_server in
environments/development.rb fixes
> everything.

Fantastic! Thank you. You rawk.

Giles


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-coregooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: My IRB gem kills Rails
country flaguser name
Spain
2007-12-23 00:48:34
Looky what I found in the Acts As Statemachine plugin.

acts_as_statemachine/test/test_helper.rb:

...
require 'active_support/binding_of_caller'
require 'active_support/breakpoint'
...


Moral: Also  double-check any other installed plugins.

On Dec 17, 2007, at 9:34 PM, Mislav Marohnić wrote:

> On Dec 17, 2007 9:31 PM, Mislav Marohnić
<mislav.marohnicgmail.com>  
> wrote:
>
>> On Dec 16, 2007 9:54 AM, Saimon Moore
<saimonmooregmail.com> wrote:
>>
>>> breakpoint.rb requires irb so it may be coming
from that (or at  
>>> least it
>>> used to)...
>>>
>>
>> That's true. Requiring irb has bitten us also in
the past. If you  
>> want
>> pre-Rails 2.0 compatibility for your gem you have
to teach people  
>> either
>> to turn off breakpointer or you'll have to re-write
some of your  
>> code.
>
>
> Here is the email I sent to Dr. Nic when we debugged
map_by_method  
> killing
> Rails:
>
> I found out where .irbrc is included. Stable Rails apps
have
> breakpoint_server set to "true" in dev mode.
Well, that option makes "
> breakpoint.rb" get included in the dispatcher,
which in turn  
> requires IRB.
> Commenting out breakpoint_server in
environments/development.rb fixes
> everything.
>
> This was a temporary workaround until we found out how
map_by_method  
> broke
> Rails in the first place.
>
> >

-- 
Saimon Moore
Freelance Web Developer
(Available for hire - For details visit http://saimonmoore.net)

Skype: saimonmoore
Yahoo IM: saimonmoore
Google IM: saimonmoore




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-coregooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )