We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
This one took me quite some time to analyze but I now believe I have a pretty good idea of the problem.
Scenario:
foo
puts "In foo.rb, __FILE__ is #{__FILE__}" require './foo/bar/baz.rb'
bar
baz.rb
puts "In baz.rb, __FILE__ is #{__FILE__}"
jruby-complete
java -Djruby.compile.mode=FORCE -jar jruby-complete-1.7.6.jar c:\path\to\your\folder\foo/foo.rb
Expected output:
In foo.rb, __FILE__ is c:\path\to\your\folder\foo/foo.rb In baz.rb, __FILE__ is c:\path\to\your\folderfoo/bar/baz.rb
Note that in the second line, there is a missing slash between folder and foo, causing all kinds of weird side effects.
folder
Now, re-run without -Djruby.compile.mode=FORCE, and you'll see this:
-Djruby.compile.mode=FORCE
In foo.rb, __FILE__ is c:\path\to\your\folder\foo/foo.rb In baz.rb, __FILE__ is c:/path/to/your/folder/foo/bar/baz.rb
Note how the path is now correct, and not only that - all the slashes are now translated to forward slashes!
Why is this? How can jruby.compile.mode affect this? 😄
jruby.compile.mode
As noted, this has been verified with JRuby 1.7.6. I haven't tested with 1.7.8 but I find it quite likely that it's present there also.
The text was updated successfully, but these errors were encountered:
Any updates on this one? It would be good to be able to enable this...
Sorry, something went wrong.
Let's kill this one now, it's age-old.
No branches or pull requests
This one took me quite some time to analyze but I now believe I have a pretty good idea of the problem.
Scenario:
foo
.bar
, in which thebaz.rb
is created with the following content:jruby-complete
, don't know yet if it affects other variants also):Expected output:
Note that in the second line, there is a missing slash between
folder
andfoo
, causing all kinds of weird side effects.Now, re-run without
-Djruby.compile.mode=FORCE
, and you'll see this:Note how the path is now correct, and not only that - all the slashes are now translated to forward slashes!
Why is this? How can
jruby.compile.mode
affect this? 😄As noted, this has been verified with JRuby 1.7.6. I haven't tested with 1.7.8 but I find it quite likely that it's present there also.
The text was updated successfully, but these errors were encountered: