Forum: Ruby-core [ruby-trunk - Bug #7391][Open] Allow to use require_relative from eval and irb environment

Posted by zzak (Zachary Scott) (Guest)
on 2012-11-19 03:11
(Received via mailing list)
Issue #7391 has been reported by zzak (Zachary Scott).

----------------------------------------
Bug #7391: Allow to use require_relative from eval and irb environment
https://bugs.ruby-lang.org/issues/7391

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee: shyouhei (Shyouhei Urabe)
Category: core
Target version:
ruby -v: 1.9.3


=begin
From github: https://github.com/ruby/ruby/pull/139

Before patch

(({1.9.3p125 :001 > require_relative "file"}))

(({LoadError: cannot infer basepath}))

(({from irb:1:in 'require_relative'}))

(({from irb:1}))

(({from /home/lite/.rvm/rubies/ruby-1.9.3-p125-perf/bin/irb:16:in 
'<main>'}))

After patch

(({1.9.3p125 :001 > require_relative "file" #=> true}))

=end
Posted by shyouhei (Shyouhei Urabe) (Guest)
on 2012-11-19 04:23
(Received via mailing list)
Issue #7391 has been updated by shyouhei (Shyouhei Urabe).

Description updated

Please read this related issue. http://bugs.ruby-lang.org/issues/4487
----------------------------------------
Bug #7391: Allow to use require_relative from eval and irb environment
https://bugs.ruby-lang.org/issues/7391#change-33079

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee: shyouhei (Shyouhei Urabe)
Category: core
Target version:
ruby -v: 1.9.3


=begin
From github: https://github.com/ruby/ruby/pull/139

Before patch

 1.9.3p125 :001 > require_relative "file"
 LoadError: cannot infer basepath
 from irb:1:in 'require_relative'
 from irb:1
 from /home/lite/.rvm/rubies/ruby-1.9.3-p125-perf/bin/irb:16:in '<main>'

After patch

 1.9.3p125 :001 > require_relative "file" #=> true

=end
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-12-21 14:25
(Received via mailing list)
Issue #7391 has been updated by usa (Usaku NAKAMURA).

Status changed from Open to Assigned


----------------------------------------
Bug #7391: Allow to use require_relative from eval and irb environment
https://bugs.ruby-lang.org/issues/7391#change-34956

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: shyouhei (Shyouhei Urabe)
Category: core
Target version:
ruby -v: 1.9.3


=begin
From github: https://github.com/ruby/ruby/pull/139

Before patch

 1.9.3p125 :001 > require_relative "file"
 LoadError: cannot infer basepath
 from irb:1:in 'require_relative'
 from irb:1
 from /home/lite/.rvm/rubies/ruby-1.9.3-p125-perf/bin/irb:16:in '<main>'

After patch

 1.9.3p125 :001 > require_relative "file" #=> true

=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.