Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relative_path_from returns errors for "C:/" and "C:\\" #1227

Closed
sanelson2000 opened this issue Nov 14, 2013 · 1 comment
Closed

relative_path_from returns errors for "C:/" and "C:\\" #1227

sanelson2000 opened this issue Nov 14, 2013 · 1 comment

Comments

@sanelson2000
Copy link

This appears to be an old issue which has resurfaced:
JRUBY-3621

I am running JRuby 1.7.6 on Windows.

>> Pathname.new('C:/').relative_path_from(Pathname.new("C:\\test"))
ArgumentError: different prefix: "C:/" and "C:\\temp"
    from C:/jruby/jruby-1.7.6/lib/ruby/1.9/pathname.rb:465:in `relative_path_from'
    from (irb):3:in `evaluate'
    from org/jruby/RubyKernel.java:1121:in `eval'
    from org/jruby/RubyKernel.java:1517:in `loop'
    from org/jruby/RubyKernel.java:1282:in `catch'
    from org/jruby/RubyKernel.java:1282:in `catch'
    from C:/jruby/jruby-1.7.6/lib/ruby/gems/shared/gems/railties-4.0.1/lib/rails/commands/console.rb:90:in `start'
    from C:/jruby/jruby-1.7.6/lib/ruby/gems/shared/gems/railties-4.0.1/lib/rails/commands/console.rb:9:in `start'
    from C:/jruby/jruby-1.7.6/lib/ruby/gems/shared/gems/railties-4.0.1/lib/rails/commands.rb:62:in `(root)'
    from org/jruby/RubyKernel.java:1082:in `require'
    from C:/workspaces/balancedinsight/consensus/script/rails:1:in `(root)'
    from org/jruby/RubyKernel.java:1101:in `load'
    from -e:1:in `(root)'
@enebo enebo modified the milestone: JRuby 9.1.8.0 Feb 17, 2017
@enebo enebo added this to the Won't Fix milestone Feb 17, 2017
@enebo
Copy link
Member

enebo commented Feb 17, 2017

This works on JRuby 9.x and we are EOLing 1.7.x soon and won't be fixing this there.

@enebo enebo closed this as completed Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants