[Ironruby-core] Expand_Path - Errors when path contains line number

Ben Hall ben2004uk at googlemail.com
Mon Oct 6 18:14:27 EDT 2008


Hi,

When using FileOps.ExpandPath() (otherwise known as File.expand_path),
I think the method should accept a path which includes additional
information - such as the line number :
../../path/folder/file.rb:93

Should return
E:/IronRuby/r156/path/folder/file.rb:93

However, i've found that it actually throws an exception:
E:\IronRuby\r156\src\IronRuby.Libraries\Builtins\FileOps.cs:358:in
`expand_path': Invalid argument - ../../path/folder/file.rb:93
(Errno::EINVAL)

I'm getting the path by calling:
caller(0)[1]

Is this right? Or has something else gone wrong?

Thanks

Ben


More information about the Ironruby-core mailing list