ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:58572] [ruby-trunk - Bug #9155][Open] DelegateClass - ArgumentError: not delegated
@ 2013-11-25 20:33 rhs (Russell Smith)
  2013-11-25 22:34 ` [ruby-core:58573] [ruby-trunk - Bug #9155] " hsbt (Hiroshi SHIBATA)
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: rhs (Russell Smith) @ 2013-11-25 20:33 UTC (permalink / raw
  To: ruby-core


Issue #9155 has been reported by rhs (Russell Smith).

----------------------------------------
Bug #9155: DelegateClass - ArgumentError: not delegated
https://bugs.ruby-lang.org/issues/9155

Author: rhs (Russell Smith)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-23 trunk 43807) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Running the attached code gives ArgumentError: not delegated. It's unexpected as it worked on preview 1 and in 2.0.0. Error pasted below. https://gist.github.com/ukd1/9293c419a080d034f4bb - has sample code plus runs on 2.0.0p247 + 2.1.0-preview1 and 2.1.0-preview2

ArgumentError: not delegated
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:384:in `__getobj__'
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:77:in `method_missing'
    from (irb):5:in `initialize'
    from (irb):11:in `new'
    from (irb):11
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/bin/irb:11:in `<main>'


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:58573] [ruby-trunk - Bug #9155] DelegateClass - ArgumentError: not delegated
  2013-11-25 20:33 [ruby-core:58572] [ruby-trunk - Bug #9155][Open] DelegateClass - ArgumentError: not delegated rhs (Russell Smith)
@ 2013-11-25 22:34 ` hsbt (Hiroshi SHIBATA)
  2013-11-25 22:45 ` [ruby-core:58574] " rhs (Russell Smith)
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2013-11-25 22:34 UTC (permalink / raw
  To: ruby-core


Issue #9155 has been updated by hsbt (Hiroshi SHIBATA).

Assignee set to nobu (Nobuyoshi Nakada)
Priority changed from Normal to High

It happened will_paginate too. follow code.

https://github.com/mislav/will_paginate/blob/master/lib/will_paginate/page_number.rb

----------------------------------------
Bug #9155: DelegateClass - ArgumentError: not delegated
https://bugs.ruby-lang.org/issues/9155#change-43145

Author: rhs (Russell Smith)
Status: Open
Priority: High
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-23 trunk 43807) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Running the attached code gives ArgumentError: not delegated. It's unexpected as it worked on preview 1 and in 2.0.0. Error pasted below. https://gist.github.com/ukd1/9293c419a080d034f4bb - has sample code plus runs on 2.0.0p247 + 2.1.0-preview1 and 2.1.0-preview2

ArgumentError: not delegated
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:384:in `__getobj__'
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:77:in `method_missing'
    from (irb):5:in `initialize'
    from (irb):11:in `new'
    from (irb):11
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/bin/irb:11:in `<main>'


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:58574] [ruby-trunk - Bug #9155] DelegateClass - ArgumentError: not delegated
  2013-11-25 20:33 [ruby-core:58572] [ruby-trunk - Bug #9155][Open] DelegateClass - ArgumentError: not delegated rhs (Russell Smith)
  2013-11-25 22:34 ` [ruby-core:58573] [ruby-trunk - Bug #9155] " hsbt (Hiroshi SHIBATA)
@ 2013-11-25 22:45 ` rhs (Russell Smith)
  2013-11-30 22:04 ` [ruby-core:58720] " rhs (Russell Smith)
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rhs (Russell Smith) @ 2013-11-25 22:45 UTC (permalink / raw
  To: ruby-core


Issue #9155 has been updated by rhs (Russell Smith).


@hsbt yep that's where I found the issue - I thought I'd make it easier to replicate with the above code :)
----------------------------------------
Bug #9155: DelegateClass - ArgumentError: not delegated
https://bugs.ruby-lang.org/issues/9155#change-43146

Author: rhs (Russell Smith)
Status: Open
Priority: High
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-23 trunk 43807) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Running the attached code gives ArgumentError: not delegated. It's unexpected as it worked on preview 1 and in 2.0.0. Error pasted below. https://gist.github.com/ukd1/9293c419a080d034f4bb - has sample code plus runs on 2.0.0p247 + 2.1.0-preview1 and 2.1.0-preview2

ArgumentError: not delegated
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:384:in `__getobj__'
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:77:in `method_missing'
    from (irb):5:in `initialize'
    from (irb):11:in `new'
    from (irb):11
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/bin/irb:11:in `<main>'


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:58720] [ruby-trunk - Bug #9155] DelegateClass - ArgumentError: not delegated
  2013-11-25 20:33 [ruby-core:58572] [ruby-trunk - Bug #9155][Open] DelegateClass - ArgumentError: not delegated rhs (Russell Smith)
  2013-11-25 22:34 ` [ruby-core:58573] [ruby-trunk - Bug #9155] " hsbt (Hiroshi SHIBATA)
  2013-11-25 22:45 ` [ruby-core:58574] " rhs (Russell Smith)
@ 2013-11-30 22:04 ` rhs (Russell Smith)
  2013-12-01  1:41 ` [ruby-core:58726] " smathieu (Simon Mathieu)
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rhs (Russell Smith) @ 2013-11-30 22:04 UTC (permalink / raw
  To: ruby-core


Issue #9155 has been updated by rhs (Russell Smith).


See - https://github.com/ruby/ruby/pull/459 for a fix
----------------------------------------
Bug #9155: DelegateClass - ArgumentError: not delegated
https://bugs.ruby-lang.org/issues/9155#change-43291

Author: rhs (Russell Smith)
Status: Open
Priority: High
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-23 trunk 43807) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Running the attached code gives ArgumentError: not delegated. It's unexpected as it worked on preview 1 and in 2.0.0. Error pasted below. https://gist.github.com/ukd1/9293c419a080d034f4bb - has sample code plus runs on 2.0.0p247 + 2.1.0-preview1 and 2.1.0-preview2

ArgumentError: not delegated
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:384:in `__getobj__'
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:77:in `method_missing'
    from (irb):5:in `initialize'
    from (irb):11:in `new'
    from (irb):11
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/bin/irb:11:in `<main>'


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:58726] [ruby-trunk - Bug #9155] DelegateClass - ArgumentError: not delegated
  2013-11-25 20:33 [ruby-core:58572] [ruby-trunk - Bug #9155][Open] DelegateClass - ArgumentError: not delegated rhs (Russell Smith)
                   ` (2 preceding siblings ...)
  2013-11-30 22:04 ` [ruby-core:58720] " rhs (Russell Smith)
@ 2013-12-01  1:41 ` smathieu (Simon Mathieu)
  2013-12-04 19:37 ` [ruby-core:58860] " rhs (Russell Smith)
  2013-12-05  6:19 ` [ruby-core:58872] " nobu (Nobuyoshi Nakada)
  5 siblings, 0 replies; 7+ messages in thread
From: smathieu (Simon Mathieu) @ 2013-12-01  1:41 UTC (permalink / raw
  To: ruby-core


Issue #9155 has been updated by smathieu (Simon Mathieu).


Submitted a pull request for this: 

https://github.com/ruby/ruby/pull/459
----------------------------------------
Bug #9155: DelegateClass - ArgumentError: not delegated
https://bugs.ruby-lang.org/issues/9155#change-43296

Author: rhs (Russell Smith)
Status: Open
Priority: High
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-23 trunk 43807) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Running the attached code gives ArgumentError: not delegated. It's unexpected as it worked on preview 1 and in 2.0.0. Error pasted below. https://gist.github.com/ukd1/9293c419a080d034f4bb - has sample code plus runs on 2.0.0p247 + 2.1.0-preview1 and 2.1.0-preview2

ArgumentError: not delegated
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:384:in `__getobj__'
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:77:in `method_missing'
    from (irb):5:in `initialize'
    from (irb):11:in `new'
    from (irb):11
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/bin/irb:11:in `<main>'


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:58860] [ruby-trunk - Bug #9155] DelegateClass - ArgumentError: not delegated
  2013-11-25 20:33 [ruby-core:58572] [ruby-trunk - Bug #9155][Open] DelegateClass - ArgumentError: not delegated rhs (Russell Smith)
                   ` (3 preceding siblings ...)
  2013-12-01  1:41 ` [ruby-core:58726] " smathieu (Simon Mathieu)
@ 2013-12-04 19:37 ` rhs (Russell Smith)
  2013-12-05  6:19 ` [ruby-core:58872] " nobu (Nobuyoshi Nakada)
  5 siblings, 0 replies; 7+ messages in thread
From: rhs (Russell Smith) @ 2013-12-04 19:37 UTC (permalink / raw
  To: ruby-core


Issue #9155 has been updated by rhs (Russell Smith).


No problem, thanks for the fix.

Just a quick question - Simon fixed this on github; is this not the correct place to do a pull request / fix for a bug? If you can let us know, next time we'll do it through the correct channel.


Russ
----------------------------------------
Bug #9155: DelegateClass - ArgumentError: not delegated
https://bugs.ruby-lang.org/issues/9155#change-43415

Author: rhs (Russell Smith)
Status: Closed
Priority: High
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-23 trunk 43807) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Running the attached code gives ArgumentError: not delegated. It's unexpected as it worked on preview 1 and in 2.0.0. Error pasted below. https://gist.github.com/ukd1/9293c419a080d034f4bb - has sample code plus runs on 2.0.0p247 + 2.1.0-preview1 and 2.1.0-preview2

ArgumentError: not delegated
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:384:in `__getobj__'
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:77:in `method_missing'
    from (irb):5:in `initialize'
    from (irb):11:in `new'
    from (irb):11
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/bin/irb:11:in `<main>'


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:58872] [ruby-trunk - Bug #9155] DelegateClass - ArgumentError: not delegated
  2013-11-25 20:33 [ruby-core:58572] [ruby-trunk - Bug #9155][Open] DelegateClass - ArgumentError: not delegated rhs (Russell Smith)
                   ` (4 preceding siblings ...)
  2013-12-04 19:37 ` [ruby-core:58860] " rhs (Russell Smith)
@ 2013-12-05  6:19 ` nobu (Nobuyoshi Nakada)
  5 siblings, 0 replies; 7+ messages in thread
From: nobu (Nobuyoshi Nakada) @ 2013-12-05  6:19 UTC (permalink / raw
  To: ruby-core


Issue #9155 has been updated by nobu (Nobuyoshi Nakada).


I prefer here but a pull request on github is also a correct place.

The reason I didn't merge it is:
* I didn't want to add another instance variable, and
* more importantly, a subclass of Delegator/DelegateClass may not call
  super in its __setobj__ method, and then the flag will be left unset.

----------------------------------------
Bug #9155: DelegateClass - ArgumentError: not delegated
https://bugs.ruby-lang.org/issues/9155#change-43423

Author: rhs (Russell Smith)
Status: Closed
Priority: High
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-23 trunk 43807) [x86_64-darwin13.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Running the attached code gives ArgumentError: not delegated. It's unexpected as it worked on preview 1 and in 2.0.0. Error pasted below. https://gist.github.com/ukd1/9293c419a080d034f4bb - has sample code plus runs on 2.0.0p247 + 2.1.0-preview1 and 2.1.0-preview2

ArgumentError: not delegated
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:384:in `__getobj__'
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/delegate.rb:77:in `method_missing'
    from (irb):5:in `initialize'
    from (irb):11:in `new'
    from (irb):11
    from /Users/russ/.rvm/rubies/ruby-2.1.0-preview2/bin/irb:11:in `<main>'


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-05  6:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25 20:33 [ruby-core:58572] [ruby-trunk - Bug #9155][Open] DelegateClass - ArgumentError: not delegated rhs (Russell Smith)
2013-11-25 22:34 ` [ruby-core:58573] [ruby-trunk - Bug #9155] " hsbt (Hiroshi SHIBATA)
2013-11-25 22:45 ` [ruby-core:58574] " rhs (Russell Smith)
2013-11-30 22:04 ` [ruby-core:58720] " rhs (Russell Smith)
2013-12-01  1:41 ` [ruby-core:58726] " smathieu (Simon Mathieu)
2013-12-04 19:37 ` [ruby-core:58860] " rhs (Russell Smith)
2013-12-05  6:19 ` [ruby-core:58872] " nobu (Nobuyoshi Nakada)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).