Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
absolute paths without drive letter don't work in windows #2387
As originally reported
assuming you have an empty file in c:\dev\yo
If I may add my contribution to this issue (also in "Error in File.stat #2424"):
The issue is preventing me from installing gems on Jruby 1.7.18 (also tested 1.6.8 with same results), as discussed in the forum (https://www.ruby-forum.com/topic/200421 and https://www.ruby-forum.com/topic/6805165#new).
jruby -S jgem install bundler
jruby -S irb
My home path in Cygwin is /Johan_Wasserman.rvm, translating to the
expand_path and absolute_path both returned the windows path
rvm info for JRuby and gem env:
This issue specifically fixes the problem reported in the original Jira issue. Namely, that IO/File.open of a unix-style absolute path will end up using the current directory drive letter like MRI does.
For @johanwasserman if this does not help then you can open up a new issue. Strangely enough, MRI's windows release behaves exactly as JRuby for the methods you mention above expand_path, absolute_path, dirname. This was quite surprising to me :)