JRuby 1.1.5 breaks 'require' semantics
--------------------------------------
Key: JRUBY-3114
URL: http://jira.codehaus.org/browse/JRUBY-3114
Project: JRuby
Issue Type: Bug
Environment: Linux
Reporter: Martin Krauskopf
Assignee: Thomas E Enebo
Priority: Critical
Fix For: JRuby 1.1.5
Just try to run {{jruby --debug -S rdebug --help}}. With 1.1.4 works, with
1.1.5 the debugger does not work.
It is likely due to require semantics. In
{{$YOUR_GEM_REPO/gems/ruby-debug-base-0.10.2-java/lib/ruby-debug-base.rb}}
there is:
{code}
require './tracelines'
require './linecache'
{code}
{{tracelines.rb}} and {{linecache}} are in the same directory as
{{ruby-debug-base.rb}}. Workaround is to change the lines to:
{code}
require 'tracelines'
require 'linecache'
{code}
The reasons I made path relatives is to prevent collision with {{tracelines}}
and {{linecache}} files from other gem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email