[#35027] [Ruby 1.9-Bug#4352][Open] [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s) — "James M. Lawrence" <redmine@...>

Bug #4352: [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)

16 messages 2011/02/01

[#35114] [Ruby 1.9-Bug#4373][Open] http.rb:677: [BUG] Segmentation fault — Christian Fazzini <redmine@...>

Bug #4373: http.rb:677: [BUG] Segmentation fault

59 messages 2011/02/06

[#35171] [Ruby 1.9-Bug#4386][Open] encoding: directive does not affect regex expressions — mathew murphy <redmine@...>

Bug #4386: encoding: directive does not affect regex expressions

9 messages 2011/02/09

[#35237] [Ruby 1.9-Bug#4400][Open] nested at_exit hooks run in strange order — Suraj Kurapati <redmine@...>

Bug #4400: nested at_exit hooks run in strange order

12 messages 2011/02/15

[ruby-core:35375] [Backport92 - Backport #4446] [Open] autoload failure with relative paths

From: "James M. Lawrence" <quixoticsycophant@...>
Date: 2011-02-25 05:40:20 UTC
List: ruby-core #35375
Issue #4446 has been reported by James M. Lawrence.

----------------------------------------
Backport #4446: autoload failure with relative paths
http://redmine.ruby-lang.org/issues/4446

Author: James M. Lawrence
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 


% cat foo.rb 
 module Foo
 end

% cat run.rb 
 dir = File.dirname(File.expand_path(__FILE__))
 $LOAD_PATH.unshift(dir + '/../' + File.basename(dir))
 
 autoload :Foo, 'foo'
 p Foo

% ruby -v run.rb 
 ruby 1.9.2p180 (2011-02-18 revision 30907) [i386-darwin9.8.0]
 /Users/jlawrence/tmp/foo.rb:1: warning: loading in progress, circular require considered harmful - /Users/jlawrence/tmp/foo.rb
 	from run.rb:5:in `<main>'
 	from /Users/jlawrence/tmp/foo.rb:1:in `<top (required)>'
 /Users/jlawrence/tmp/foo.rb:1:in `<top (required)>': uninitialized constant Foo (NameError)
 	from run.rb:5:in `<main>'

Commit r30789 on trunk fixes this problem (with no conflicts).



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

In This Thread

Prev Next