-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
absolute paths without drive letter don't work in windows #2387
Comments
#2335 I also opened but I should have noticed we had an issue on JIRA. |
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: system: rvm: ruby: homes: binaries: environment: RubyGems Environment:
|
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 :) |
As originally reported
https://jira.codehaus.org/browse/JRUBY-5750
assuming you have an empty file in c:\dev\yo
The text was updated successfully, but these errors were encountered: