No filename in error message for some types of errors
-----------------------------------------------------

                 Key: JRUBY-1292
                 URL: http://jira.codehaus.org/browse/JRUBY-1292
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.0.0, JRuby 1.0.1
         Environment: OSX
            Reporter: Tor Norbye
            Assignee: Thomas E Enebo


Create a simple file containing this single line:

raise 'hey!'

Then run it with C Ruby: you get 

% ruby foo.rb 
foo.rb:1: hey! (RuntimeError)

Note that the filename and line number is there.

Now run it with JRuby (in my case 1.0.1):

% jruby foo.rb
:1: hey! (RuntimeError)

No filename.  It happens with various other error types too (undefined method, 
unterminated string, etc).

While it may be obvious to somebody running ruby on a single file which file 
this applies to, it causes problems for IDEs and editors that try to recognize 
filenames and make them into hyperlinks for quick navigation to the error.

-- 
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

Reply via email to